Template:Columns
Jump to navigation
Jump to search
This template can be used to split a long list into columns. If there is not enough room, it will collapse into fewer columns.
Parameters
Using only one unnamed parameter
- 1
- String - Content to be laid out into the columns.
- count
- Number of columns (default: 2).
- minwidth
- CSS Units - Minimum width of each column, or else the browser will reduce the number of columns (default: 20em).
Using two or more unnamed parameters
- 1
- Number - Number of columns (default: 2).
- 2
- String - Content to be laid out into the columns.
- 3
- CSS Units - Minimum width of each column, or else the browser will reduce the number of columns (default: 20em).
Examples
{{columns|2| * Item 1 * Item 2 * Item 3 * Item 4 }}
- Item 1
- Item 2
- Item 3
- Item 4
{{columns|count=3|minwidth=30em| * Each column is at least 30 em * so if you shrink the screen size * this will likely collapse * into much smaller columns to * ensure it all fits very nicely! }}
- Each column is at least 30 em
- so if you shrink the screen size
- this will likely collapse
- into much smaller columns to
- ensure it all fits very nicely!