Template:CardGrid: Difference between revisions
Template page
More actions
No edit summary  |
Add <templatedata> for Visual Editor Usage. Â |
||
| Line 1: | Line 1: | ||
<div style="text-align:center; margin:8px 0; font-size:0;">{{{1|}}}</div><noinclude> | <div style="text-align:center; margin:8px 0; font-size:0;">{{{1|}}}</div><noinclude> | ||
== CardGrid == | == CardGrid == | ||
Wraps a set of cards in a centered flex container. Use | Wraps a set of cards in a centered flex container. Use to group [[Template:NavCard]], [[Template:CategoryCard]], or similar card templates together. | ||
=== Usage === | === Usage === | ||
| Line 13: | Line 13: | ||
=== Parameters === | === Parameters === | ||
; <code>{{{1}}}</code> (unnamed, required) : The card content to wrap. Pass one or more card templates as the value. | ; <code>{{{1}}}</code> (unnamed, required) : The card content to wrap. Pass one or more card templates as the value. | ||
<templatedata> | |||
{ | |||
  "description": "Wraps a group of cards (NavCard, CategoryCard, etc.) in a centered flex container.", | |||
  "params": { | |||
    "1": { | |||
      "label": "Cards", | |||
      "description": "One or more card templates to display inside the grid.", | |||
      "type": "content", | |||
      "required": true | |||
    } | |||
  }, | |||
  "format": "block" | |||
} | |||
</templatedata> | |||
[[Category:Layout Templates]] | [[Category:Layout Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 08:25, 23 March 2026
CardGrid
Wraps a set of cards in a centered flex container. Use to group Template:NavCard, Template:CategoryCard, or similar card templates together.
Usage
{{CardGrid|
{{NavCard|...}}
{{NavCard|...}}
}}
Parameters
{{{1}}}(unnamed, required)- The card content to wrap. Pass one or more card templates as the value.
Wraps a group of cards (NavCard, CategoryCard, etc.) in a centered flex container.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Cards | 1 | One or more card templates to display inside the grid. | Content | required |