|
|
Line 1: |
Line 1: |
− | {{Documentation subpage}}
| |
− | {{lua|Module:List}}
| |
− | <!-- Categories and interwikis go at the bottom of this page. -->
| |
| | | |
− | == Usage ==
| |
− | This template creates an ordered list, which is similar to a [[WP:L#Numbered lists|numbered list]] but may display other characters, such as roman numbers or alphabet letters, instead of the decimal enumerator.
| |
− |
| |
− | == Syntax ==
| |
− | ;Simple:<code><nowiki>{{</nowiki>Ordered list |''entry1'' |''entry2''| ... }}</code>
| |
− | ;Offset starting value:<code><nowiki>{{</nowiki>Ordered list |start=''start''|''entry1'' |''entry2'' |... |item1_style=''CSS1'' |item2_style=''CSS2''| ... }}</code>
| |
− | ;Changing the symbol style:<code><nowiki>{{</nowiki>Ordered list |list_style_type=''type'' |''entry1'' |''entry2'' |... }}</code>
| |
− | ;With CSS style:<code><nowiki>{{</nowiki>Ordered list |item_style=''CSS-all'' |''entry1'' |''entry2'' |... }}</code>
| |
− | ;With separate CSS styles for each item:<code><nowiki>{{</nowiki>Ordered list |''entry1'' |item1_style=''CSS1'' |''entry2'' |item2_style=''CSS2'' |... }}</code>
| |
− | ;With custom values for each item:<code><nowiki>{{</nowiki>Ordered list |item1_value=''value1'' |''entry1'' |item2_value=''value2'' |''entry2'' |... }}</code>
| |
− |
| |
− | {| class="wikitable"
| |
− | |+ Parameters' description
| |
− | |-
| |
− | ! Parameter !! Description
| |
− | |-
| |
− | | <code>list_style_type</code>
| |
− | ''type''
| |
− | | This parameter indicates the list style type. Popular acceptable parameters include:
| |
− | <code>
| |
− | * decimal (1, 2, 3, 4, ...)
| |
− | * lower-roman (i, ii, iii, iv, ...)
| |
− | * upper-roman (I, II, III, IV, ...)
| |
− | * lower-alpha (a, b, c, d, ...)
| |
− | * upper-alpha (A, B, C, D, ...)
| |
− | </code>
| |
− | For a full list, see the following section.
| |
− | |-
| |
− | | 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.)
| |
− | |-
| |
− | | <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.
| |
− | |}
| |
− |
| |
− | ===Acceptable list style type values and supported web browsers ===
| |
− | {{CSS list-style-type values}}
| |
− |
| |
− | == See also ==
| |
− | *[[Help:List]]
| |
− | *{{tl|Multi-column numbered list}}
| |
− | *{{tl|Unbulleted list}}
| |
− |
| |
− | == References ==
| |
− | {{Reflist}}
| |
− |
| |
− | <includeonly>
| |
− | <!-- Categories and interwikis go here: -->
| |
− | [[Category:List formatting and function templates]]
| |
− | </includeonly>
| |