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

From The Deadlock Wiki
Jump to navigation Jump to search
scaling template, adjusted size
alt size for boon icon
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
<span class="ac-altbox-inner">
<span class="ac-altbox-inner">
{{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/icon|getAttrIconFile|{{{type|}}}}}}}|
{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|class=ability-attr|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}}
{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|class=ability-attr|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}}
}}&nbsp;<span class="ac-altbox-label">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#if: {{{scale_type|}}}|&nbsp;{{Ability card v2/Card/Scaling|{{{scale_value}}}||scale_type={{{scale_type}}}|id={{{key}}}-scale|icon_size=20px}}}}</span></span>
}}&nbsp;<span class="ac-altbox-label">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#if: {{{scale_type|}}}|&nbsp;{{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>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 04:06, 20 May 2026

Template documentation [view] [edit] [history] [purge]

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>

15%  Spirit Resist

50  Damage Per Second

In an Ability Card

[edit source]
{{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

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