Script error: No such module "Uses TemplateStyles".
{{Columns}} may be used to create up to ten columns across a page.
| Caution | This template creates a table rather than actual columns. This means that it may displays poorly on mobile devices or narrow screens and is sub-optimal in terms of accessibility. Approximately half of the readers of English Wikipedia articles are using mobile devices and may have trouble reading the content that is wrapped in this template. Please consider using one of the CSS-based column templates listed in the Script error: No such module "Section link". section instead, or not using columns at all if there is any trouble affects page layout. |
Syntax
Values for col1 and col2, i.e. the contents of the first and second columns, are expected.
{{Columns
| background = <!-- Background (default is none) -->
| style = <!-- Use to add extra overall CSS styling -->
| colwidth = <!-- Width of each column (default 15.0em) -->
| gapbetween = <!-- Gap (gutter) between each column (default 1.25em) -->
| col1width = <!-- Use to set a custom width for col1 -->
| col1 = <!-- (REQUIRED) First column's contents -->
| col2width = <!-- Use to set a custom width for col2 (and so on) -->
| col2 = <!-- (REQUIRED) Second column's contents -->
| col3width =
| col3 =
...
| col10width =
| col10 =
}}
The parameters colstyle and col1style to col10style may also be used to tailor all and/or individual columns' CSS styling.
Examples
- Code
{{Columns
| col1 = This is a simple application of the columns template, demonstrating the default column widths
| col2 = and gaps between columns. See the next example for a more customized use of the template.
}}
- Result
|
|
|
This is the Zodiac speaking. Do you still think you can stop me? Do you still think I have a soul? I do know that you people do not have souls, for I have destroyed them.
16886255625516889277012962122655399212
48620991621001279262164388920912101004
01023992013910921688620948624362101055
16013912092916886209480401022612095516
01390401022612090901165516013990923101
11621290120962909001111612105792620991
12092904010212119212101055622648579262
09915543880129010901168862099157021626
01095502909288122792559296551092923912
09292992319226121692010992291204624362
10101102109216889243011110291209291210
10013104010243621010579290045510122792
55111031261688884811311104165739558812
27921291010129166290926209168892119229
91129092556209571416014309
This is a simple application of the columns template, demonstrating the default column widths
|
|
and gaps between columns. See the next example for a more customized use of the template.
|
|
- Code
{{Columns |background=beige |colwidth=8.5em |gap<!--between-->=3.25em
| col1 =
* These
* columns
* are
* more
* complex
| col2 =
The<br />background<br />is<br />beige
| col3 =
; Each : column
; is : 8.5 [[Em (typography)|''em'']]
; wide
| col4 =
{{{!}}
!colspan="2"{{!}} and
{{!-}}
{{!}} the {{!!}} gap
{{!-}}
{{!}}colspan="2"{{!}} between
{{!-}}
{{!}} each {{!!}} is
{{!-}}
!colspan="2" align="center"{{!}} 3.25 ''em''
{{!}}}
}}
- Result
|
|
|
This is the Zodiac speaking. Do you still think you can stop me? Do you still think I have a soul? I do know that you people do not have souls, for I have destroyed them.
16886255625516889277012962122655399212
48620991621001279262164388920912101004
01023992013910921688620948624362101055
16013912092916886209480401022612095516
01390401022612090901165516013990923101
11621290120962909001111612105792620991
12092904010212119212101055622648579262
09915543880129010901168862099157021626
01095502909288122792559296551092923912
09292992319226121692010992291204624362
10101102109216889243011110291209291210
10013104010243621010579290045510122792
55111031261688884811311104165739558812
27921291010129166290926209168892119229
91129092556209571416014309
- These
- columns
- are
- more
- complex
|
|
The background is beige
|
|
- Each
- column
- is
- 8.5 em
- wide
|
|
| and
|
| the |
gap
|
| between
|
| each |
is
|
| 3.25 em
|
|
|
See also
Column-generating template families
<section begin="table" />
File:Dagger-14-plain.png I.e., can the columns handle the wiki markup {| | || |- |} used to create tables? If not, templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or HTML tags (<table>...</table>, <tr>...</tr>, etc.) will need to be used instead.<section end="table" />
| |