Template:Columns-list/doc
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 Template:Para 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 Template:Para 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
Here is an example: <source lang=text>Template:Div colScript error: No such module "Check for unknown parameters".</source>
which would render as: Template:Clear Template:Div colScript error: No such module "Check for unknown parameters".
CSS styles can also be added in addition to the colwidth parameter. For example:
<source lang=text>Template:Div colScript error: No such module "Check for unknown parameters".</source>
which would render as: Template:Div colScript error: No such module "Check for unknown parameters".
This template also works with numbered lists as its "text". For example:
<source lang=text> Template:Div colScript error: No such module "Check for unknown parameters". </source>
Template:Div colScript error: No such module "Check for unknown parameters".
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 Template:Para, or use of the first unnamed parameter (aka Template:Para) along with Template:Para or a second unnamed parameter for the template's content, will generate a red error message. To fix this error, use Template:Para 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 Template:Para in front of the template's content.
Redirects
Tracking category
- Template:Clc (for pages in article space only)
See also
Template:Column-generating template families