Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
   
       🚧 True to our name, this project is still not quite finished. 🚧
   
   You’re welcome to explore, but account registration is currently invite-only as we finalize the setup. 
   Join our forum or follow Mastodon for updates. 
   Wiki registration will be available soon!

Template:CardGrid: Difference between revisions

Template page
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 inside any page to group [[Template:NavCard]], [[Template:CategoryCard]], or similar card templates together.
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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Cards1

One or more card templates to display inside the grid.

Contentrequired
Contents