Actions

Template

Difference between revisions of "Grid"

From P6 Spheres

(Created page with "<noinclude> === 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 c...")
 
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
 
'''nomargin(default false):''' Overrides all margins and padding to 0
 
'''nomargin(default false):''' Overrides all margins and padding to 0
  
</noinclude><includeonly><!--
+
----
 +
 
 +
'''Templates:''' <nowiki>{{</nowiki>Grid|type=|cols=<nowiki>}}</nowiki>
 +
 
 +
<nowiki>{{</nowiki>Grid|type=|cols=|border=|background=|center=<nowiki>}}</nowiki></noinclude><includeonly><!--
 
-->{{#vardefine:cols|{{{cols|3}}}}}<!--
 
-->{{#vardefine:cols|{{{cols|3}}}}}<!--
 
-->{{#ifeq: {{#var:cols}}|0|{{#vardefine:width|auto}}{{#vardefine:minwidth|0}}}}<!--
 
-->{{#ifeq: {{#var:cols}}|0|{{#vardefine:width|auto}}{{#vardefine:minwidth|0}}}}<!--

Latest revision as of 20:26, 16 May 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=}}