Template:Card/doc

Revision as of 07:35, 5 May 2026 by Stevium (talk | contribs) (Updated)
This is the documentation page for Card.
It contains usage information, categories, and other content not part of the original template page.
This template uses Module:Card, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Card.css.

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 including the length unit. Default: 76px (full), 56px (mini).
  • image – Set another image for the card.
  • size – Size of the image excluding the length unit. Default: 70 (full), 48 (mini).
  • ext – Extension of the image. Default: png.
  • quality / rarity – Quality of the item. Default: see Module:CentralData.
  • type – Data type for the item.
  • suffix – Special keyword to adjust the image'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}}
MobaiMobai

{{Card|Mobai|show_text=1}}
MobaiMobai

{{Card|Mobai|image=Unknown Icon.png|show_caption=1}}
MobaiMobaiMobai

{{Card|Mobai|text=Text|caption=Caption|show_caption=1|quality=purple|link=Neighbor}}

Mini

{{Card|White Archiboo|mini=1}}
White Archiboo

{{Card|White Archiboo|mini=1|x=5|caption=Really long caption|show_caption=1|caption_width=80px|no_link=1}}
White Archiboo5Really long caption

Template Data

Template that creates an item-style card with an image, quality, label, caption, modifiers, and optional data-driven icons.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1 name

Name of the item.

Stringsuggested
Text2 text label x count amount

Text or quantity for the item.

Stringoptional
Show textshow_text show_label

Set to 1 to show the text.

Example
1
Booleanoptional
Captioncaption

Caption for the card.

Stringoptional
Show captionshow_caption

Set to 1 to show the caption.

Example
1
Booleanoptional
Caption widthcaption_width

Width of the caption including the unit length.

Default
74px (full), 56px (mini)
Example
100px, 3em
Stringoptional
Imageimage

Set another image for the card.

Default
<name> Icon.png
Example
Unknown Icon.png
Fileoptional
Sizesize image_size

Size of the image excluding the unit length.

Default
70 (full), 48 (mini)
Example
64, 128
Numberoptional
Extensionext image_ext

Extension of the image.

Default
png
Stringoptional
Qualityquality rarity

Quality of the item.

Default
See Module:CentralData for default values.
Example
Gray, Purple, Gold
Stringoptional
Typetype

Data type for the item.

Stringoptional
Suffixsuffix

Special keyword to adjust the image's suffix.

Stringoptional
Linklink

Set another page to be linked.

Page nameoptional
Link suffixlink_suffix

Append a suffix to the link.

Stringoptional
No linkno_link

Set to 1 to omit the link.

Example
1
Booleanoptional
Minimini

Set to 1 for a mini card.

Example
1
Booleanoptional