Template:Card: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#invoke:Card|main}}</includeonly>") |
Salty Nori (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:Card|main}}</includeonly> | <includeonly>{{#invoke:Card|main}}</includeonly><noinclude>{{Documentation|type=Design}}</noinclude> |
Latest revision as of 03:37, 18 January 2024
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
Main | Documentation | Usage |
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 |