Template:AbilityIcon: Difference between revisions

QuinnBinn (talk | contribs)
Created for display on Hero pages plus potentially any more specific cases. Hopefully it works!
 
m simplify
Line 1: Line 1:
A little template for creating Ability Icons with links.
<includeonly><span style="position: relative; bottom: 2px; filter: brightness(0);">[[File:{{{1|}}}.png|link={{{2|}}}#{{{1|}}}|{{{size|{{{3|20px}}}}}}]] [[{{{2|}}}#{{{1|}}}|{{{1|}}}]]</span></includeonly><noinclude>{{Documentation}}
 
[[Category:Icon templates]]</noinclude>
{| class="wikitable"
|+ Variables
|-
! Variable !! Description
|-
| {{{Ability}}} || The exact name of the Ability. (Smoke Bomb)
|-
| {{{Hero}}} || Adds a link to the ability's owner if not null. (Haze)
|-
| {{{Size}}} || Size in pixels for the icon.
|}
 
 
<onlyinclude><span style="position: relative; bottom: 2px; filter: brightness(0);">[[File:{{{Ability}}}.png|link=|{{#if:{{{Hero}}}|link={{{Hero}}}}}|{{{Size}}}px|]]</span></onlyinclude>
 
{{AbilityIcon|Ability=Smoke Bomb|Hero = Haze|Size=40}}