Template:Ability card v2/Card/AltBox: Difference between revisionsGive feedback
Jump to navigation
Jump to search
32s
m Added docs |
Gammaton32 (talk | contribs) alt size for boon icon |
||
| (15 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div | <div class="ability-altbox {{#ifeq:{{{hide|}}}|true|hide}}"> | ||
<span | <span class="ac-altbox-inner"> | ||
{{Icon/{{{icon_color|Grey}}}| | {{Icon/{{{icon_color|Grey}}}| | ||
{{#if:{{{ | {{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/icon|getAttrIconFile|{{{type|}}}}}}}| | ||
{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|class=ability-attr|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}} | |||
{{ValueAndUom|'''{{{value}}}'''|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}} | }} <span class="ac-altbox-label">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#if: {{{scale_type|}}}| {{Ability card v2/Card/Scaling|{{{scale_value}}}||scale_type={{{scale_type}}}|id={{{key}}}-scale|icon_size={{#ifeq:{{{scale_type}}}|power_increase|15px|20px}}}}}}</span></span> | ||
}} <span | |||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 04:06, 20 May 2026
Overview
[edit source]Display element for an alternate ability attribute, similar to main box attributes. Can be any number of these on an ability card
Examples
[edit source]Multiple Alt boxes in a container
[edit source]<div ...>
<div ...>
{{Ability card v2/Card/AltBox
| value=15
| key=TechResist
| type=tech_armor_up
}}
{{Ability card v2/Card/AltBox
| value=50
| key=DPS
| type=bullet_damage
| icon_color=Brown
}}
</div>
</div>
In an Ability Card
[edit source]{{Ability card v2
| hero_name=Vindicta
| ability_num=3
}}
Crow Familiar
Your crow familiar deals impact damage, reduces their bullet resist and applies a bleed that deals damage based on the target's current health.
| 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 |
| 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_link | icon_link | Icon's hyperlink. Overridden by link retrieved via "type" parameter | String | optional |