Jump to content
Wikipedia The Free Encyclopedia

Template:Cslist

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
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 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

See also

HTML 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
  • ...
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. ...
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.

AltStyle によって変換されたページ (->オリジナル) /