Template:Ordered list/doc:修订间差异

勤求古训,博采众方
删除的内容 添加的内容
无编辑摘要
 
第19行: 第19行:
|-
|-
| <code>list_style_type</code>
| <code>list_style_type</code>
''type''
''类型''
| 此参数表示列表样式类型。普遍接受的参数包括:
| This parameter indicates the list style type. Popular acceptable parameters include:
<pre>
<pre>
* decimal (1, 2, 3, 4, ...)
* decimal (1, 2, 3, 4, ...)
第28行: 第28行:
* upper-alpha (A, B, C, D, ...)
* upper-alpha (A, B, C, D, ...)
</pre>
</pre>
有关完整列表,请参阅以下部分。
For a full list, see the following section.
|-
|-
| 位置参数
| Positional parameters
{{nowrap|entry1 entry2 ...}}
{{nowrap|entry1 entry2 ...}}
| 每个列表项的内容,作为未命名或位置参数。内容没有限制,除非等号 (=) 必须转义或替换为<code><nowiki>{{=}}</nowiki></code>,否则它将被解释为命名参数。
| 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 <code><nowiki>{{=}}</nowiki></code>, lest it will be interpreted a named parameter.
|-
|-
| <code>item''n''_value</code>
| <code>item''n''_value</code>
{{nowrap|value1 value2 ...}}
{{nowrap|value1 value2 ...}}
| 特定列表项的序号或标签;一个正整数。
| Ordinal or label for a specific list item; a positive integer.
|-
|-
| <code>start</code>
| <code>start</code>
|列表中第一项的序号或标签;正整数(默认值为1)。
| Ordinal or label for the first item in the list; a positive integer (default is 1).
|-
|-
| <code>item''n''_style</code>
| <code>item''n''_style</code>
{{nowrap|CSS1 CSS2 ...}}
{{nowrap|CSS1 CSS2 ...}}
|(CSS)在特定列表项上设置的样式。(用户必须知道CSS语法。)
| [[Cascading Style Sheet]] (CSS) styles that are set on a specific list item. (User must know CSS syntax.)
|-
|-
| <code>item_style</code>
| <code>item_style</code>
CSS-all
CSS-all
| CSS styles that are set on each list item. (User must know CSS syntax.) When present, any <code>item''n''_style</code> are disregarded.
| 在每个列表项上设置的CSS样式。(用户必须知道CSS语法。)当存在时,任何 <code>item''n''_style</code> 都将被忽略。
|}
|}



2022年5月4日 (三) 22:20的最新版本

用法

此模板创建一个有序列表,类似于编号列表,但可能会显示其他字符,例如罗马数字或字母,而不是十进制枚举数。

语法

简单的:{{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

类型

此参数表示列表样式类型。普遍接受的参数包括:
* 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, ...)

有关完整列表,请参阅以下部分。

位置参数

entry1 entry2 ...

每个列表项的内容,作为未命名或位置参数。内容没有限制,除非等号 (=) 必须转义或替换为{{=}},否则它将被解释为命名参数。
itemn_value

value1 value2 ...

特定列表项的序号或标签;一个正整数。
start 列表中第一项的序号或标签;正整数(默认值为1)。
itemn_style

CSS1 CSS2 ...

(CSS)在特定列表项上设置的样式。(用户必须知道CSS语法。)
item_style

CSS-all

在每个列表项上设置的CSS样式。(用户必须知道CSS语法。)当存在时,任何 itemn_style 都将被忽略。

参见

References