模板:Endflatlist
外觀
用法
{{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:建立;)頁面進行實驗。 本模板的子頁面。 |