Columns – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Template creation)
 
m (Add CSS fix)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}
<includeonly>{{#if:{{{1|}}}
| {{#if:{{{2|}}}
| {{#if:{{{2|}}}
| <div style="columns: {{{1|2}}}">{{{2|}}}</div>
| <div class="columns" style="column-count: {{{1|2}}}">{{{2|}}}</div>
| -no columns content defined-
| -no columns content defined-
}}
}}

Revision as of 11:13, 5 August 2021

Creates CSS columns.

This template is used on these pages.

Usage

{{Columns|cols|content}}

  • cols: number of columns
  • content: to be split in columns
Examples
Code Result
{{Columns}} -no columns count defined-
{{Columns|3}} -no columns content defined-
{{Columns|| * contentA * contentB * contentC * contentD }}
-no columns count defined-
{{Columns|3| * contentA * contentB * contentC * contentD }}
  • contentA
  • contentB
  • contentC
  • contentD