Template:Ability card v2/Card/AltBox: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
m Undo revision 39295 by Saag (talk)
Tag: Undo
Added support for "-" prefixes
Line 4: Line 4:
{{Icon/{{{icon_color|Grey}}}|
{{Icon/{{{icon_color|Grey}}}|
{{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/card|get_attr_icon|{{{type|}}}}}}}|
{{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/card|get_attr_icon|{{{type|}}}}}}}|
{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}}
<!-- Only show value_prefix if it is the minus symbol "-" -->
{{#vardefine:value_prefix|{{Lang|key={{{key}}}_prefix}}}}{{#ifeq:{{#var:value_prefix}}|-|{{#var:value_prefix}}}}{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}}
}}&nbsp;<span style="font-size: 0.75rem; white-space: nowrap">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#ifeq: {{{scale_type}}}|spirit|&nbsp;{{Ability card v2/Spirit mult|{{{scale_value}}}|icon_size=35px}}}}</span></span>
}}&nbsp;<span style="font-size: 0.75rem; white-space: nowrap">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#ifeq: {{{scale_type}}}|spirit|&nbsp;{{Ability card v2/Spirit mult|{{{scale_value}}}|icon_size=35px}}}}</span></span>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{#invoke:Abilities/card|get_ability_card|Rem|1|false}}
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 22:49, 26 January 2026

Pillow Toss


Cast Range 40m



Radius 5m





Number of Charges 1
Charge Cooldown 8s



Cooldown 25s



Throw your trusty pillow inflicting spirit damage and heavy knockback.

Landing hits reduces the cooldown of your other abilities.

x1.6


75

Damage


-45%

Fading Move Speed


Displacement
0.4s
Duration

3s  Debuff Duration

Script error: The function "get_attr_icon" does not exist. -5s  Cooldown On Pillow Hit

Ability Point1
-7s Cooldown
Ability Point2
+2m Radius and applies -35% Fire Rate
Ability Point5
+100 Damage and +1 Charge
Template documentation [view] [edit] [history] [purge]

Overview

Display element for an alternate ability attribute, similar to main box attributes. Can be any number of these on an ability card

Examples

Multiple Alt boxes in a container

<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>

Script error: The function "get_attr_icon" does not exist. 15%  Spirit Resist

Script error: The function "get_attr_icon" does not exist. 50  Damage Per Second

In an Ability Card

{{Ability card v2
| hero_name=Vindicta
| ability_num=3
}}

Crow Familiar






Number of Charges 0


Cooldown 32s



Your crow familiar deals impact damage, reduces their bullet resist and applies a bleed that deals damage based on the target's current health.

x0.744


40

Impact Damage


2.2%/sec

Bleed Damage



5s

Debuff Duration

Script error: The function "get_attr_icon" does not exist. 0%  Healing Reduction

-6%  Bullet Resist

-6%  Spirit Resist

Ability Point1
Applies -35% Healing Reduction
Ability Point2
+0.5% Bleed Damage
-16s Cooldown
Ability Point5
+2s Duration
-8% Bullet Resist
-8% Spirit Resist

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
valuevalue

Display value of the attribute

Example
23.5
Numberrequired
keykey

Will retrieve the attribute label from localization data based on the current selected language using "<key>_label"

Stringsuggested
labellabel

Display label for attribute. Will override the use of "key" argument

Stringoptional
typetype

Attribute type - used to automatically retrieve the icon's image, link, size (but not color)

Suggested values
bullet_armor_up bullet_armor_down cast charges damage bullet_damage fire_rate healing health move_speed range tech_armor_up tech_damage distance duration slow
Example
damage
Stringsuggested
scale_typescale_type

Type of attribute scaling

Suggested values
spirit weapon_power
Example
spirit
Stringoptional
scale_valuescale_value

Multiplier for the scaling

Example
0.5
Numberoptional
icon_coloricon_color

Color of the attribute icon

Suggested values
Grey Brown Purple
Default
Grey
Example
Brown
Stringoptional
iconicon

Icon's image name. Overridden by image found via "type" parameter

Example
Damage_heart.png
Stringoptional
icon_linkicon_link

Icon's hyperlink. Overridden by link retrieved via "type" parameter

Stringoptional