Template:Ability card v2/doc: Difference between revisions

Created page with " <templatedata> { "params": { "hero_name": { "description": "Hero name to display card for", "example": "Abrams", "type": "string", "required": true }, "ability_num": { "description": "Index of the ability to display ie. 1, 2, 3 or 4", "example": "2", "type": "number", "required": true }, "link_name": { "description": "Adds hyperlink to the name of the ability. Used in cases where the card is not on the hero's page", "example": "t..."
 
No edit summary
 
(7 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 32: Line 50:
"notes",
"notes",
"link_name"
"link_name"
]
],
"description": " "
}
}
</templatedata>
</templatedata>
<noinclude>[[Category:Template documentation]]</noinclude>