Template:Ability card v2: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
Created template wrapper for invoking ability card function
Tag: Removed redirect
Saag (talk | contribs)
m Migrated to Abilities/card module
 
Line 1: Line 1:
<includeonly>{{#invoke:AbilityData|get_ability_card|{{{hero_name|}}}|{{{ability_num|}}}|{{{link_name|false}}}|{{{notes|}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:Abilities/card|get_ability_card|{{{hero_name|}}}|{{{ability_num|}}}|{{{link_name|false}}}|{{{notes|}}}}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 16:33, 26 October 2024

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

Overview[edit source]

Displays an ability card using the data stored in Data:AbilityCards.json

Example[edit source]

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

Shoulder Charge


1.2s


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[Edit template data]

ParameterDescriptionTypeStatus
hero_namehero_name

Hero name to display card for

Example
Abrams
Stringrequired
ability_numability_num

Index of the ability to display ie. 1, 2, 3 or 4

Example
2
Numberrequired
notesnotes

Custom notes about the ability

Example
* At base duration, Shoulder Charge travels approximately 17.5m.
Stringoptional
link_namelink_name

Adds hyperlink to the name of the ability. Used in cases where the card is not on the hero's page

Default
false
Example
true
Booleanoptional