Actions

Template

Difference between revisions of "Grid"

From Gulf of Fallen Stars

Line 18: Line 18:
 
-->{{#vardefine:cols|{{{cols|3}}}}}<!--
 
-->{{#vardefine:cols|{{{cols|3}}}}}<!--
 
-->{{#ifeq: {{#var:cols}}|1|{{#vardefine:width|100%}}{{#vardefine:minwidth|100%}}}}<!--
 
-->{{#ifeq: {{#var:cols}}|1|{{#vardefine:width|100%}}{{#vardefine:minwidth|100%}}}}<!--
-->{{#ifeq: {{#var:cols}}|2|{{#vardefine:width|49%}}{{#vardefine:minwidth|350px}}}}<!--
+
-->{{#ifeq: {{#var:cols}}|2|{{#vardefine:width|49%}}{{#vardefine:minwidth|500px}}}}<!--
-->{{#ifeq: {{#var:cols}}|3|{{#vardefine:width|32%}}{{#vardefine:minwidth|350px}}}}<!--
+
-->{{#ifeq: {{#var:cols}}|3|{{#vardefine:width|32%}}{{#vardefine:minwidth|330px}}}}<!--
-->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|24%}}{{#vardefine:minwidth|210px}}}}<!--
+
-->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|24%}}{{#vardefine:minwidth|250px}}}}<!--
-->{{#ifeq: {{#var:cols}}|5|{{#vardefine:width|19%}}{{#vardefine:minwidth|210px}}}}<!--
+
-->{{#ifeq: {{#var:cols}}|5|{{#vardefine:width|19%}}{{#vardefine:minwidth|200px}}}}<!--
-->{{#ifeq: {{#var:cols}}|6|{{#vardefine:width|16%}}{{#vardefine:minwidth|100px}}}}<!--
+
-->{{#ifeq: {{#var:cols}}|6|{{#vardefine:width|16%}}{{#vardefine:minwidth|160px}}}}<!--
  
 
-->{{#if:{{{ignoreminwidth|}}}|{{#vardefine:minwidth|0}}}}<!--
 
-->{{#if:{{{ignoreminwidth|}}}|{{#vardefine:minwidth|0}}}}<!--

Revision as of 20:00, 10 March 2020

Parameters

type(required): begin / div / end

cols(default 3): number of columns on widest screen

ignoreminwidth(default false): columns will have no minimum width

border(default false): whether the box should have a border

background(default transparent): the background of the grid cell. Defaults to white if border is true.

center(default false): center the text in the div

nomargin(default false): Overrides all margins and padding to 0