Template:Card/doc: Difference between revisions
Jump to navigation
Jump to search
Salty Nori (talk | contribs) (Created page with "{{Lua}} Returns a card based on the input. ==Syntax== {{T|Card|v1=filename|v2=size=image size|v3=link=mage link|v4=q=item quality|v5=note=appended note|v6=x=item amount|v7=ext=file extension}} ==Examples== *{{T|Card|Carrot|30|Crops|_Ybr_=1}} *{{T|Card|Carrot|30|Crops|mini=1|_Ybr_=1}} *{{T|Card|Carrot|p2=link=Carrot|show_caption=1|_Ybr_=1}} *{{T|Card|Carrot|q=1|_Ybr_=1}} *{{T|Card|Carrot|p2=text=blue carrot|q=4|x=5|note=this is not a potato|_Ybr_=1}} ==Template Data==...") |
Salty Nori (talk | contribs) No edit summary |
||
Line 73: | Line 73: | ||
"label": "Card caption", | "label": "Card caption", | ||
"description": "Show default card caption", | "description": "Show default card caption", | ||
"type": "boolean" | |||
}, | |||
"mini": { | |||
"label": "Mini card", | |||
"description": "Mini version of card", | |||
"example": "1", | |||
"type": "boolean" | "type": "boolean" | ||
} | } | ||
Line 86: | Line 92: | ||
"ext", | "ext", | ||
"text", | "text", | ||
"show_caption" | "show_caption", | ||
"mini" | |||
] | ] | ||
}</templatedata> | }</templatedata> |
Latest revision as of 03:39, 18 January 2024
Returns a card based on the input.
Syntax
{{Card|filename|size = image size|link = mage link|q = item quality|note = appended note|x = item amount|ext = file extension}}
Examples
{{Card|Carrot|30|Crops}}
yields:{{Card|Carrot|30|Crops|mini = 1}}
yields:{{Card|Carrot|link = Carrot|show_caption = 1}}
yields:{{Card|Carrot|q = 1}}
yields:{{Card|Carrot|text = blue carrot|q = 4|note = this is not a potato|x = 5}}
yields:
Template Data
Template to automate and standardize formatting of icons.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Card | 1 name | Item or character name | String | required |
Quality | q | Item's quality, accepted values are "1" or "bronze", "2" or "silver", "3" or "gold", and "4" or "osmium" | String | suggested |
Amount | 2 x amount | Amount of items
| Number | suggested |
Link | link | Link of a page | String | optional |
Note | note | Text appended inside parenthesis | String | suggested |
Extension | ext | File extension if not "png"
| String | optional |
Caption text | text 3 | Card caption's custom text
| String | suggested |
Card caption | show_caption | Show default card caption | Boolean | optional |
Mini card | mini | Mini version of card
| Boolean | optional |