• Home
  • Random
  • Recent changes
  • Special pages
  • Community portal
  • Settings
  • About Consumer Rights Wiki
  • Disclaimers
Consumer Rights Wiki
  • Talk
  • Contributions
  • Create account
  • Log in

Template:Columns-list

  • Template
  • Discussion
  • Language
  • Watch
  • View history
  • Edit
    • What links here
    • Permanent link
    • Page information
    • Edit full page
Template documentation[view] [edit] [history] [purge]
{{Collist }} redirects here. You may be looking for {{Collapsible list }}.
WarningThis template is used on approximately 119,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.

Template:Tsh

This template uses Lua:
  • Module:Template wrapper
  • Module:Check for unknown parameters

Template:Columns-list 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.

Contents

  • 1 Use
    • 1.1 Examples
  • 2 Error messages
  • 3 Redirects
  • 4 Tracking category
  • 5 See also

Use

edit

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.

Template:CSS3 multiple column layout

Examples

edit

Here is an example:

<syntaxhighlight lang="wikitext">
  • George Washington
  • John Adams
  • Thomas Jefferson
  • James Madison
  • James Monroe
</syntaxhighlight>

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:

<syntaxhighlight lang="wikitext">
  • 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
</syntaxhighlight>

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:

<syntaxhighlight lang="wikitext">

  1. George Washington
  2. John Adams
  3. Thomas Jefferson
  4. James Madison
  5. James Monroe

</syntaxhighlight>

  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 listsTemplate:Sndmore advanced lists generated by the HTML templates will work too!

Error messages

edit

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

edit
  • {{Cmn }}
  • {{Collist }}
  • {{Col-list }}
  • {{Columnslist }}

Tracking category

edit
  • Template:Clc (for pages in article space only)

See also

edit

Template:Column-generating template families Template:HTML lists

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 (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://mirror.consumerrights.wiki/index.php?title=Template:Columns-list&oldid=18747"
Categories:
  • Lua-based templates
  • Multi-column templates
  • List formatting and function templates
  • Templates that add a tracking category
Hidden category:
  • Pages with script errors
Last edited on 13 August 2025, at 06:21

Languages

    This page is not available in other languages.

    Consumer Rights Wiki
    • Creative Commons Attribution-ShareAlike 4.0 International
    • Powered by MediaWiki
    • This page was last edited on 13 August 2025, at 06:21.
    • Content is available under Creative Commons Attribution-ShareAlike 4.0 International unless otherwise noted.
    • All submissions to the site are subject to the wiki's licence, CC 4.0 BY-SA, as found here
    • Privacy policy
    • About Consumer Rights Wiki
    • Disclaimers
    • Desktop