Changes

Jump to navigation Jump to search
1,418 bytes added ,  14:08, 16 January 2019
update and copy edit.
{{Uses TemplateStyles|Template:Cslist/styles.css}}
{{Documentation subpage}}
{{lua|Module:Cslist}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
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 {{para|semi}}, which when set to <code>true</code> or <code>yes</code> 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 [[Wikipedia:Manual of Style/Accessibility|accessibility]], and is intended for use only in tables and infoboxes as an alternative to {{tl|hlist}}. It should not be used in article prose.

== Examples ==
{| class="wiktable"
|-
| <code><nowiki>{{cslist | first item | second item | third item | etc}}</nowiki></code> → {{cslist | first item | second item | third item | etc}}
|-
| <code><nowiki>{{cslist | first item | second item | third item | etc |semi=true}}</nowiki></code> → {{cslist | first item | second item | third item | etc |semi=true}}
|}

== See also ==
{{navbox lists}}

<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->

}}</includeonly>
Anonymous user

Navigation menu