Template:Card: Difference between revisions
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
"description": "The text to display inside the card.", | "description": "The text to display inside the card.", | ||
"type": "unbalanced-wikitext", | "type": "unbalanced-wikitext", | ||
"aliases": [ | "aliases": [ | ||
"Content", | "Content", | ||
| Line 24: | Line 23: | ||
"success", | "success", | ||
"danger", | "danger", | ||
"info" | "info", | ||
"warning" | |||
] | ] | ||
}, | }, | ||
| Line 32: | Line 32: | ||
], | ], | ||
"description": "The title for the card", | "description": "The title for the card", | ||
"type": "string" | "type": "string", | ||
"required": true | |||
" | |||
}, | }, | ||
"href": { | "href": { | ||
| Line 45: | Line 42: | ||
"linkTo" | "linkTo" | ||
], | ], | ||
"type": " | "type": "url" | ||
}, | }, | ||
"orientation": { | "orientation": { | ||
| Line 94: | Line 91: | ||
"variant", | "variant", | ||
"title", | "title", | ||
"href", | "href", | ||
"orientation", | "orientation", | ||
"icon" | "icon" | ||
] | ], | ||
"format": "block" | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
{{#tag:react| |component=Card | {{#tag:react| |component=Card|orientation={{{orientation|vertical}}}|href={{{href|}}}|icon={{{icon|}}}|variant={{{variant|}}}|title={{{title}}}|content={{{content|}}}}} | ||
Revision as of 00:57, 13 May 2026
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| content | content Content Body body | The text to display inside the card. | Unbalanced wikitext | optional |
| variant | variant Variant type Type | The style variant of the card (e.g., warning, success, info, danger).
| String | optional |
| title | title Title | The title for the card | String | required |
| href | href link Href Link linkTo | no description | URL | optional |
| orientation | orientation Orientation layout Layout | no description
| String | optional |
| icon | icon Icon | no description
| String | optional |