Help:Columns

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Script error: No such module "Message box".Script error: No such module "Namespace detect". Template:Short description

colbegin and colend

To create columns in an article one may use Template:Tl and Template:Tl. Note that this is not supported by Internet Explorer version 9 and below or Opera version 11 and below — see Template:Tl for details. To illustrate the use of these templates, this example uses the Template:Tl template to generate Lorem ipsum placeholder text.

{{colbegin}}
{{lorem}}
{{lorem}}
{{colend}}

produces:

<templatestyles src="Div col/styles.css"/>

Script error: No such module "Check for unknown parameters".

Script error: No such module "lorem ipsum". Script error: No such module "lorem ipsum".


You can also use Template:Tl, Template:Tl, and Template:Tl. But don't use this variety to set numbered or bulleted lists in columns, because Template:Tl breaks the list up, which is a problem for accessibility.

As such:

{{col-begin}}
{{col-break}}
{{lorem}}
{{col-break}}
{{lorem}}
{{col-break}}
{{lorem}}
{{col-end}}

creates

<templatestyles src="Col-begin/styles.css"/>

CSS

MediaWiki:Common.css defines the following styles:

  • "div.columns-2", "div.columns-3", "div.columns-4" and "div.columns-5" which need to contain a "div.column"

Templates

CSS3 multicolumn support

Script error: No such module "labelled list hatnote". Template:CSS3 multiple column layout The templates Template:Tl and Template:Tl use a feature in CSS3 that is implemented in:

See also

Template:Help navigation Template:Wikipedia technical help