Template:ContentGrid: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (allow customizing of content grid) |
m (9 revisions imported from mw:Template:ContentGrid) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="ContentGrid/styles.css" /> |
|||
<div |
<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:39, 10 June 2021
{{{content}}}
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
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