Template:Ability card v2/Card/MainBox: Difference between revisionsGive feedback
Prefix fix |
m Make use of Abilities/icon module |
||
| (14 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div | <div class="ability-mainbox {{#ifeq:{{{hide|}}}|true|hide}}"> | ||
{{#if:{{{title|}}}|<div | {{#if:{{{title|}}}|<div class="ac-mainbox-title">'''{{{title}}}'''</div>|}} | ||
{{#if:{{{scale_type|}}}| | |||
<div class="ac-mainbox-scale"> | |||
<div class="ac-mainbox-scale-badge"> | |||
{{Ability card v2/Card/Scaling|{{{scale_value|}}}|scale_type={{{scale_type|}}}|id={{{key}}}-scale}} | |||
</div> | |||
</div>}} | |||
<div class="ac-mainbox-inner ac-mainbox-inner--{{#if:{{{scale_value|}}}|{{#invoke:Abilities/icon|getScalarIconAttr|{{{scale_type}}}|class}}|default}}"> | |||
<div class="ac-mainbox-value"> | |||
{{#vardefine:value_prefix|{{Lang|key={{{key}}}_prefix}}}} | |||
<div | |||
{{Icon/{{{icon_color|Grey}}}| | {{Icon/{{{icon_color|Grey}}}| | ||
{{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/ | {{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/icon|getAttrIconFile|{{{type|}}}}}}}| | ||
'''{{{value}}}''' | {{#ifeq:{{#var:value_prefix}}|-|{{#var:value_prefix}}}}{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|class=ability-attr|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: calc(1em - 2px); color: #B2B2B2}} | ||
}}</div> | }}</div> | ||
<div | <div class="ac-mainbox-label">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}</div> | ||
</div></div> | </div></div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{#invoke:Abilities/card|get_ability_card|Ivy|2|false}} | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 09:46, 15 May 2026
Kudzu Connection
Receive 50% of Bonuses with no connection
Connection requires line of sight.
1 Tether Count
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 |