模板:Ordered list/doc

勤求古訓,博采眾方

用法

此模板創建一個有序列表,類似於編號列表,但可能會顯示其他字符,例如羅馬數字或字母,而不是十進位枚舉數。

語法

簡單的:{{Ordered list |entry1 |entry2| ... }}
偏移起始值:{{Ordered list |start=start|entry1 |entry2 |... |item1_style=CSS1 |item2_style=CSS2| ... }}
更改符號樣式:{{Ordered list |list_style_type=type |entry1 |entry2 |... }}
使用CSS樣式:{{Ordered list |item_style=CSS-all |entry1 |entry2 |... }}
每個項目都有單獨的CSS樣式:{{Ordered list |entry1 |item1_style=CSS1 |entry2 |item2_style=CSS2 |... }}
使用每個項目的自定義值:{{Ordered list |item1_value=value1 |entry1 |item2_value=value2 |entry2 |... }}
參數描述
參數 描述
list_style_type

type

This parameter indicates the list style type. Popular acceptable parameters include:
* 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, ...)

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.)
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.

參見

References