Template:Ability card v2/Card/MainBox: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) weapon scaling |
Gammaton32 (talk | contribs) added weapon power |
||
| Line 20: | Line 20: | ||
</div>| | </div>| | ||
weapon_damage_increase = | weapon_damage_increase = | ||
<div style="position: relative;"> | |||
<div style="position: absolute; top: -20px; right: -2px"> | |||
{{Ability card v2/Card/Weapon mult|{{{scale_value}}}}} | |||
</div> | |||
</div>| | |||
weapon_power = | |||
<div style="position: relative;"> | <div style="position: relative;"> | ||
<div style="position: absolute; top: -20px; right: -2px"> | <div style="position: absolute; top: -20px; right: -2px"> | ||
Revision as of 23:19, 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 |