Template:Colbegin

Usage Basic usage


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h

Produces:

a b c d e f g h Parameters There are six parameters for this template:

Specifies the minimum width of the columns so that the number of columns is automatically based on screen width (that is, more columns will be shown on wider displays). If no value is supplied, the template uses a default of 30em. The width can be specified in any CSS unit of measure, for instance, the em (about the width of the capital "M" of the displayed typeface), e.g., colwidth=20em. Adds vertical lines ("rules") between the columns if set to yes. Specifies the space between the content of adjacent columns, in any valid CSS width unit, e.g., gap=2em. The default spacing (set by browser) is 1em. An HTML class, or multiple space-delimited classes, to apply to the columns. CSS styling to apply to the columns. Sets font size to 90%. Content to apply to the columns. This parameter is effectively equivalent to, which is a pass-through for this template. Examples Colwidth
 * colwidth=
 * rules=yes
 * gap=
 * class=
 * style=
 * small=yes
 * content=
 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h

Produces:

a b c d e f g h Rules
 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h

Produces:

a b c d e f g h Gap
 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h

Produces:

a b c d e f g h Small
 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h

Produces:

a b c d e f g h Content

Produces:

a b c d e f g h Multiple parameters


 * a
 * b
 * c
 * d
 * e
 * f
 * g
 * h

Produces:

a b c d e f g h Text characters without list markup a b c d e f g h

Produces

a b c d e f g h

Lorem ipsum

Produces

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Limitation Sub-lists The underlying CSS system is unable to break sub-lists into columns. Note the uneven formatting below:

Produces:

a b c c.d c.e c.f g h Turning off the break-inside: avoid-column; rule appears to help.

TemplateData for Div col

Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with.

[Edit template data] Template parameters

Parameter	Description	Type	Status 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.

Example 30em String	optional Rules	rules Produces vertical rules between the columns if set to yes.

Example yes String	optional Gap size	gap Specifies the space between the content of adjacent columns.

Example 2em String	optional HTML class	class Specifies any class or multiple space-delimited classes.

Example plainlist nowrap String	optional CSS style	style Specifies any custom styling.

String	optional Content	content Specifies the content to divide into columns

Content	optional Small font	small Use a smaller font size (90%)

Example yes String	optional Redirects

(but not or )