Template:AbilityCircle: Difference between revisionsGive feedback
Jump to navigation
Jump to search
mNo edit summary |
Gammaton32 (talk | contribs) replace image with AbilityIcon |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude> | |||
<div class="abilityImage" style="display:inline-block; width:{{{bgsize|128}}}px; height:{{{bgsize|128}}}px;"> | |||
<div style="position:absolute; filter: invert(42%) sepia(10%) saturate(2912%) hue-rotate(-40deg) brightness(190%) contrast(77%);">[[File:Passive ability frame.png|{{{bgsize|128}}}x{{{bgsize|128}}}px|link=]]</div> | |||
<div class="ability-icon" style="width:100%; height:100%; display:flex; flex-direction:column; justify-content:center; text-align:center; filter: brightness(0);"> | |||
{{#if:{{{displayicon|}}}|{{AbilityIcon|{{{displayicon}}}|icon-only=true|size={{{iconsize|90}}}px}}|{{AbilityIcon|{{{name|Smoke Bomb}}}|icon-only=true|size={{{iconsize|90}}}px}}}} | |||
</div> | |||
</div> | |||
</onlyinclude><noinclude> | |||
</onlyinclude> | {{Documentation}} | ||
<noinclude> | |||
} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 01:13, 5 May 2026
Isolated port of the ability circle and background from Template:Ability card. Intended for use on Heroes.
Usage
[edit source]{{AbilityCircle|name=Siphon Life}}
Examples
[edit source]
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | Name of the ability
| Unknown | required |
| iconsize | iconsize | Size of the whole icon. Defaults to 90
| Unknown | optional |
| bgsize | bgsize | Size of the background circle. Should almost always be larger than the icon
| Unknown | optional |
| displayicon | displayicon | Use if the ability icon has a different name or uses another icon.
| Unknown | optional |
| link | link | Page to link to | Unknown | optional |