Actions

Template

Difference between revisions of "Grid"

From Gulf of Fallen Stars

Line 20: Line 20:
 
-->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|24%}}{{#vardefine:minwidth|262px}}}}<!--
 
-->{{#ifeq: {{#var:cols}}|4|{{#vardefine:width|24%}}{{#vardefine:minwidth|262px}}}}<!--
 
-->{{#ifeq: {{#var:cols}}|5|{{#vardefine:width|19%}}{{#vardefine:minwidth|210px}}}}<!--
 
-->{{#ifeq: {{#var:cols}}|5|{{#vardefine:width|19%}}{{#vardefine:minwidth|210px}}}}<!--
-->{{#ifeq: {{#var:cols}}|6|{{#vardefine:width|16%}}{{#vardefine:minwidth|175px}}}}<!--
+
-->{{#ifeq: {{#var:cols}}|6|{{#vardefine:width|16%}}{{#vardefine:minwidth|100px}}}}<!--
  
 
-->{{#if:{{{border|}}}<!--
 
-->{{#if:{{{border|}}}<!--

Revision as of 14:25, 10 March 2020

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

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