Template:Columns

From Bohemia Interactive Community
Revision as of 13:41, 22 May 2022 by Lou Montana (talk | contribs) (Replace shrink parameter with expand parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creates CSS columns. It also adds the page to the Columns template usage error category on usage error.

This template is used on these pages.

Usage

{{Columns|cols|content|expand}}

  • cols: number of columns
  • content: to be split in columns, usually a list
  • expand: named parameter. makes the columns take the whole width
Examples
Code Result
{{Columns}} -no columns count defined-
{{Columns|3}} -no columns content defined-
{{Columns|| * contentA * contentB * contentC * contentD }}
-no columns count defined-
{{Columns|2| * contentA * contentB * contentC * contentD }}
  • contentA
  • contentB
  • contentC
  • contentD
{{Columns|3| * contentA * contentB * contentC * contentD }}
  • contentA
  • contentB
  • contentC
  • contentD
{{Columns|4| * contentA * contentB * contentC * contentD }}
  • contentA
  • contentB
  • contentC
  • contentD
Above{{Columns|3| * contentA * contentB * contentC * contentD |expand= y }}Below
Above
  • contentA
  • contentB
  • contentC
  • contentD
Below