Template:Columns-list/doc
This page uses content from Wikipedia. The original article was at Template:Columns-list. The list of authors can be seen in the page history. |
{{Columns-list}} is for use in a list in the body of an article, rather than in a navigation template like {{Navbox}}. Based on {{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 colwidth and a value in ems.
{{Columns-list|colwidth=15em| * ''Text'' * ''(usually a list)'' }}
Here, colwidth 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.
Examples
Here is an example:
{{Columns-list|colwidth=35em| * [[George Washington]] * [[John Adams]] * [[Thomas Jefferson]] * [[James Madison]] * [[James Monroe]] }}
which would render as:
CSS styles can also be added in addition to the colwidth parameter. 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:
Error messages
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.