Template:Ability card v2/Card/MainBox/doc: Difference between revisions
Appearance
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":..." |
m Reordered and added description |
||
Line 69: | Line 69: | ||
}, | }, | ||
"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 77: | ||
"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": [ | |||
"key", | |||
"value", | |||
"type", | |||
"scale_type", | |||
"scale_value", | |||
"label", | |||
"title", | |||
"icon", | |||
"icon_color", | |||
"icon_size", | |||
"icon_link" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 00:21, 27 December 2024
Display element for a main ability attribute, of which heroes usually have between 1 and 3 in their ability cards
Parameter | Description | Type | Status | |
---|---|---|---|---|
key | key | Will retrieve the attribute label from localization data based on the current selected language using "<key>_label" | String | suggested |
value | value | Display value of the attribute
| Number | required |
type | type | Attribute type - used to automatically retrieve the icon's image, link, size, and color
| String | suggested |
scale_type | scale_type | Type of attribute scaling (other scalings exist, but only "spirit" is currently supported)
| String | optional |
scale_value | scale_value | Multiplier for the scaling
| Number | optional |
label | label | Display label for attribute. Will override the use of "key" argument | String | optional |
title | title | Title that appears above the container
| String | optional |
icon | icon | Icon's image name. Overridden by image found via "type" parameter
| String | optional |
icon_color | icon_color | Color of the attribute icon
| String | optional |
icon_size | icon_size | no description | Unknown | optional |
icon_link | icon_link | no description | Unknown | optional |