Template:Cslist/doc

From The Kodiak Republic Wiki

Revision as of 08:03, 12 January 2023 by Silmjlc (talk | contribs) (Created page with "{{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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 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


Cookies help us deliver our services. By using our services, you agree to our use of cookies.