模板:Ordered list/doc

勤求古訓,博采眾方
於 2022年5月3日 (二) 23:49 由 入我相思门留言 | 貢獻 所做的修訂 (创建页面,内容为“{{Documentation subpage}} {{Uses Lua|Module:List}} <!-- Categories and interwikis go at the bottom of this page. --> == 用法 == 此模板创建一个有序列表,类似于编号列表,但可能会显示其他字符,例如罗马数字或字母,而不是十进制枚举数。 == 语法 == ;简单的:<code><nowiki>{{</nowiki>Ordered list |''entry1'' |''entry2''| ... }}</code> ;偏移起始值:<code><nowiki>{{</nowiki>Ordered list |start=''start''|''e…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)

用法

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

語法

簡單的:{{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.

Acceptable list style type values and supported web browsers

Template:CSS list-style-type values

參見

References