Difference between revisions of "Template:ContentGrid"
From Georgia Tech Student Wiki
(Add ContentGrid template from https://www.mediawiki.org/w/index.php?title=Template:ContentGrid) |
m (Squishification) |
||
| Line 1: | Line 1: | ||
| − | <!-- Taken from https://www.mediawiki.org/w/index.php?title=Template:ContentGrid&action=edit --> |
+ | <!-- Taken from https://www.mediawiki.org/w/index.php?title=Template:ContentGrid&action=edit --><div class="wiki-template-contentgrid" style="margin-{{dir|{{pagelang}}|left|right}}: 1em; grid-template-columns: repeat(auto-fit, minmax({{{grid-columns-min-max|300px}}}, 1fr)); grid-gap: {{{grid-gap|10px}}}; grid-auto-rows: minmax({{{grid-rows-min-max|100px}}}, auto); width: {{{width|auto}}};">{{{content}}}</div><noinclude>{{Documentation}}</noinclude> |
| − | |||
| − | <div class="wiki-template-contentgrid" style="margin-{{dir|{{pagelang}}|left|right}}: 1em; grid-template-columns: repeat(auto-fit, minmax({{{grid-columns-min-max|300px}}}, 1fr)); grid-gap: {{{grid-gap|10px}}}; grid-auto-rows: minmax({{{grid-rows-min-max|100px}}}, auto); width: {{{width|auto}}};">{{{content}}}</div> |
||
| − | <noinclude> |
||
| − | {{Documentation}} |
||
| − | </noinclude> |
||
Latest revision as of 14:58, 8 July 2022
{{{content}}}
Usage[edit source]
A responsive grid of page elements. Populate the content parameter with grid elements separated by a new line.
For example:
{{ContentGrid
|content=
Text A
Text B
Text C
}}
Produces:
Text A
Text B
Text C
This template works well with other templates, like Template:Colored box.
For example:
{{ContentGrid
|content=
{{Colored box
|title = Title
|content = Content
}}
{{Colored box
|title =
|content =
}}
}}
Produces:
Title
Content
Title
Content