模板:Cslist
本模板使用以下模板樣式: |
本模板使用 Lua 語言: |
The "cslist" (comma-separated list) template allows editors to create a horizontal list similar to Template:Hlist, but using comma separators instead of mid-dots.
The template allows an optional |semi=
, which when set to true
or yes
will use a semicolon as separator instead of a comma.
It calls Module:Cslist to process an arbitrary number of list items and generate the list.
Note: the unordered list which is generated is good for accessibility, and is intended for use only in tables and infoboxes as an alternative to {{hlist}}. It should not be used in article prose.
Examples
編輯{{cslist | first item | second item | third item | etc}} →
|
{{cslist | first item | second item | third item | etc |semi=true}} →
|
See also
編輯
|
上述文件嵌入自Template:Cslist/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |