• 首页
  • 随机
  • 最近更改
  • 特殊页面
  • 社群首页
  • 设置
  • 关于戏曲百科
  • 免责声明
戏曲百科
  • 登录

模板:Ordered list

  • 监视
  • 查看源代码
    • 链入页面
    • 固定链接
    • 页面信息
模板文档[查看] [编辑] [历史] [清除缓存]
🪧此模板使用Lua语言:
  • Module:List

目录

  • 1 Usage
  • 2 Syntax
    • 2.1 Acceptable list style type values and supported web browsers
  • 3 參見
  • 4 References

Usage

This template creates an ordered list, which is similar to a numbered list but may display other characters, such as roman numbers or alphabet letters, instead of the decimal enumerator.

Syntax

Simple
{{Ordered list |entry1 |entry2| ... }}
Offset starting value
{{Ordered list |start=start|entry1 |entry2 |... |item1_style=CSS1 |item2_style=CSS2| ... }}
Changing the symbol style
{{Ordered list |list_style_type=type |entry1 |entry2 |... }}
With CSS style
{{Ordered list |item_style=CSS-all |entry1 |entry2 |... }}
With separate CSS styles for each item
{{Ordered list |entry1 |item1_style=CSS1 |entry2 |item2_style=CSS2 |... }}
With custom values for each item
{{Ordered list |item1_value=value1 |entry1 |item2_value=value2 |entry2 |... }}
Parameters' description
Parameter Description
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

模板:CSS list-style-type values

參見

  • Help:List
  • {{Multi-column numbered list}}
  • {{Unbulleted list}}

References

模板:Reflist

  • 查
  • 论
  • 编
HTML列表
更多信息:
  • Help:列表
  • 维基百科:格式手册/列表
  • Wikipedia:格式手冊/親和力 § 列表
  • 维基专题:列表
水平
{{hlist}} {{flatlist}} {{cslist}}

{{hlist |例子1 |例子2 |...}}

{{flatlist|
* 例子1
* 例子2
* ...
}}

{{cslist |例子1 |例子2 |...}}


  • 例子1
  • 例子2
  • ...

  • 例子1
  • 例子2
  • ...

  • 例子1
  • 例子2
  • ...
無序、有序
{{bulleted list}} {{ordered list}}

{{bulleted list |例子1 |例子2 |...}}

{{Ordered list |list_style_type=lower-alpha |第一 |第二 |...}}


  • 例子1
  • 例子2
  • ...

  1. 第一
  2. 第二
  3. ...
無項目符號
{{unbulleted list}} {{plainlist}} {{glossary}}
(定義列表、描述、關聯)

{{unbulleted list |例子1 |例子2 |...}}

{{plainlist|
* 例子1
* 例子2
* ...
}}

{{glossary}}
{{term|字詞1}} {{defn|定義1}}
{{term|字詞2}} {{defn|定義2}}
{{term|...}} {{defn|....}}
{{glossary end}}


  • 例子1
  • 例子2
  • ...

  • 例子1
  • 例子2
  • ...

字詞1
定義1
字詞2
定義2
...
....
其他
{{flowlist}} {{columns-list}}

[[File:Bad Title Example.png|left|thumb|100px]]
{{flowlist|
*例子1
*例子2
*...
}}

{{columns-list|colwidth=5em|
# 第一
# 第二
# 第三
# ...
}}


文件:Bad Title Example.png
  • 例子1
  • 例子2
  • ...

  1. 第一
  2. 第二
  3. 第三
  4. ...
Category:列表格式模板
上述文档嵌入自模板:Ordered list/doc。 (编辑 | 历史)
编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。
请在/doc子页面中添加分类。 本模板的子页面。
检索自“https://wiki66.com/index.php?title=模板:Ordered_list&oldid=46749”
分类:​
  • Lua模板
  • 含有受损文件链接的页面
  • 列表格式模板
最后编辑于2021年6月17日 (星期四) 02:10

语言

    此页面在其他语言不可用。

    戏曲百科
    • 本页面最后编辑于2021年6月17日 (星期四) 02:10。
    • 错误反馈
    • 关于戏曲百科
    • 免责声明
    • 豫ICP备13003402号-1
    • 桌面版