Template:Comma-separated list
Appearance
(Redirected from Template:Csl)
| This template is being considered for merging with Template:Comma-separated entries. Please discuss this matter at this template's entry at templates for discussion to help reach a consensus. |
| This template is used on approximately 3,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses TemplateStyles: |
| This template uses 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 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 saysandbefore 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
