Template:MultiColumn

From Archaelund Wiki
Revision as of 13:04, 21 October 2022 by MikeB (talk | contribs) (Created page with "<onlyinclude><includeonly><div style="column-count:{{#if:{{#explode:{{{1}}}|{{{Separator|<li>}}}|{{{Limit|4}}}}}|2|1}}"> {{{1}}} </div></includeonly></onlyinclude> {{Documenta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This template controls whether a given input list is displayed in one or two columns on the Wiki page, depending on the number of distinct list elements. Single-column display is used below a certain limit of list elements (4 by default), two columns are used otherwise.

Usage

{{MultiColumn|<list>
|Separator = 
|Limit = 
}}

Parameters

NameRequiredDescriptionValues
SeparatorNoA character or string representing the separator between distinct list elements. Defaults to "<li>".arbitrary text
LimitNoThe minimum number of list elements needed for two-column display. Defaults to 4.non-negative number

Note that this template may also be used to format normal text in two columns by setting Limit to 0.


View/Edit documentation page