Difference between revisions of "Gridless"
From Titan's Teeth
Dicemonger (talk | contribs) |
Dicemonger (talk | contribs) |
||
Line 4: | Line 4: | ||
'''cols(default 3):''' number of columns on widest screen | '''cols(default 3):''' number of columns on widest screen | ||
+ | |||
+ | '''border(default false):''' whether the box should have a border | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Line 12: | Line 14: | ||
-->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|25%}}{{#vardefine:minwidth|262px}}}}<!-- | -->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|25%}}{{#vardefine:minwidth|262px}}}}<!-- | ||
− | -->{{#ifeq:{{{type}}}|begin|<div style="display:inline-table;width:{{#var:width}};min-width:{{#var:minwidth}}; | + | -->{{#if:{{{border|}}}|{{#vardefine:boxstyle|background-color:#ffffff;border:1px solid #DDDDDD;margin:4px;padding:5px;}}|{{#vardefine:boxstyle|padding:10px;}}}}<!-- |
− | -->{{#ifeq:{{{type}}}|div|</div><div style="display:inline-table;width:{{#var:width}};min-width:{{#var:minwidth}}; | + | |
+ | -->{{#ifeq:{{{type}}}|begin|<div style="display:inline-table;width:{{#var:width}};min-width:{{#var:minwidth}};{{#var:boxstyle}}">|}}<!-- | ||
+ | -->{{#ifeq:{{{type}}}|div|</div><div style="display:inline-table;width:{{#var:width}};min-width:{{#var:minwidth}};{{#var:boxstyle}}">|}}<!-- | ||
-->{{#ifeq:{{{type}}}|end|</div>|}} | -->{{#ifeq:{{{type}}}|end|</div>|}} |
Revision as of 13:05, 25 December 2019
Parameters
type(required): begin / div / end
cols(default 3): number of columns on widest screen
border(default false): whether the box should have a border