模板: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