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!
 
Saag (talk | contribs)
m Migrated to Abilities/icon module
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A little template for creating Ability Icons with links.
<includeonly>{{#invoke:Abilities/icon|write_ability_icon|{{{1}}}|{{{2|}}}}}</includeonly><noinclude>
 
{{Documentation}}
{| class="wikitable"
[[Category:Icon templates]]
|+ Variables
</noinclude>
|-
! 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}}

Latest revision as of 16:48, 26 October 2024

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

Usage[edit source]

{{AbilityIcon|Siphon Life}}

Siphon Life

{{AbilityIcon|Siphon Life|Custom}}

Custom

Parameters[edit source]

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