hello@defzone.netLien he
DZ
DefZone.Net

Kien thuc cong nghe & giai tri

Bai vietDia diemAlbum anhGameCua hang
  1. Home
  2. Wiki
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:Cslist/styles.css (sandbox)
This template uses Lua:
  • Module:Cslist (sandbox)
Shortcut
  • {{cslTemplate: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 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

[edit]
  • {{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

[edit]
  • Template:Enum
  • 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|item1 |item2 }}
  • item1
  • item2
Horizontal list
{{flatlist|
* item1
* item2}}
  • item1
  • item2
Horizontal list
{{cslist|item1 |item2 }}
  • item1
  • item2
Bulleted list
{{bulleted list|item1 |item2 }}
  • item1
  • item2
Numeric ordered list
{{Ordered list|first |second }}
  1. first
  2. second
Alphabetic ordered list
{{Ordered list|list_style_type=lower-alpha |first |second }}
  1. first
  2. second
Unbulleted list
{{unbulleted list|item1 |item2 }}
  • item1
  • item2
Unbulleted list
{{plainlist|
* item1
* item2}}
  • item1
  • item2
Glossary or definition list
{{glossary}}

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

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

{{flowlist|
*item1
*item2}}

  • item1
  • item2
Ordered list in columns
{{columns-list|colwidth=5em|
# first
# second}}
  1. first
  2. second
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.
DZ
DefZone.Net

Noi chia se kien thuc, huong dan va kham pha cong nghe.

Lien ket nhanh

Trang chủBài viếtWikiCua hangLien he

Lien he

Email: hello@defzone.net
Dien thoai: +84 999 999 999
Dia chi: 123 Duong Cong Nghe, Ha Noi

Dang ky nhan tin

Nhan bai viet va cap nhat moi nhat qua email.

© 2025 DefZone.Net. All rights reserved.
PrivacyTermsSitemap