Template:GridContainer: Difference between revisions

From Step Mods | Change The Game
(Created page with "<includeonly><div style="display:grid;padding:1rem 0;grid-template-columns:{{{columns|auto auto auto}}};">{{{1}}}</div></includeonly><noinclude>__NOTOC__ Category:Formatting...")
 
No edit summary
Line 1: Line 1:
<includeonly><div style="display:grid;padding:1rem 0;grid-template-columns:{{{columns|auto auto auto}}};">{{{1}}}</div></includeonly><noinclude>__NOTOC__ [[Category:Formatting Templates]]
<includeonly><div style="display:grid;padding:1rem 0;grid-template:{{{template|auto / auto auto auto}}};">{{{1}}}</div></includeonly><noinclude>__NOTOC__ [[Category:Formatting Templates]]


==Purpose & Usage==
==Purpose & Usage==
Use this template to format content within a grid container.
Use this template to format content within a grid container.
===Parameters===
====Required====
*''parameter 1'': This is where you place your GridItems.
====Optional====
*''template'': This specifies the grid-template. Default is ''auto / auto auto auto''. It is using [https://www.w3schools.com/cssref/pr_grid-template.asp this CSS property].


==Examples==
==Examples==

Revision as of 00:27, January 14, 2021


Purpose & Usage[edit source]

Use this template to format content within a grid container.

Parameters[edit source]

Required[edit source]

  • parameter 1: This is where you place your GridItems.

Optional[edit source]

  • template: This specifies the grid-template. Default is auto / auto auto auto. It is using this CSS property.

Examples[edit source]

Code:

{{GridContainer|
{{GridItem|1}}
{{GridItem|2}}
{{GridItem|3}}
}}

Result:

1
2
3

See Also[edit source]

Template:GridItem