本頁使用了標題或全文手工轉換

模板:Cslist

來自維基學院
跳至導覽 跳至搜尋
文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]

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}}
  • first item
  • second item
  • third item
  • etc
{{cslist | first item | second item | third item | etc |semi=true}}
  • first item
  • second item
  • third item
  • etc

See also[編輯原始碼]