Template:Flatlist
外观
用法
{{Flatlist}} 显示一个平行列表,例如:
- cat
- dog
- horse
- cow
- sheep
- pig
此模板不带{{endflatlist}}。
导航使用 {{navbox}},也可以使用 |listclass=hlist,但是不使用此模板。
示例
{{flatlist |
* cat
* dog
* horse
* cow
* sheep
* pig
}}
- cat
- dog
- horse
- cow
- sheep
- pig
- Alternative syntax
{{flatlist}}
* cat
* dog
* horse
* cow
* sheep
* pig
{{endflatlist}}
- cat
- dog
- horse
- cow
- sheep
- pig
- Syntax for ordered lists
{{flatlist | class=hnum |
# first
# second
# third
# fourth
# fifth
# sixth
}}
- first
- second
- third
- fourth
- fifth
- sixth
注意
- 类 - 添加一个CSS样式包含的div。
- 风格 - 添加CSS样式选项。复杂的风格不应该被用在文章,但可能是可接受的用户,项目,讨论页。
- 例如:
|style=border:solid 1px silver; background:lightyellow
- 例如:
- 缩进 - 缩进一个标准的缩进,特别是对列入在缩进讨论线程方便的列表。
- 例如:
|indent=2
- 例如:
参见
- {{endflatlist}}
- {{plainlist}}
- {{multi-column numbered list}}
- {{nowrap begin}}/{{nowrap end}}
- {{pagelist}}
- {{Setout}}
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
| 上述zh-cn:文档; zh-tw:文件;嵌入自Template:Flatlist/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (zh-cn:创建; zh-tw:建立; | 镜像)和测试样例 (zh-cn:创建; zh-tw:建立;)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |