Template:Columns-list

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Documentationviewedithistorypurge
This documentation is transcluded from Template:Columns-list/doc.

Usage[edit]

Display a list in multiple columns if space is available.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Content1

Content to be displayed in multiple columns (if space available). Typically a list.

Contentrequired
CSSstyle

no description

Stringoptional


Example[edit]

{{columns-list|
Text (usually a list)
}}

This template uses CSS3 multiple column layout and is not supported by all web browsers.

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

which would render as:

CSS styles can also be added after the number of columns. For example:

{{columns-list|style=max-width: 75em; 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:

See also[edit]