模板:Ordered list/doc
此页面是Template:Ordered list的Templatedocumentation。 此页面可能包含了模板的使用说明、分类和其他内容。 |
此模板使用Lua语言: |
用法
此模板创建一个有序列表,类似于编号列表,但可能会显示其他字符,例如罗马数字或字母,而不是十进制枚举数。
语法
- 简单的:
{{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
|