Difference between revisions of "Template:Ordered list/doc"
From Kerbal Space Program Wiki
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
− | This template creates an ordered list, which is similar to a [[ | + | This template creates an ordered list, which is similar to a [[w:WP:L#Numbered_lists|numbered list]] but may display other characters, such as roman numbers or alphabet letters, instead of the decimal enumerator. |
== Syntax == | == Syntax == | ||
Line 42: | Line 42: | ||
| <code>item''n''_style</code> | | <code>item''n''_style</code> | ||
{{nowrap|CSS1 CSS2 ...}} | {{nowrap|CSS1 CSS2 ...}} | ||
− | | [[Cascading Style Sheet]] (CSS) styles that are set on a specific list item. (User must know CSS syntax.) | + | | [[w:Cascading Style Sheet]] (CSS) styles that are set on a specific list item. (User must know CSS syntax.) |
|- | |- | ||
| <code>item_style</code> | | <code>item_style</code> | ||
Line 48: | Line 48: | ||
| CSS styles that are set on each list item. (User must know CSS syntax.) When present, any <code>item''n''_style</code> are disregarded. | | CSS styles that are set on each list item. (User must know CSS syntax.) When present, any <code>item''n''_style</code> are disregarded. | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<includeonly> | <includeonly> |
Latest revision as of 12:05, 7 March 2020
Error creating thumbnail: /bin/bash: rsvg-convert: command not found |
This is a documentation subpage for Template:Ordered list. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template creates an ordered list, which is similar to a numbered list but may display other characters, such as roman numbers or alphabet letters, instead of the decimal enumerator.
Syntax
- Simple
{{Ordered list |entry1 |entry2| ... }}
- Offset starting value
{{Ordered list |start=start|entry1 |entry2 |... |item1_style=CSS1 |item2_style=CSS2| ... }}
- Changing the symbol style
{{Ordered list |list_style_type=type |entry1 |entry2 |... }}
- With CSS style
{{Ordered list |item_style=CSS-all |entry1 |entry2 |... }}
- With separate CSS styles for each item
{{Ordered list |entry1 |item1_style=CSS1 |entry2 |item2_style=CSS2 |... }}
- With custom values for each item
{{Ordered list |item1_value=value1 |entry1 |item2_value=value2 |entry2 |... }}
Parameter | Description |
---|---|
list_style_type
type |
This parameter indicates the list style type. Popular acceptable parameters include:
For a full list, see the following section. |
Positional parameters
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 {{=}} , lest it will be interpreted a named parameter.
|
itemn_value
value1 value2 ... |
Ordinal or label for a specific list item; a positive integer. |
start
|
Ordinal or label for the first item in the list; a positive integer (default is 1). |
itemn_style
CSS1 CSS2 ... |
w:Cascading Style Sheet (CSS) styles that are set on a specific list item. (User must know CSS syntax.) |
item_style
CSS-all |
CSS styles that are set on each list item. (User must know CSS syntax.) When present, any itemn_style are disregarded.
|