Jump to content

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

From Deadlock Wiki
uom formatting
m fixed issue with using no "type" argument
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="display:flex; flex-direction:row; flex-grow: 1; flex-basis: 0; justify-content: center; background-color: #2A2A2A; font-size: 14px; padding: 10px 0 10px 0; margin: 3px; text-align: center; border: 3px solid {{#ifeq: {{{scale_type}}} | spirit | #583D6F | #2A2A2A}}; box-shadow: 0 0 10px {{#ifeq: {{{scale_type}}} | spirit | #583D6F | #2A2A2A}}; border-radius: 1px">
<div style="display:flex; flex-direction:row; flex-grow: 1; flex-basis: 0; justify-content: left; background-color: #2A2A2A; font-size: 0.85em; margin: 3px; text-align: center; box-shadow: 0 0 10px #2A2A2A; border-radius: 1px; white-space: nowrap">
  <div>{{Icon/Grey|[[File:{{{icon}}}|20px]]|{{ValueAndUom|'''{{{value}}}'''|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}}}}{{#ifeq: {{{scale_type}}}|spirit|{{ss|{{{scale_value}}}}}}} {{Lang|key={{{key}}}_label}}</div>
<span style="white-space: nowrap">
</div>
{{Icon/{{{icon_color|Grey}}}|
</includeonly>
{{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/card|get_attr_icon|{{{type|}}}}}}}|
 
{{ValueAndUom|'''{{{value}}}'''|{{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>
<noinclude>
</div></includeonly><noinclude>
{{#invoke:AbilityData|get_ability_card|Grey Talon|3|true}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 21:54, 2 January 2025

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  DPS

In an Ability Card[edit source]

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

Crow Familiar








Cooldown 26s

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

Spirit Power#Spirit Power Scalingx0.8

40

Damage

3%/sec

Bleed Damage

Spirit Power#Spirit Power Scalingx0.03

6s

Debuff Duration

-6%  Bullet Resist Reduction

-6%  Spirit Resist

Ability Point 1
Crow Ricochets up to 2 times towards other enemies within 15m
Ability Point 2
-16s Cooldown
Ability Point 5
-12% Bullet Resist and -12% 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 (other scalings exist, but only "spirit" is currently supported)

Suggested values
spirit
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