Changes
Jump to navigation
Jump to search
oops
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE END OF THIS PAGE -->
{{Hatnote|{{tl|Collist}} redirects here. You may be looking for {{tl|Collapsible list}}.}}
{{Tsh|cmn|collist|col-list}}
This template is for use in a list in the body of an article, rather than in a navigation template like [[Template:Navbox]]. Based on [[Template:Reflist]], but different in that the text to be displayed is manually created rather than a list of references.
== Use ==
The width of each column may be specified using {{para|colwidth}} and a value in ems.
<nowiki>{{</nowiki>columns-list|colwidth=''width''|
''Text (usually a list)''
<nowiki>}}</nowiki>
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 {{para|colwidth}} is not specified, the default width of 30em will be used.
This template uses [[CSS]]3 multiple-column layout, which is not supported by all [[WWW|Web]] [[Web browser|browsers]].
{{CSS3 multiple column layout}}
=== Examples ===
Here is an example:
<source lang=text>{{columns-list|colwidth=35em|
* [[George Washington]]
* [[John Adams]]
* [[Thomas Jefferson]]
* [[James Madison]]
* [[James Monroe]]
}}</source>
which would render as:
{{clear}}<!-- just in case {{CSS3 multiple column layout}} pokes down this far -->
{{columns-list|colwidth=35em|
* [[George Washington]]
* [[John Adams]]
* [[Thomas Jefferson]]
* [[James Madison]]
* [[James Monroe]]
}}
[[CSS]] styles can also be added in addition to the colwidth parameter. For example:
<source lang=text>{{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]]
}}</source>
which would render as:
{{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]]
}}
==Error messages==
Use of the no-longer-supported parameter {{para|cols}}, or use of the first unnamed parameter (aka {{para|1}}) along with {{para|2}} or a second unnamed parameter for the template's content, will generate a red error message. To fix this error, use {{para|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 {{para|1}} in front of the template's content.
== Redirects ==
* {{tl|cmn}}
* {{tl|collist}}
* {{tl|col-list}}
* {{tl|Columnslist}}
==Tracking categories==
* {{clc|Pages using columns-list with unknown parameters}} (for pages in article space only)
== See also ==
{{Column-generating template families}}
<!-- == References ==
{{Reflist}} -->
<includeonly>
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Multi-column templates]]
}}
</includeonly>
<!-- PLEASE ADD CATEGORIES AT THE END OF THIS PAGE -->
{{Hatnote|{{tl|Collist}} redirects here. You may be looking for {{tl|Collapsible list}}.}}
{{Tsh|cmn|collist|col-list}}
This template is for use in a list in the body of an article, rather than in a navigation template like [[Template:Navbox]]. Based on [[Template:Reflist]], but different in that the text to be displayed is manually created rather than a list of references.
== Use ==
The width of each column may be specified using {{para|colwidth}} and a value in ems.
<nowiki>{{</nowiki>columns-list|colwidth=''width''|
''Text (usually a list)''
<nowiki>}}</nowiki>
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 {{para|colwidth}} is not specified, the default width of 30em will be used.
This template uses [[CSS]]3 multiple-column layout, which is not supported by all [[WWW|Web]] [[Web browser|browsers]].
{{CSS3 multiple column layout}}
=== Examples ===
Here is an example:
<source lang=text>{{columns-list|colwidth=35em|
* [[George Washington]]
* [[John Adams]]
* [[Thomas Jefferson]]
* [[James Madison]]
* [[James Monroe]]
}}</source>
which would render as:
{{clear}}<!-- just in case {{CSS3 multiple column layout}} pokes down this far -->
{{columns-list|colwidth=35em|
* [[George Washington]]
* [[John Adams]]
* [[Thomas Jefferson]]
* [[James Madison]]
* [[James Monroe]]
}}
[[CSS]] styles can also be added in addition to the colwidth parameter. For example:
<source lang=text>{{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]]
}}</source>
which would render as:
{{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]]
}}
==Error messages==
Use of the no-longer-supported parameter {{para|cols}}, or use of the first unnamed parameter (aka {{para|1}}) along with {{para|2}} or a second unnamed parameter for the template's content, will generate a red error message. To fix this error, use {{para|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 {{para|1}} in front of the template's content.
== Redirects ==
* {{tl|cmn}}
* {{tl|collist}}
* {{tl|col-list}}
* {{tl|Columnslist}}
==Tracking categories==
* {{clc|Pages using columns-list with unknown parameters}} (for pages in article space only)
== See also ==
{{Column-generating template families}}
<!-- == References ==
{{Reflist}} -->
<includeonly>
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Multi-column templates]]
}}
</includeonly>