Template:Ordered list
Revision as of 01:54, 17 June 2023 by Penguinplushie (talk | contribs) (Protected "Template:Ordered list" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
This template uses Lua: |
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= or|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
|
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
|
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
|
Wikipedia: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 itemn_style=list-style-type:none;
|
|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.
|
See Also
- {{Hlist}}
- {{Flowlist}}
- {{Bulleted list}}
TemplateData
Make an ordered list. The default is a numbered list, but you can change it to a list with roman numbers or letters of the English, Greek, Armenian or Georgian alphabets, instead of the decimal enumerator.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Positional parameters | 1 2 3 4 | The list items go here. | String | required |
Type of list | list_style_type | no description
| String | optional |
Starting value | start | If you want to start with something other than 1.
| Number | optional |
CSS style | item_style | Custom CSS style for all of the list items. | String | optional |
ItemN Style | itemN_style | Custom CSS styles for each of the list items. Where N is the item number. | String | optional |