Help:Columns
Page Module:Message box/ombox.css has no content.
| File:Twemoji 1f527.svg | This help page is a how-to guide. It explains concepts or processes used by the Wikipedia community. It is not one of Wikipedia's policies or guidelines, and may reflect varying levels of consensus. | Page Module:Shortcut/styles.css has no content. |
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:
Page Template:Div col/styles.css has no content.
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
Page Template:Col-begin/styles.css has no content.
|
Script error: No such module "lorem ipsum". |
Script error: No such module "lorem ipsum". |
Script error: No such module "lorem ipsum". |
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
- Template:Tl and Template:Tl – utilizes CSS3 features
- Template:Tl – defines CSS classes (see above)
- Template:Tl – uses an HTML table (also adds a MULTICOL attribute)
- Template:Tl
- Template:Tl – uses CSS3
- Template:Tl – uses CSS3
CSS3 multicolumn support
Script error: No such module "labelled list hatnote".
| Property | Internet Explorer |
Firefox | Safari | Chrome | Opera |
|---|---|---|---|---|---|
| column-width column-count |
≥ 10 (2012) |
≥ 1.5 (2005) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
| columns | ≥ 10 (2012) |
≥ 9 (2011) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
| break-before break-after break-inside |
≥ 10 (2012) |
≥ 65 (2019) |
≥ 10 (2016) |
≥ 65 (2016) |
≥ 15 (2013) |
| Lua error in package.lua at line 80: module 'Module:Navbar/configuration' not found. | |||||
The templates Template:Tl and Template:Tl use a feature in CSS3 that is implemented in:
- Gecko-based browsers, such as Firefox 1.5
- Presto-based browsers, such as Opera 11.1
- WebKit-based browsers, such as Safari (web browser) 3 and Google Chrome 1
- MSHTML-based browsers, such as Internet Explorer 10
See also
Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.