Jump to content
Wikimedia Meta-Wiki

Template:Col

From Meta, a Wikimedia project coordination wiki
Template documentation

This template starts a <div> block that aligns its content into multiple blocks using CSS. Unlike {{col-begin}}, the columns are automatically broken at the right place to balance them; an equivalent of {{col-break}} is not necessary.

Template parameters[Edit template data ]

This template has custom formatting.

ParameterDescriptionTypeStatus
column count1

Number of columns

Default
2
Numberoptional
column gap2

Gap between the columns. It can be any CSS length or percentage value

Default
10px
Example
0.2em; 3%
Lineoptional
text alignmentalign

no description

Suggested values
left right center justify start end
Default
left
Lineoptional
CSS classclass

Any CSS classes to add to the <div>

Example
plainlinks
Lineoptional
The above documentation is transcluded from Template:Col/doc. (edit | history)
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /