Difference between revisions of "Template:Grid"

From Epic Paths
Jump to navigation Jump to search
Tag: Reverted
 
(2 intermediate revisions by the same user not shown)
Line 38: Line 38:
-->{{#if:{{{background|}}}|{{#vardefine:background|background-color:{{{background|}}};}}}}<!--
-->{{#if:{{{background|}}}|{{#vardefine:background|background-color:{{{background|}}};}}}}<!--


-->{{#if:{{{center|}}}|{{#vardefine:textstyle|text-align:center;}}{{#vardefine:padding|padding:20px;}}|{{#vardefine:padding|padding:10px;}}}}<!--
-->{{#if:{{{center|}}}|{{#vardefine:textstyle|text-align:center;}}{{#vardefine:padding|padding:20px;}}|{{#vardefine:textstyle|}}{{#vardefine:padding|padding:10px;}}}}<!--


-->{{#if:{{{nomargin|}}}|{{#vardefine:margin|margin:0px;}}{{#vardefine:padding|padding:0px;}}|}}<!--
-->{{#if:{{{nomargin|}}}|{{#vardefine:margin|margin:0px;}}{{#vardefine:padding|padding:0px;}}|}}<!--
Line 51: Line 51:
{{#var:startdivs}}|}}<!--
{{#var:startdivs}}|}}<!--
-->{{#ifeq:{{{type}}}|end|{{#var:enddivs}}}}
-->{{#ifeq:{{{type}}}|end|{{#var:enddivs}}}}
{{{center|}}}

Latest revision as of 12:07, 2 August 2021

Parameters

type(required): begin / div / end ("nl" can be used instead of div, if you want a newline in the grid)

cols(default 3): number of columns on widest screen. If set to 0, width/number columns is not defined.

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


Templates: {{Grid|type=|cols=}}

{{Grid|type=|cols=|border=|background=|center=}}