Editing
Template:Ordered list/doc
(section)
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Syntax == ;Simple:<code><nowiki>{{</nowiki>Ordered list |''entry1'' |''entry2''| ... <nowiki>}}</nowiki></code> ;Offset starting value:<code><nowiki>{{</nowiki>Ordered list |start=''start''|''entry1'' |''entry2'' |... |item1_style=''CSS1'' |item2_style=''CSS2''| ... <nowiki>}}</nowiki></code> ;Changing the symbol style:<code><nowiki>{{</nowiki>Ordered list |list_style_type=''type'' |''entry1'' |''entry2'' |... <nowiki>}}</nowiki></code> ;With CSS style:<code><nowiki>{{</nowiki>Ordered list |item_style=''CSS-all'' |''entry1'' |''entry2'' |... <nowiki>}}</nowiki></code> ;With separate CSS styles for each item:<code><nowiki>{{</nowiki>Ordered list |''entry1'' |item1_style=''CSS1'' |''entry2'' |item2_style=''CSS2'' |... <nowiki>}}</nowiki></code> ;With custom values for each item:<code><nowiki>{{</nowiki>Ordered list |item1_value=''value1'' |''entry1'' |item2_value=''value2'' |''entry2'' |... <nowiki>}}</nowiki></code> {| class="wikitable" |+ Parameters' description |- ! Parameter !! Description |- | <code>list_style_type</code> or<br /><code>type</code> | This parameter indicates the list style type. Popular acceptable parameters include: * <code>decimal (1, 2, 3, 4, ...)</code> * <code>lower-roman (i, ii, iii, iv, ...)</code> * <code>upper-roman (I, II, III, IV, ...)</code> * <code>lower-alpha (a, b, c, d, ...)</code> * <code>upper-alpha (A, B, C, D, ...)</code> For a full list, see the [https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type#values documentation at MDN Web Docs]. |- | Positional parameters {{nowrap|entry1 entry2 ...}} | The contents of each list item, as unnamed or positional parameters. There is no restriction on content, except equal signs (=) must be escaped or replaced with <code><nowiki>{{=}}</nowiki></code>, lest it will be interpreted a named parameter. |- | <code>item''n''_value</code> {{nowrap|value1 value2 ...}} | Ordinal or label for a specific list item; a positive integer. |- | <code>start</code> | Ordinal or label for the first item in the list; a positive integer (default is 1). |- | <code>item''n''_style</code> {{nowrap|CSS1 CSS2 ...}} | [[Cascading Style Sheet]] (CSS) styles that are set on a specific list item. (User must know CSS syntax.) For example, individual labels can be hidden by setting <code>item''n''_style=list-style-type:none;</code> |- | <code>item_style</code> CSS-all | CSS styles that are set on each list item. (User must know CSS syntax.) When present, any <code>item''n''_style</code> are disregarded. |}
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Template
Discussion
Read
Edit source
History
Page actions
Template
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Random word
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information