• Home
  • Random
  • Nearby
  • Log in
  • Settings
  • Donate
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Cslist

Template Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:Cslist/styles.css
This template uses Lua:
  • Module:Cslist (sandbox)
Shortcut
  • {{csl}}

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

  • v
  • t
  • e
HTML lists
More information:
  • Help:List
  • WP:List dos and don'ts
  • WP:Manual of Style/Embedded lists
  • WP:Manual of Style/Accessibility § Lists
  • WP:WikiProject Lists
Horizontal list
{{hlist}}
{{hlist|item1 |item2 |...}}
  • item1
  • item2
  • ...
Horizontal list
{{flatlist}}
{{flatlist|
* item1
* item2
* ...}}
  • item1
  • item2
  • ...
Horizontal list
{{cslist}}
{{cslist|item1 |item2 |...}}
  • item1
  • item2
  • ...
{{bold list}}
{{bold list|item1 |item2 |...}}

item1 , item2 , or ...

Bulleted list
{{bulleted list}}
{{bulleted list|item1 |item2 |...}}
  • item1
  • item2
  • ...
Numeric ordered list
{{ordered list}}
{{Ordered list|first |second |...}}
  1. first
  2. second
  3. ...
Alphabetic ordered list
{{ordered list}}
{{Ordered list|list_style_type=lower-alpha |first |second |...}}
  1. first
  2. second
  3. ...
Unbulleted list
{{unbulleted list}}
{{unbulleted list|item1 |item2 |...}}
  • item1
  • item2
  • ...
Unbulleted list
{{plainlist}}
{{plainlist|
* item1
* item2
* ...}}
  • item1
  • item2
  • ...
Glossary or definition list
{{glossary}}
(glossary, description, definition, association)
{{glossary}}

{{term|first term}}{{defn|first description}}
{{term|second term}}{{defn|second description}}
{{term|...}}{{defn|....}}
{{glossary end}}

first term
first description
second term
second description
...
....
Bulleted list to flow around an image
{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

{{flowlist|
*item1
*item2
*...}}

  • item1
  • item2
  • ...
Ordered list in columns
{{columns-list}}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}
  1. first
  2. second
  3. third
  4. ...
Category:List formatting and function templates‎
The above documentation is transcluded from Template:Cslist/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Cslist&oldid=953096059"
Last edited on 25 April 2020, at 18:00

Languages

    • Azərbaycanca
    • تۆرکجه
    • বাংলা
    • Bân-lâm-gú
    • Bikol Central
    • Буряад
    • Cebuano
    • ChiTumbuka
    • فارسی
    • ગુજરાતી
    • Gungbe
    • 한국어
    • Bahasa Indonesia
    • Kurdî
    • Ladin
    • Монгол
    • မြန်မာဘာသာ
    • नेपाली
    • 日本語
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • සිංහල
    • Simple English
    • Slovenščina
    • کوردی
    • Tagalog
    • ၽႃႇသႃႇတႆး
    • ไทย
    • اردو
    • Tiếng Việt
    • 中文
    Wikipedia
    • This page was last edited on 25 April 2020, at 18:00 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Terms of Use
    • Desktop
    • Developers
    • Statistics
    • Cookie statement