Template:Ability card v2/Card/MainBox: Difference between revisionsGive feedback
Prefix fix |
Gammaton32 (talk | contribs) added stats_count as a scale type |
||
| Line 23: | Line 23: | ||
<div style="position: absolute; top: -20px; right: -2px"> | <div style="position: absolute; top: -20px; right: -2px"> | ||
{{Ability card v2/Card/Weapon mult|{{{scale_value}}}}} | {{Ability card v2/Card/Weapon mult|{{{scale_value}}}}} | ||
</div> | |||
</div>| | |||
stats_count = | |||
<div style="position: relative;"> | |||
<div style="position: absolute; top: -20px; right: -2px"> | |||
{{Ability card v2/Card/Spirit mult|{{{scale_value}}}}} | |||
</div> | </div> | ||
</div>|}} | </div>|}} | ||
| Line 28: | Line 34: | ||
background: radial-gradient(circle, rgba(36,37,36,1) 0%, rgba(66,55,47,1) 100%); | spirit = background: rgb(42,41,43); | background: radial-gradient(circle, rgba(36,37,36,1) 0%, rgba(66,55,47,1) 100%); | spirit = background: rgb(42,41,43); | ||
background: radial-gradient(circle, rgba(42,41,43,1) 0%, rgba(59,49,69,1) 100%); | power_increase = background: rgb(61,78,70); | background: radial-gradient(circle, rgba(42,41,43,1) 0%, rgba(59,49,69,1) 100%); | power_increase = background: rgb(61,78,70); | ||
background: radial-gradient(circle, rgba(42,41,43,1) 0%, rgba(61,78,70,1) 100%); |background-color: #2A2A2A}}; text-align: center; border: 3px solid {{#switch: {{{scale_type}}} | melee = #5b412b | spirit = #583D6F | power_increase = #48675a | #2A2A2A}}; box-shadow: 0 0 10px {{#switch: {{{scale_type}}} | melee | power_increase | spirit = #3d2c4d | #2A2A2A}}; border-radius: 1px"> | background: radial-gradient(circle, rgba(42,41,43,1) 0%, rgba(61,78,70,1) 100%); | stats_count = background: rgb(42,41,43); | ||
background: radial-gradient(circle, rgba(42,41,43,1) 0%, rgba(59,49,69,1) 100%); |background-color: #2A2A2A}}; text-align: center; border: 3px solid {{#switch: {{{scale_type}}} | melee = #5b412b | spirit = #583D6F | power_increase = #48675a | stats_count = #583D6F | #2A2A2A}}; box-shadow: 0 0 10px {{#switch: {{{scale_type}}} | melee | power_increase | stats_count | spirit = #3d2c4d | #2A2A2A}}; border-radius: 1px"> | |||
<div style="font-weight: bold;"> | <div style="font-weight: bold;"> | ||
{{Icon/{{{icon_color|Grey}}}| | {{Icon/{{{icon_color|Grey}}}| | ||
Revision as of 14:07, 14 November 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 |