الگو:Ordered list
پرونده:Lua-Logo.svg | 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 orlist-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 ... |
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.
|
Acceptable list style type values and supported web browsers
CSS list-style-type values
none |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
disc |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
circle |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
square |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
decimal |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
decimal-leading-zero |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
lower-roman |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
upper-roman |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
lower-alpha |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
upper-alpha |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
lower-greek |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
armenian |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
georgian |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
...but still supported by some browsers.
hebrew |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | No | No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | No | No |
cjk-ideographic |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | No | No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | No | No |
hiragana |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | No | No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | No | No |
katakana |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | No | No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | No | No |
hiragana-iroha |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | No | No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | No | No |
katakana-iroha |
---|
|
Internet Explorer | Firefox | Safari | Chrome | Opera | ||||||||||||
6 | 7 | 8 | 9 | 10 | 3 | 4 | 5 | 4 | 5 | 9 | 10 | 11 | 12 | 10 | 11 | 12 |
No | No | No | No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | No | No |
See also
References
- ↑ "Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification". W3C. December 7, 2010.
- ↑ "Cascading Style Sheets, level 2 CSS2 Specification". W3C. April 11, 2008.
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.
پارامتر | توضیحات | نوع | وضعیت | |
---|---|---|---|---|
First item to list | 1 | بدون توصیف | ناشناخته | ضروری |
Second item to list | 2 | بدون توصیف | ناشناخته | اختیاری |
Third item to list | 3 | بدون توصیف | ناشناخته | اختیاری |
Fourth item to list | 4 | بدون توصیف | ناشناخته | اختیاری |
Fifth item to list | 5 | بدون توصیف | ناشناخته | اختیاری |
Sixth item to list | 6 | بدون توصیف | ناشناخته | اختیاری |
Seventh item to list | 7 | بدون توصیف | ناشناخته | اختیاری |
Eighth item to list | 8 | بدون توصیف | ناشناخته | اختیاری |
Ninth item to list | 9 | بدون توصیف | ناشناخته | اختیاری |
Tenth item to list | 10 | بدون توصیف | ناشناخته | اختیاری |
Type of list | list_style_type | بدون توصیف
| ناشناخته | اختیاری |
Starting value | start | بدون توصیف | ناشناخته | اختیاری |
CSS style | item_style | بدون توصیف | ناشناخته | اختیاری |