Template:Card: Difference between revisions
No edit summary |
No edit summary Tag: Manual revert |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 35: | Line 35: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
"orientation": { | "orientation": { | ||
| Line 84: | Line 76: | ||
"video-camera", | "video-camera", | ||
"variable" | "variable" | ||
] | |||
}, | |||
"align": { | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"left", | |||
"right", | |||
"center" | |||
] | ] | ||
} | } | ||
| Line 91: | Line 91: | ||
"variant", | "variant", | ||
"title", | "title", | ||
"orientation", | "orientation", | ||
"icon" | "icon", | ||
"align" | |||
], | ], | ||
"format": "block" | "format": "block" | ||
| Line 99: | Line 99: | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
{{#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 |