Template:Ability card v2/Card/MainBox/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Created page with "<templatedata> { "params": { "title": { "description": "Title that appears above the container", "example": "On Hit:", "type": "string" }, "scale_type": { "description": "Type of attribute scaling (other scalings exist, but only \"spirit\" is currently supported)", "example": "spirit", "type": "string", "suggestedvalues": [ "spirit" ] }, "scale_value": { "description": "Multiplier for the scaling", "example": "0.5", "type":..." |
Gammaton32 (talk | contribs) No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
}, | }, | ||
"scale_type": { | "scale_type": { | ||
"description": "Type of attribute scaling | "description": "Type of attribute scaling", | ||
"example": "spirit", | "example": "spirit", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"spirit" | "spirit", | ||
"melee", | |||
"power_increase", | |||
"weapon_damage_increase", | |||
"weapon_power" | |||
] | ] | ||
}, | }, | ||
| Line 32: | Line 36: | ||
}, | }, | ||
"type": { | "type": { | ||
"description": "Attribute type - used to automatically retrieve the icon's image, link, size | "description": "Attribute type - used to automatically retrieve the icon's image, link, size (but not color)", | ||
"example": "damage", | "example": "damage", | ||
"type": "string", | "type": "string", | ||
| Line 60: | Line 64: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"icon_size": {}, | "icon_size": { | ||
"icon_link": {}, | "description": "Icon's size. Overridden by size retrieved via \"type\" parameter", | ||
"example": "12px", | |||
"type": "string" | |||
}, | |||
"icon_link": { | |||
"description": "Icon's hyperlink. Overridden by link retrieved via \"type\" parameter", | |||
"type": "string" | |||
}, | |||
"value": { | "value": { | ||
"description": "Display value of the attribute", | "description": "Display value of the attribute", | ||
| Line 69: | Line 80: | ||
}, | }, | ||
"key": { | "key": { | ||
"description": "Will retrieve the attribute label from localization data based on the current selected language using \"<key>_label\"", | |||
"description": "Will retrieve the label from localization data based on the current selected language using \"<key>_label\"", | |||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
| Line 78: | Line 88: | ||
"type": "string" | "type": "string" | ||
} | } | ||
} | }, | ||
"description": "Display element for a main ability attribute, of which heroes usually have between 1 and 3 in their ability cards", | |||
"paramOrder": [ | |||
"value", | |||
"key", | |||
"label", | |||
"type", | |||
"scale_type", | |||
"scale_value", | |||
"title", | |||
"icon_color", | |||
"icon", | |||
"icon_size", | |||
"icon_link" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 23:26, 4 July 2025
Display element for a main ability attribute, of which heroes usually have between 1 and 3 in their ability cards
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| value | value | Display value of the attribute
| Number | required |
| key | key | Will retrieve the attribute label from localization data based on the current selected language using "<key>_label" | String | suggested |
| label | label | Display label for attribute. Will override the use of "key" argument | String | optional |
| type | type | Attribute type - used to automatically retrieve the icon's image, link, size (but not color)
| String | suggested |
| scale_type | scale_type | Type of attribute scaling
| String | optional |
| scale_value | scale_value | Multiplier for the scaling
| Number | optional |
| title | title | Title that appears above the container
| String | optional |
| icon_color | icon_color | Color of the attribute icon
| String | optional |
| icon | icon | Icon's image name. Overridden by image found via "type" parameter
| String | optional |
| icon_size | icon_size | Icon's size. Overridden by size retrieved via "type" parameter
| String | optional |
| icon_link | icon_link | Icon's hyperlink. Overridden by link retrieved via "type" parameter | String | optional |