模板:Flatlist
![]() | 此模板目前正依照en:Template:Flatlist/doc上的内容进行翻译。 |
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
|
|
上述文档嵌入自Template:Flatlist/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (编辑 | 差异)和测试样例 (编辑)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.