Template:Card/doc: Difference between revisions
Template page
More actions
Created page with "Card component of the main page. == TemplateData == <templatedata> { "params": { "class": { "label": "HTML class", "description": "HTML class(es) added to the container", "type": "string" }, "image": { "label": "Background image", "description": "Background image of the card", "example": "John Howe - Gollum.jpg", "type": "wiki-file-name" }, "imagePosition": { "label": "Background image position", "description": "Position of the back..." |
(No difference)
|
Latest revision as of 00:46, 4 September 2025
Card component of the main page.
TemplateData
Card component of the main page
Parameter | Description | Type | Status | |
---|---|---|---|---|
HTML class | class | HTML class(es) added to the container | String | optional |
Background image | image | Background image of the card
| File | optional |
Background image position | imagePosition | Position of the background image in the card
| String | optional |
Background image width | imageWidth | Width of the background image
| Number | optional |
Label | label | Label of the card
| String | optional |
Title | title | Title text of the card
| String | optional |
Caption | caption | Caption text of the card
| String | optional |
Content | content | HTML or wikitext used as content of the card | Content | optional |
Link | link | Page name of the card that is linked to
| Page name | optional |
After image content | afterImage | HTML or wikitext used as content of the card. It is only used on cards with background image | Content | optional |