Template:Comma-separated list

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Comma-separated list/doc" to edit its documentation if it is available. (How does this work?)

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.

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 has an optional |semi=, which when set will use a semicolon as separator instead of a comma.
  • The template has an optional |oxford=, which when set will generate a list that says and before the last item.

It calls Module:Cslist to process an arbitrary number of list items and generate the list.

The unordered list which is generated is good for accessibility, and is intended as an alternative to {{hlist}}. For use in article prose instead of tables and infoboxes, use the |oxford= parameter.

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

See also

Lua error in Module:Navbox_top_and_bottom at line 21: attempt to call field '_navbox' (a nil value).

Horizontal list
{{horizontal list|item1 |item2 }}
  • item1
  • item2
Horizontal list
{{flat list|
* item1
* item2}}
  • item1
  • item2
Horizontal list
{{comma-separated list|item1 |item2 }}
  • item1
  • item2
Bulleted list
{{bulleted list|item1 |item2 }}
  • item1
  • item2
Numeric ordered list
{{Ordered list|first |second }}
  1. first
  2. second
Alphabetic ordered list
{{Ordered list|list_style_type=lower-alpha |first |second }}
  1. first
  2. second
Unbulleted list
{{unbulleted list|item1 |item2 }}
  • item1
  • item2
Unbulleted list
{{plain list|
* item1
* item2}}
  • item1
  • item2
Glossary or definition list
{{glossary}}
{{term|first term}}
{{defn|first description}}
{{term|second term}}
{{defn|second description}}
{{glossary end}}
first term
first description
second term
second description
Bulleted list to flow around an image
[[File:Bad Title Example.png|left|thumb|100px]]

{{flowing list|
*item1
*item2}}

  • item1
  • item2
Ordered list in columns
{{columns list|colwidth=5em|
# first
# second}}
  1. first
  2. second

Lua error in Module:Navbox_top_and_bottom at line 21: attempt to call field '_navbox' (a nil value).