Template:Hub grid: Difference between revisions
Speedybrain (talk | contribs) Responsive grid for hub cards. Source: wiki repo onwiki/Template/Hub grid.wikitext |
Speedybrain (talk | contribs) Fix: keep the space between classes (#if trims it), so wide=1 works |
||
| Line 1: | Line 1: | ||
<templatestyles src="Hub card/styles.css" /><div class="wiki-cards{{#if:{{{wide|}}}| wiki-cards--wide}}">{{{1|}}}</div><noinclude> | <templatestyles src="Hub card/styles.css" /><div class="wiki-cards {{#if:{{{wide|}}}|wiki-cards--wide}}">{{{1|}}}</div><noinclude> | ||
A responsive grid for [[Template:Hub card]]s. Put each card on its own line and leave no blank lines between them. | A responsive grid for [[Template:Hub card]]s. Put each card on its own line and leave no blank lines between them. | ||
Latest revision as of 12:12, 6 October 2026
A responsive grid for Template:Hub cards. Put each card on its own line and leave no blank lines between them.
A responsive grid of hub cards.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Cards | 1 | Hub card templates, one per line | Content | required |
| Wide | wide | Any value makes wider cards (fewer per row) | Boolean | optional |