Template:Ability card v2/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
1.4s
33s
m Description added |
Gammaton32 (talk | contribs) No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
== Overview == | |||
Displays an ability card using the data stored in [[Data:AbilityCards.json]]. Used by [[Template:AbilitySection]]. | |||
The style data is from [[Template:Ability card v2/Card]]. That template can also be used to make cards manually. | |||
=== Example === | |||
<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> | ||
{ | { | ||
| Line 33: | Line 51: | ||
"link_name" | "link_name" | ||
], | ], | ||
"description": " | "description": " " | ||
} | } | ||
</templatedata> | </templatedata> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | |||
Latest revision as of 14:39, 16 June 2026
Overview
[edit source]Displays an ability card using the data stored in Data:AbilityCards.json. Used by Template:AbilitySection.
The style data is from Template:Ability card v2/Card. That template can also be used to make cards manually.
Example
[edit source]{{Ability card v2
| hero_name=Abrams
| ability_num=2
| notes=
* At base duration, Shoulder Charge travels approximately 17.5m.
}}
Shoulder Charge
Charge forward,
pulling enemies you hit. Pushing a hero into a wall applies
stun.
If you collide with a hero you move faster during your charge.
If you collide with a hero you move faster during your charge.
Notes
- At base duration, Shoulder Charge travels approximately 17.5m.
| 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 |