Actions

Template

Difference between revisions of "Grid"

From P6 Spheres

 
Line 18: Line 18:
  
 
'''Templates:''' <nowiki>{{</nowiki>Grid|type=|cols=<nowiki>}}</nowiki>
 
'''Templates:''' <nowiki>{{</nowiki>Grid|type=|cols=<nowiki>}}</nowiki>
 +
 
<nowiki>{{</nowiki>Grid|type=|cols=|border=|background=|center=<nowiki>}}</nowiki></noinclude><includeonly><!--
 
<nowiki>{{</nowiki>Grid|type=|cols=|border=|background=|center=<nowiki>}}</nowiki></noinclude><includeonly><!--
 
-->{{#vardefine:cols|{{{cols|3}}}}}<!--
 
-->{{#vardefine:cols|{{{cols|3}}}}}<!--

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=}}