Template:ContentGrid: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<templatestyles src="ContentGrid/styles.css" /> <div class="tpl-contentgrid" style="grid-template-columns: repeat(auto-fit, minmax({{{grid-columns-min-max|300px}}}, 1fr)); grid-gap: {{{grid-gap|2em}}}; grid-auto-rows: minmax({{{grid-rows-min-max|100px}}}, auto); width: {{{width|auto}}};">{{{content}}}</div><noinclude> {{Documentation}} </noinclude>") |
(No difference)
|
Latest revision as of 15:22, 21 December 2023
{{{content}}}
Usage
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.
The above documentation is transcluded from Template:ContentGrid/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |