Template:Card/doc: Difference between revisions

No edit summary
No edit summary
Line 16: Line 16:
* {{F|show_caption}} – Set to {{F|1}} to show the caption.
* {{F|show_caption}} – Set to {{F|1}} to show the caption.
* {{F|caption_width}} – Width of the caption.
* {{F|caption_width}} – Width of the caption.
* {{F|image}} – Set another image for the card.
* {{F|size}} – Size of the image.
* {{F|ext}} – Extension of the image. Default: {{F|png}}.
* {{F|quality}} / {{F|rarity}} – Quality of the item. Default: see [[Module:CentralData]].
* {{F|quality}} / {{F|rarity}} – Quality of the item. Default: see [[Module:CentralData]].
* {{F|type}} – Data type for the item.
* {{F|type}} – Data type for the item.
Line 35: Line 38:


{{Example|no_copy=1|<nowiki>
{{Example|no_copy=1|<nowiki>
{{Card|Mobai|show_caption=1}}
{{Card|Mobai|image=Unknown Icon.png|show_caption=1}}
</nowiki>}}
</nowiki>}}


Line 119: Line 122:
"suffix": {
"suffix": {
"label": "Suffix",
"label": "Suffix",
"description": "Special keyword to adjust the file's suffix.",
"description": "Special keyword to adjust the image's suffix.",
"type": "string"
"type": "string"
},
},
Line 143: Line 146:
"example": "1",
"example": "1",
"type": "boolean"
"type": "boolean"
},
"image": {
"label": "Image",
"description": "Set another image for the card.",
"example": "Unknown Icon.png",
"type": "wiki-file-name",
"default": "<name> Icon.png"
},
"size": {
"aliases": [
"image_size"
],
"label": "Size",
"description": "Size of the image.",
"default": "Full: 70, mini: 48"
},
"ext": {
"aliases": [
"image_ext"
],
"label": "Extension",
"description": "Extension of the image.",
"type": "string",
"default": "png"
}
}
},
},
"description": "Template that creates an item-style card with an image, quality, label, caption, modifiers, and optional data-driven icons.",
"description": "Template that creates an item-style card with an image, quality, label, caption, modifiers, and optional data-driven icons.",
"format": "inline"
"format": "inline",
"paramOrder": [
"1",
"2",
"show_text",
"caption",
"show_caption",
"caption_width",
"image",
"size",
"ext",
"quality",
"type",
"suffix",
"link",
"link_suffix",
"no_link",
"mini"
]
}
}
</templatedata>
</templatedata>