Template:Div col

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.

Wraps a long list so it runs in multiple columns instead of one tall one. Pair it with {{div col end}}:

{{div col}}
* [[Apple]]
* [[Banana]]
{{div col end}}

The number of columns is the first parameter, defaulting to 2 — {{div col|3}} gives three. Values of 2, 3 and 4 are styled; anything else falls back to a single column.

Columns collapse automatically on narrow screens, so the template is safe on mobile.

Note: the classes column and columns-2 used on Wikipedia are not defined on this wiki. Wrapping a list in them produces a <div> that does nothing at all. Use this template instead.

Styling lives in Template:Div col/styles.css.