Template:Card: Difference between revisions
Created page with "<noinclude> <templatedata> { "params": { "content": { "description": "The text to display inside the card.", "type": "string", "required": true }, "variant": { "description": "The style variant of the carad (e.g., warning, success, info, danger).", "type": "string" } }, "paramOrder": [ "content", "variant" ] } </templatedata> </noinclude> {{#tag:react|{{{content}}}|component=Card|variant={{{variant|info}}}|content="{{{content}}}"}}" |
No edit summary Tag: Manual revert |
||
| (23 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
"content": { | "content": { | ||
"description": "The text to display inside the card.", | "description": "The text to display inside the card.", | ||
"type": "unbalanced-wikitext", | |||
"aliases": [ | |||
"Content", | |||
"Body", | |||
"body" | |||
] | |||
}, | |||
"variant": { | |||
"description": "The style variant of the card (e.g., warning, success, info, danger).", | |||
"type": "string", | |||
"aliases": [ | |||
"Variant", | |||
"type", | |||
"Type" | |||
], | |||
"suggestedvalues": [ | |||
"success", | |||
"danger", | |||
"info", | |||
"warning", | |||
"brand" | |||
] | |||
}, | |||
"title": { | |||
"aliases": [ | |||
"Title" | |||
], | |||
"description": "The title for the card", | |||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
" | "orientation": { | ||
" | "aliases": [ | ||
"type": "string" | "Orientation", | ||
"layout", | |||
"Layout" | |||
], | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"horizontal", | |||
"vertical" | |||
] | |||
}, | |||
"icon": { | |||
"aliases": [ | |||
"Icon" | |||
], | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"academic-cap", | |||
"star", | |||
"command-line", | |||
"pencil", | |||
"gift", | |||
"bank-notes", | |||
"bolt", | |||
"cake", | |||
"calendar", | |||
"computer-desktop", | |||
"device-phone-mobile", | |||
"envelope-open", | |||
"key", | |||
"phone", | |||
"printer", | |||
"question-mark-circle", | |||
"sparkles", | |||
"shield-check", | |||
"shield-exclamation", | |||
"wifi", | |||
"video-camera", | |||
"variable" | |||
] | |||
}, | |||
"align": { | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"left", | |||
"right", | |||
"center" | |||
] | |||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"content", | "content", | ||
"variant" | "variant", | ||
] | "title", | ||
"orientation", | |||
"icon", | |||
"align" | |||
], | |||
"format": "block" | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
{{#tag:react|{{{ | {{#tag:react | | | ||
component=Card | |||
|orientation={{{orientation|vertical}}} | |||
|icon={{{icon|}}} | |||
|align={{{align|}}} | |||
|variant={{{variant|}}} | |||
|title={{{title}}} | |||
|content={{{content|}}} | |||
}} | |||
Latest revision as of 16:33, 19 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 |
| orientation | orientation Orientation layout Layout | no description
| String | optional |
| icon | icon Icon | no description
| String | optional |
| align | align | no description
| String | optional |