模板:Endflatlist
外觀
| 本模板使用以下模板樣式: |
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