Template:AbilityIcon: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
QuinnBinn (talk | contribs)
Created for display on Hero pages plus potentially any more specific cases. Hopefully it works!
 
Mgpt (talk | contribs)
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}}

Revision as of 16:56, 18 September 2024

Template documentation [view] [edit] [history] [purge]

Usage

{{AbilityIcon|Siphon Life}}

Siphon Life

{{AbilityIcon|Siphon Life|Custom}}

Siphon Life

Parameters

p1
Ability name (required).
p2
Custom name (optional).