Template:Ability card: Difference between revisionsGive feedback
No edit summary |
m Added an optional param for abilities with shared icons |
||
| Line 13: | Line 13: | ||
<div class="ability-icon" | <div class="ability-icon" | ||
style="width:100%; height:100%; display:flex; flex-direction:column; justify-content:center;"> | style="width:100%; height:100%; display:flex; flex-direction:column; justify-content:center;"> | ||
[[File:{{{name}}}.png|link=|90x90px|middle|center]] | {{#if:{{{ability icon|}}}|[[File:{{{ability icon}}}|90x90px|middle|center|link=]]|[[File:{{{name}}}.png|link=|90x90px|middle|center]]}} | ||
</div> | </div> | ||
</div> | </div> | ||
| Line 39: | Line 39: | ||
<noinclude> | <noinclude> | ||
{{doc}} | {{doc}} | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"ability_name": {}, | |||
"name": { | |||
"description": "Name of the ability (must match exactly)", | |||
"example": "Siphon Life", | |||
"type": "string" | |||
}, | |||
"ability icon": { | |||
"description": "Optional: If the ability uses another icon enter it here. Most likely for unreleased characters", | |||
"example": "Siphon Life.png", | |||
"type": "wiki-file-name" | |||
}, | |||
"description": {}, | |||
"radius": {}, | |||
"range": {}, | |||
"ability_width": {}, | |||
"duration": {}, | |||
"cooldown": {}, | |||
"effect1": {}, | |||
"effect2": {}, | |||
"effect3": {}, | |||
"effect4": {}, | |||
"effect5": {}, | |||
"effect6": {}, | |||
"effect7": {}, | |||
"effect8": {}, | |||
"effect9": {}, | |||
"upgrade1": {}, | |||
"upgrade2": {}, | |||
"upgrade3": {} | |||
} | |||
} | |||
</templatedata></noinclude> | |||