Columns – Template

From Bohemia Interactive Community
Revision as of 00:44, 8 August 2021 by Lou Montana (talk | contribs) (Add shrink parameter)
Jump to navigation Jump to search

Creates CSS columns.

This template is used on these pages.

Usage

{{Columns|cols|content|shrink}}

  • cols: number of columns
  • content: to be split in columns
  • shrink: named parameter. makes the columns take the minimum 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
{{Columns|3| * contentA * contentB * contentC * contentD |shrink= y }}
  • contentA
  • contentB
  • contentC
  • contentD