Template:Card/doc
This is the documentation page for Card. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
This template uses Module:Card, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Card.css.
See also: Template:Card List and Template:Item
Template that creates an item-style card with an image, quality, label, caption, modifiers, and optional data-driven icons.
Syntax
{{Card}}
This template has 2 unnamed parameters:
- 1 / name – Name of the item.
- 2 / text / label / x / count / amount – Text or quantity for the item.
- show_text / show_label – Set to 1 to show the text.
- caption – Caption for the card.
- show_caption – Set to 1 to show the caption.
- caption_width – Width of the caption.
- quality / rarity – Quality of the item. Default: see Module:CentralData.
- type – Data type for the item.
- suffix – Special keyword to adjust the file's suffix.
- link – Set another page to be linked.
- link_suffix – Append a suffix to the link.
- no_link – Set to 1 to omit the link.
- mini – Set to 1 for a mini card.
Examples
Default
{{Card|Mobai}}
{{Card|Mobai|show_text=1}}
{{Card|Mobai|show_caption=1}}
{{Card|Mobai|text=Text|caption=Caption|show_caption=1|quality=purple|link=Neighbor}}
Mini
{{Card|White Archiboo|mini=1}}
{{Card|White Archiboo|mini=1|x=5|caption=Really long caption|show_caption=1|caption_width=80px|no_link=1}}
Template Data
Template that creates an item-style card with an image, quality, label, caption, modifiers, and optional data-driven icons.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | 1 name | Name of the item. | String | suggested |
| Text | 2 text label x count amount | Text or quantity for the item. | String | optional |
| Show text | show_text show_label | Set to 1 to show the text.
| Boolean | optional |
| Caption | caption | Caption for the card. | String | optional |
| Show caption | show_caption | Set to 1 to show the caption.
| Boolean | optional |
| Caption width | caption_width | Width of the caption.
| String | optional |
| Quality | quality rarity | Quality of the item.
| String | optional |
| Type | type | Data type for the item. | String | optional |
| Suffix | suffix | Special keyword to adjust the file's suffix. | String | optional |
| Link | link | Set another page to be linked. | Page name | optional |
| Link suffix | link_suffix | Append a suffix to the link. | String | optional |
| No link | no_link | Set to 1 to omit the link.
| Boolean | optional |
| Mini | mini | Set to 1 for a mini card.
| Boolean | optional |