Jump to content

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

From Deadlock Wiki
m Added some examples
m added inputs to produce examples
Line 4: Line 4:
=== Examples ===
=== Examples ===
==== Multiple Alt boxes in a container ====
==== Multiple Alt boxes in a container ====
<pre><nowiki>
<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></nowiki>
</pre>
<div style="font-size: 0.9rem; line-height: 1.4; font-family: 'Retail Demo Regular', 'PT Serif', serif; color: #FFEFD7; display:flex; flex-direction:column; background-color: #2A2A2A; align-items: center; width: 100%; max-width: 500px;">
<div style="font-size: 0.9rem; line-height: 1.4; font-family: 'Retail Demo Regular', 'PT Serif', serif; color: #FFEFD7; display:flex; flex-direction:column; background-color: #2A2A2A; align-items: center; width: 100%; max-width: 500px;">
   <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; align-items: center; background-color: #2A2A2A; width: calc(97% - 19px); min-width: 267px; padding: 0 4px 0 4px; column-gap: 15px">
   <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; align-items: center; background-color: #2A2A2A; width: calc(97% - 19px); min-width: 267px; padding: 0 4px 0 4px; column-gap: 15px">
Line 21: Line 38:


==== In an Ability Card ====
==== In an Ability Card ====
{{#invoke:Abilities/card|get_ability_card|Vindicta|3|false}}
<pre><nowiki>{{Ability card v2
 
| hero_name=Abrams
| ability_num=2
| notes=
* At base duration, Shoulder Charge travels approximately 17.5m.
}}</nowiki></pre>
{{Ability card v2
| hero_name=Abrams
| ability_num=2
| notes=
* At base duration, Shoulder Charge travels approximately 17.5m.
}}
<templatedata>
<templatedata>
{
{

Revision as of 20:48, 2 January 2025

Overview

Display element for an alternate ability, 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>

15%  Spirit Resist

50  DPS

In an Ability Card

{{Ability card v2
| hero_name=Abrams
| ability_num=2
| notes=
* At base duration, Shoulder Charge travels approximately 17.5m.
}}

Shoulder Charge





Duration 1.2s



Cooldown 37s

Charge forward, colliding with enemies and dragging them along. Hitting a wall will Stun enemies caught by Abrams. Speed increased after colliding with enemy Heroes.

Spirit Power#Spirit Power Scalingx2.1

40

Damage

0.85s

Stun Duration
Ability Point 1
-19s Cooldown
Ability Point 2
+0.5s Duration
Ability Point 5
+5.5 Weapon Damage for 8s after colliding with an enemy
Notes
  • At base duration, Shoulder Charge travels approximately 17.5m.

Template parameters

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