• Home
  • Random
  • Nearby
  • Create account
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia
  • Create account
  • Log in

Template:Columns-list

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentationviewedithistorypurge
{{Collist}} redirects here. You may be looking for {{Collapsible list}}.
WarningThis template is used on approximately 125,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
Shortcuts
  • {{cmnTemplate:Cmn}}
  • {{collistTemplate:Collist}}
  • {{col-listTemplate:Col-list}}
This template uses Lua:
  • Module:Template wrapper (sandbox)
  • Module:Check for unknown parameters (sandbox)

This template turns a list into a list with columns. It is a wrapper for {{div col}}, except it wraps the template by allowing for the content to be in the template rather than above and below.

Use

The width of each column may be specified using |colwidth= and a value in ems.

{{columns-list|colwidth=width|
Text (usually a list)
}}

Here, width specifies the width of the columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays.

If |colwidth= is not specified, the default width of 30em will be used.

This template uses CSS3 multiple-column layout, which is not supported by all web browsers.

CSS3 multiple-column layout browser support
PropertyInternet
Explorer
FirefoxSafariChromeOpera
column-width
column-count
≥ 10
(2012)
≥ 1.5
(2005)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)
columns ≥ 10
(2012)
≥ 9
(2011)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)
break-before
break-after
break-inside
≥ 10
(2012)
≥ 65
(2019)
≥ 10
(2016)
≥ 50
(2016)
≥ 37
(2016)
  • v
  • t
  • e

Examples

Here is an example:

{{columns-list|colwidth=35em|
* [[George Washington]]
* [[John Adams]]
* [[Thomas Jefferson]]
* [[James Madison]]
* [[James Monroe]]
}}

which would render as:

  • George Washington
  • John Adams
  • Thomas Jefferson
  • James Madison
  • James Monroe

HTML classes and CSS styles can also be added with the |class= and |style= parameters. For example:

{{columns-list|colwidth=15em|style=width: 600px; font-style: italic;|
* [[All About Lily Chou-Chou]]
* [[April Story]]
* [[Hana and Alice|Hana & Alice]]
* [[Hōtai Club]]
* [[The Kon Ichikawa Story]]
* [[Love Letter (1995 film)|Love Letter]]
* [[New York, I Love You]]
* [[Picnic (1996 film)|Picnic]]
* [[Rainbow Song]]
* [[Swallowtail (film)|Swallowtail]]
}}

which would render as:

  • All About Lily Chou-Chou
  • April Story
  • Hana & Alice
  • Hōtai Club
  • The Kon Ichikawa Story
  • Love Letter
  • New York, I Love You
  • Picnic
  • Rainbow Song
  • Swallowtail

This template also works with numbered lists as its "text". For example:

{{columns-list|colwidth=35em|
# [[George Washington]]
# [[John Adams]]
# [[Thomas Jefferson]]
# [[James Madison]]
# [[James Monroe]]
}}
  1. George Washington
  2. John Adams
  3. Thomas Jefferson
  4. James Madison
  5. James Monroe

The template, in fact, works with everything since all it does is wrap the text provided around a block to be divided into columns by CSS. Do not stop at wikitext lists – more advanced lists generated by the HTML templates will work too!

Error messages

Use of the no-longer-supported parameter |cols=, or use of the first unnamed parameter (aka |1=) along with |2= or a second unnamed parameter for the template's content, will generate a red error message. To fix this error, use |colwidth= instead of attempting to specify the number of columns.

The presence of an equals sign within the template's content can also cause display problems and red error messages. To fix this problem, add |1= in front of the template's content.

This template may cause pages to exceed the post-expand include size limit if used on large lists. If so, use {{div col}} and {{div col end}} instead.

Redirects

  • {{cmn}}
  • {{collist}}
  • {{col-list}}
  • {{Columnslist}}

Tracking category

  • Category:Pages using columns-list with unknown parameters (0) (for pages in article space only)

See also

Column-generating template families

The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a <div>...</div> open, potentially harming any subsequent formatting.

Column templates
Type Family
Handles wiki
table code?†
Responsive/
mobile suited
Start template Column divider End template
Float "col-float" Yes Yes {{col-float}} {{col-float-break}} {{col-float-end}}
"columns-start" Yes Yes {{columns-start}} {{column}} {{columns-end}}
Columns "div col" Yes Yes {{div col}} instead use {{no col break}} {{div col end}}
"columns-list" No Yes {{columns-list}} (wraps div col) — —
Flexbox "flex columns" No Yes {{flex columns}} — —
Table "col" Yes No {{col-begin}},
{{col-begin-fixed}} or
{{col-begin-small}}
{{col-break}} or
{{col-2}} .. {{col-5}}
{{col-end}}

† Can the template handle the basic wiki markup {| | || |- |} used to create tables? If not, special templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or HTML tags (<table>...</table>, <tr>...</tr>, etc.) need to be used instead.

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

Turns a list into a list with columns. It is a wrapper for {{div col}}, except it wraps the template by allowing for the content to be in the template rather than above and below.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Content1

Specifies the content to divide into columns

Stringoptional
Columns / Column widthcolwidth

Specifies the width of columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays.

Default
30
Example
20em
Stringoptional
CSS stylestyle

Specifies any custom styling.

Example
width: 600px; font-style: italic;
Stringoptional
HTML classclass

Specifies any class or multiple space-delimited classes.

Example
plainlist nowrap
Stringoptional
The above documentation is transcluded from Template:Columns-list/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:Columns-list&oldid=1191198211"
Last edited on 22 December 2023, at 03:07

Languages

    • Acèh
    • Afrikaans
    • Alemannisch
    • Ænglisc
    • العربية
    • الدارجة
    • مصرى
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • Boarisch
    • Bikol Central
    • Беларуская
    • Betawi
    • Български
    • भोजपुरी
    • Banjar
    • বাংলা
    • Bosanski
    • Буряад
    • Català
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Нохчийн
    • Tsetsêhestâhese
    • کوردی
    • Corsu
    • Čeština
    • Kaszëbsczi
    • Cymraeg
    • Dansk
    • Dagbanli
    • Deutsch
    • Zazaki
    • ދިވެހިބަސް
    • Ελληνικά
    • Esperanto
    • Español
    • Eesti
    • Euskara
    • فارسی
    • Føroyskt
    • Français
    • Arpetan
    • Nordfriisk
    • Frysk
    • Gàidhlig
    • Galego
    • गोंयची कोंकणी / Gõychi Konknni
    • ગુજરાતી
    • Gaelg
    • Hausa
    • 客家語 / Hak-kâ-ngî
    • हिन्दी
    • Fiji Hindi
    • Hrvatski
    • Kreyòl ayisyen
    • Magyar
    • Հայերեն
    • Interlingua
    • Jaku Iban
    • Bahasa Indonesia
    • Ilokano
    • Íslenska
    • 日本語
    • Jawa
    • ქართული
    • Qaraqalpaqsha
    • Taqbaylit
    • Kongo
    • Қазақша
    • ភាសាខ្មែរ
    • ಕನ್ನಡ
    • 한국어
    • کٲشُر
    • Kurdî
    • Кыргызча
    • Ladin
    • ລາວ
    • Lietuvių
    • Latviešu
    • मैथिली
    • Мокшень
    • Malagasy
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာမန်
    • मराठी
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • مازِرونی
    • Nedersaksies
    • Plattdüütsch
    • नेपाली
    • नेपाल भाषा
    • Nederlands
    • Norsk nynorsk
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • Ирон
    • ਪੰਜਾਬੀ
    • Kapampangan
    • Papiamentu
    • پنجابی
    • پښتو
    • Português
    • Română
    • Русский
    • संस्कृतम्
    • Scots
    • سنڌي
    • Srpskohrvatski / српскохрватски
    • တႆး
    • සිංහල
    • Simple English
    • Slovenčina
    • سرائیکی
    • Slovenščina
    • Anarâškielâ
    • Soomaaliga
    • Српски / srpski
    • Sunda
    • Svenska
    • தமிழ்
    • ತುಳು
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    • తెలుగు
    • Тоҷикӣ
    • ไทย
    • ትግርኛ
    • Tagalog
    • Türkçe
    • Татарча / tatarça
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Tiếng Việt
    • Winaray
    • Yorùbá
    • Vahcuengh
    • Zeêuws
    • ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
    • 閩南語 / Bân-lâm-gí
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 22 December 2023, at 03:07 (UTC).
    • Page was rendered with Parsoid.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Legal & safety contacts
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop view