Difference between revisions of "Columns"
From Titan's Teeth
Dicemonger (talk | contribs) (Created page with "<noinclude> === Parameters === '''type(required):''' begin / div / end '''cols(default 2):''' number of columns on widest screen </noinclude><includeonly><!-- -->{{#vardefin...") |
Dicemonger (talk | contribs) |
||
Line 11: | Line 11: | ||
-->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|150px}}}}<!-- | -->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|150px}}}}<!-- | ||
− | -->{{#ifeq:{{{type}}}|begin|<div style="column-width:{{#var:width}}; column-gap:40px;">|}}<!-- | + | -->{{#ifeq:{{{type}}}|begin|<div style="column-count:{{#cols}}; column-width:{{#var:width}}; column-gap:40px;">|}}<!-- |
− | -->{{#ifeq:{{{type}}}|div|</div><div style="column-width:{{#var:width}}; column-gap:40px;">|}}<!-- | + | -->{{#ifeq:{{{type}}}|div|</div><div style="column-count:{{#cols}}; column-width:{{#var:width}}; column-gap:40px;">|}}<!-- |
-->{{#ifeq:{{{type}}}|end|</div>|}} | -->{{#ifeq:{{{type}}}|end|</div>|}} |
Revision as of 08:49, 25 August 2019
Parameters
type(required): begin / div / end
cols(default 2): number of columns on widest screen