Template:MC/Columns-list
More actions
| This is a template documentation subpage for Template:MC. It contains usage information, categories, and other content that is not part of the original template page. |
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 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 20em will be used.
This template uses CSS3 multiple-column layout, which is not supported by all web browsers.
Examples
Here is an example: <syntaxhighlight lang="text">Template:Columns-list</syntaxhighlight>
which would render as: Template:Columns-list
CSS styles can also be added in addition to the colwidth parameter. For example:
<syntaxhighlight lang="text">Template:Columns-list</syntaxhighlight>
which would render as: Template:Columns-list
nl:Sjabloon:Columns-list ru:Шаблон:Список
uk:Шаблон:Columns-listIf you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Columns-list/doc. (View all subpages of this page.)