Difference between revisions of "Template:Columns"
Jump to navigation
Jump to search
(Created page with "<noinclude> === Parameters === '''type(required):''' begin / div / end '''cols(default 2):''' number of columns on widest screen </noinclude><includeonly><!-- -->{{#vardefin...") |
|||
Line 11: | Line 11: | ||
-->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|150px}}}}<!-- | -->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|150px}}}}<!-- | ||
-->{{#ifeq:{{{type}}}|begin|<div style="column-count:{{#var:cols}}; column-width:{{#var:width}}; column-gap:40px;">|}}<!-- | -->{{#ifeq:{{{type}}}|begin|<div style="column-count:{{#var:cols}}; column-width:{{#var:width}}; column-gap:40px; column-rule: 2px solid #d6d6d6;">|}}<!-- | ||
-->{{#ifeq:{{{type}}}|div|</div><div style="column-count:{{#var:cols}}; column-width:{{#var:width}}; column-gap:40px;">|}}<!-- | -->{{#ifeq:{{{type}}}|div|</div><div style="column-count:{{#var:cols}}; column-width:{{#var:width}}; column-gap:40px; column-rule: 2px solid #d6d6d6;">|}}<!-- | ||
-->{{#ifeq:{{{type}}}|end|</div>|}}</includeonly> | -->{{#ifeq:{{{type}}}|end|</div>|}}</includeonly> |
Latest revision as of 10:19, 17 August 2021
Parameters
type(required): begin / div / end
cols(default 2): number of columns on widest screen