Template:Ability card v2: Difference between revisions
Jump to navigation
Jump to search
Saag moved page Template:Ability card v2 to Template:Ability card v2/Card Tag: New redirect |
Created template wrapper for invoking ability card function Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | <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
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
hero_name | hero_name | Hero name to display card for
| String | required |
ability_num | ability_num | Index of the ability to display ie. 1, 2, 3 or 4
| Number | required |
notes | notes | Custom notes about the ability
| String | optional |
link_name | link_name | Adds hyperlink to the name of the ability. Used in cases where the card is not on the hero's page
| Boolean | optional |