Template:Flatlist/sandbox
外观
| 这是Template:Flatlist(差异)的沙盒。 参见本模板的测试样例。 |
| 本模板使用以下模板样式: |
Usage
[编辑]{{Flatlist}} 显示一个平行列表,例如:
此模板不带{{endflatlist}}。
导航使用 {{navbox}},也可以使用 |listclass=hlist,但是不使用此模板。
示例
[编辑]{{flatlist |
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}
- Alternative syntax
{{flatlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endflatlist}}
- Syntax for ordered lists
{{flatlist | class=hnum |
# [[first]]
# [[second]]
# [[third]]
# [[fourth]]
# [[fifth]]
# [[sixth]]
}}
注意
[编辑]|class=- 添加一个CSS样式包含的div。|style=- 添加CSS样式选项。复杂的风格不应该被用在文章,但可能是可接受的用户,项目,讨论页。
- 例如:
|style=border:solid 1px silver; background:lightyellow
- 例如:
|indent=- 缩进一个标准的缩进,特别是对列入在缩进讨论线程方便的列表。
- 例如:
|indent=2
- 例如:
参见
[编辑]- {{endflatlist}}
- {{plainlist}}
- {{multi-column numbered list}}
- {{nowrap begin}}/{{nowrap end}}
- {{pagelist}}
- {{Setout}}
- WP:HLIST