Template:Ability card v2: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
Tag: New redirect
 
Saag (talk | contribs)
Created template wrapper for invoking ability card function
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Template:Ability card v2/Card]]
<includeonly>{{#invoke:AbilityData|get_ability_card|{{{hero_name|}}}|{{{ability_num|}}}|{{{link_name|false}}}|{{{notes|}}}}}</includeonly><noinclude>
{{Documentation}}
</noinclude>

Revision as of 23:30, 2 October 2024

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

Overview

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

Example

{{Ability card v2
| hero_name=Abrams
| ability_num=2
| notes=
* At base duration, Shoulder Charge travels approximately 17.5m.
}}
Script error: The function "get_ability_card" does not exist.

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