Description
This template displays a list in columns.
Examples
Cols
{{columns|3|
*text A
*text B
*text C
*text D
*text E
*text F
*text G
*text H
}}
will output as...
- text A
- text B
- text C
- text D
- text E
- text F
- text G
- text H
Colwidth
{{columns|colwidth=10em|content=
*text A
*text B
*text C
*text D
*text E
*text F
*text G
*text H
}}
will output as...
- text A
- text B
- text C
- text D
- text E
- text F
- text G
- text H
Colwidth with rules
{{columns|colwidth=10em|rules=yes|content=
*text A
*text B
*text C
*text D
*text E
*text F
*text G
*text H
}}
will output as...
- text A
- text B
- text C
- text D
- text E
- text F
- text G
- text H
TemplateData
Displays a list in columns.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Number of columns | 1 cols | The number of columns that can be displayed. | Number | suggested |
| Column width | colwidth | Specifies the width of columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays. This overrides the 'cols' setting.
| String | optional |
| Rules | rules | Produces vertical rules between the columns if set to yes. | String | optional |
| Gap size | gap | Specifies the space between the content of adjacent columns.
| String | optional |
| HTML class | class | Specifies any class or multiple space-delimited classes.
| String | optional |
| CSS style | style | Specifies any custom styling. | String | optional |
| List | 2 content | The list that will be split into the number of columns specified. | Content | suggested |
| Small font | small | If set to 'yes', use a smaller font size (90%). | String | optional |
See also
- Template:Div col on Wikipedia