Jump to content

Template:Hub grid: Difference between revisions

From The Perfect Tower II
Responsive grid for hub cards. Source: wiki repo onwiki/Template/Hub grid.wikitext
 
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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Cards1

Hub card templates, one per line

Contentrequired
Widewide

Any value makes wider cards (fewer per row)

Booleanoptional