Template:Columns/doc

This template formats text into the specified number of columns, or into however many columns that will fit given columns of a specified width. It is especially useful to wrap long lists of items into multiple columns to maximize horizontal space.

Uses CSS  and.

Usage
.

Parameters

 * 1 (required)
 * Column width if value ends with a  or , otherwise the column count.


 * 2 (required)
 * The content, typically a list of values or elements


 * width
 * Shortcut to set max-width on encapsulating div.


 * column-width
 * Explicitly set column-width. Should only be used if 1 is a column count.


 * column-count
 * Explicitly set column-count. Should only be used if 1 is a column width.

Fixed number of columns
For example the code bellow will split the list into 2 columns:

Result:

Fixed column width
And the following will split the list into columns of 50px each. Note that this is only a minimum width suggestion to the browser, and may be problematic when used in tables as the columns will not expand the table, resulting in only a single column being used.

Result: