Template:Card/doc: Difference between revisions
No edit summary |
Updated |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 15: | Line 15: | ||
* {{F|caption}} – Caption for the card. | * {{F|caption}} – Caption for the card. | ||
* {{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 {{Color|New|including}} the length unit. Default: {{F|76px}} (full), {{F|56px}} (mini). | ||
* {{F|image}} – Set another image for the card. | |||
* {{F|size}} – Size of the image {{Color|Old|excluding}} the length unit. Default: {{F|70}} (full), {{F|48}} (mini). | |||
* {{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. | ||
* {{F|suffix}} – Special keyword to adjust the | * {{F|suffix}} – Special keyword to adjust the image's suffix. | ||
* {{F|link}} – Set another page to be linked. | * {{F|link}} – Set another page to be linked. | ||
* {{F|link_suffix}} – Append a suffix to the link. | * {{F|link_suffix}} – Append a suffix to the link. | ||
| Line 31: | Line 34: | ||
{{Example|no_copy=1|<nowiki> | {{Example|no_copy=1|<nowiki> | ||
{{Card|Mobai|show_text=1}} | {{Card|Mobai|size=128|show_text=1}} | ||
</nowiki>}} | </nowiki>}} | ||
{{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 98: | Line 101: | ||
"caption_width": { | "caption_width": { | ||
"label": "Caption width", | "label": "Caption width", | ||
"description": "Width of the caption.", | "description": "Width of the caption including the unit length.", | ||
"example": " | "example": "100px, 3em", | ||
"type": "string" | "type": "string", | ||
"default": "74px (full), 56px (mini)" | |||
}, | }, | ||
"quality": { | "quality": { | ||
| Line 119: | Line 123: | ||
"suffix": { | "suffix": { | ||
"label": "Suffix", | "label": "Suffix", | ||
"description": "Special keyword to adjust the | "description": "Special keyword to adjust the image's suffix.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
| Line 143: | Line 147: | ||
"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 excluding the unit length.", | |||
"default": "70 (full), 48 (mini)", | |||
"type": "number", | |||
"example": "64, 128" | |||
}, | |||
"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> | ||