Difference between revisions of "Template:Ability icon"

From Project: Gorgon Wiki
Jump to: navigation, search
(Updating to v414)
(Updating to v416)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude><!-- Updated on Fri Oct 04 2024 23:24:28 GMT-0600 (Mountain Daylight Time) using FoxnEagle's auto-wiki-generator -->
+
<noinclude><!-- Updated on Sat Dec 14 2024 04:11:28 GMT-0700 (Mountain Standard Time) using FoxnEagle's auto-wiki-generator -->
 
</noinclude><includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px">| 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} |  
 
</noinclude><includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px">| 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v414/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }}
+
{{ #replace: http://cdn.projectgorgon.com/v416/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }}
 
| a = {{ #switch: {{{1}}}
 
| a = {{ #switch: {{{1}}}
 
| Acid Arrow (Orc) = 3302
 
| Acid Arrow (Orc) = 3302
Line 230: Line 230:
 
| Blocking Stance 6 = 2192
 
| Blocking Stance 6 = 2192
 
| Blocking Stance = 2192
 
| Blocking Stance = 2192
 +
| Blood Mist 2 Burst = 3907
 
| Blood Mist 2 = 3907
 
| Blood Mist 2 = 3907
 +
| Blood Mist 3 Burst = 3907
 
| Blood Mist 3 = 3907
 
| Blood Mist 3 = 3907
 +
| Blood Mist 4 Burst = 3907
 
| Blood Mist 4 = 3907
 
| Blood Mist 4 = 3907
 +
| Blood Mist 5 Burst = 3907
 
| Blood Mist 5 = 3907
 
| Blood Mist 5 = 3907
 +
| Blood Mist 6 Burst = 3907
 
| Blood Mist 6 = 3907
 
| Blood Mist 6 = 3907
 +
| Blood Mist 7 Burst = 3907
 
| Blood Mist 7 = 3907
 
| Blood Mist 7 = 3907
 +
| Blood Mist Burst = 3907
 
| Blood Mist = 3907
 
| Blood Mist = 3907
 
| Blood of the Pack 2 = 3629
 
| Blood of the Pack 2 = 3629
Line 763: Line 770:
 
| Double Hit 7 = 2190
 
| Double Hit 7 = 2190
 
| Double Hit = 2190
 
| Double Hit = 2190
| Draining Bite 10 = 3779
 
| Draining Bite 11 = 3779
 
| Draining Bite 2 = 3779
 
| Draining Bite 3 = 3779
 
| Draining Bite 4 = 3779
 
| Draining Bite 5 = 3779
 
| Draining Bite 6 = 3779
 
| Draining Bite 7 = 3779
 
| Draining Bite 8 = 3779
 
| Draining Bite 9 = 3779
 
| Draining Bite = 3779
 
 
| Drink Blood 2 = 3549
 
| Drink Blood 2 = 3549
 
| Drink Blood 3 = 3549
 
| Drink Blood 3 = 3549
Line 810: Line 806:
 
| Eagle Form = 3869
 
| Eagle Form = 3869
 
| Echolocation = 3485
 
| Echolocation = 3485
 +
| Eclipse of Shadows 10 = 3913
 +
| Eclipse of Shadows 11 = 3913
 +
| Eclipse of Shadows 2 = 3913
 +
| Eclipse of Shadows 3 = 3913
 +
| Eclipse of Shadows 4 = 3913
 +
| Eclipse of Shadows 5 = 3913
 +
| Eclipse of Shadows 6 = 3913
 +
| Eclipse of Shadows 7 = 3913
 +
| Eclipse of Shadows 8 = 3913
 +
| Eclipse of Shadows 9 = 3913
 +
| Eclipse of Shadows = 3913
 
| Electricity Sigil 2 = 3324
 
| Electricity Sigil 2 = 3324
 
| Electricity Sigil 3 = 3324
 
| Electricity Sigil 3 = 3324
Line 825: Line 832:
 
| Elemental Ward 4 = 3641
 
| Elemental Ward 4 = 3641
 
| Elemental Ward = 3641
 
| Elemental Ward = 3641
| Embrace of Despair 10 = 3779
+
| Embrace of Despair 10 = 3918
| Embrace of Despair 11 = 3779
+
| Embrace of Despair 11 = 3918
| Embrace of Despair 2 = 3779
+
| Embrace of Despair 2 = 3918
| Embrace of Despair 3 = 3779
+
| Embrace of Despair 3 = 3918
| Embrace of Despair 4 = 3779
+
| Embrace of Despair 4 = 3918
| Embrace of Despair 5 = 3779
+
| Embrace of Despair 5 = 3918
| Embrace of Despair 6 = 3779
+
| Embrace of Despair 6 = 3918
| Embrace of Despair 7 = 3779
+
| Embrace of Despair 7 = 3918
| Embrace of Despair 8 = 3779
+
| Embrace of Despair 8 = 3918
| Embrace of Despair 9 = 3779
+
| Embrace of Despair 9 = 3918
| Embrace of Despair = 3779
+
| Embrace of Despair = 3918
 
| Emergency Alcohol Treatment = 3686
 
| Emergency Alcohol Treatment = 3686
 
| Emergency Bash 2 = 3449
 
| Emergency Bash 2 = 3449
Line 850: Line 857:
 
| Energize 4 = 3411
 
| Energize 4 = 3411
 
| Energize = 3411
 
| Energize = 3411
 +
| Enthrall 2 = 3916
 +
| Enthrall 3 = 3916
 +
| Enthrall 4 = 3916
 +
| Enthrall 5 = 3916
 +
| Enthrall 6 = 3916
 +
| Enthrall = 3916
 
| Entrancing Lullaby 2 = 3675
 
| Entrancing Lullaby 2 = 3675
 
| Entrancing Lullaby 3 = 3675
 
| Entrancing Lullaby 3 = 3675
Line 867: Line 880:
 
| Explosion Sigil 6 = 3325
 
| Explosion Sigil 6 = 3325
 
| Explosion Sigil = 3325
 
| Explosion Sigil = 3325
 +
| Exsanguinate 10 = 3911
 +
| Exsanguinate 11 = 3911
 +
| Exsanguinate 2 = 3911
 +
| Exsanguinate 3 = 3911
 +
| Exsanguinate 4 = 3911
 +
| Exsanguinate 5 = 3911
 +
| Exsanguinate 6 = 3911
 +
| Exsanguinate 7 = 3911
 +
| Exsanguinate 8 = 3911
 +
| Exsanguinate 9 = 3911
 +
| Exsanguinate = 3911
 
}}
 
}}
 
| f = {{ #switch: {{{1}}}
 
| f = {{ #switch: {{{1}}}
Line 1,146: Line 1,170:
 
| Get It Off Me 9 = 2141
 
| Get It Off Me 9 = 2141
 
| Get It Off Me = 2141
 
| Get It Off Me = 2141
 +
| Giant Bat Form = 3922
 
| Give Warmth 2 = 3738
 
| Give Warmth 2 = 3738
 
| Give Warmth 3 = 3738
 
| Give Warmth 3 = 3738
Line 1,588: Line 1,613:
 
| Life Steal 8 = 2198
 
| Life Steal 8 = 2198
 
| Life Steal = 2198
 
| Life Steal = 2198
 +
| Lifedrain 10 = 3919
 +
| Lifedrain 11 = 3919
 +
| Lifedrain 2 = 3919
 +
| Lifedrain 3 = 3919
 +
| Lifedrain 4 = 3919
 +
| Lifedrain 5 = 3919
 +
| Lifedrain 6 = 3919
 +
| Lifedrain 7 = 3919
 +
| Lifedrain 8 = 3919
 +
| Lifedrain 9 = 3919
 +
| Lifedrain = 3919
 
| Lightning Bolt 10 = 3841
 
| Lightning Bolt 10 = 3841
 
| Lightning Bolt 11 = 3841
 
| Lightning Bolt 11 = 3841
Line 1,698: Line 1,734:
 
| Mindreave 8 = 3424
 
| Mindreave 8 = 3424
 
| Mindreave = 3424
 
| Mindreave = 3424
 +
| Mindworm 0 = 3920
 +
| Mindworm 2 = 3920
 +
| Mindworm 3 = 3920
 +
| Mindworm 4 = 3920
 +
| Mindworm 5 = 3920
 +
| Mindworm 6 = 3920
 +
| Mindworm 7 = 3920
 +
| Mindworm 8 = 3920
 +
| Mindworm 9 = 3920
 +
| Mindworm = 3920
 
| Misery Trooper's Battle Cry = 3657
 
| Misery Trooper's Battle Cry = 3657
 
| Mock 10 = 2257
 
| Mock 10 = 2257
Line 1,818: Line 1,864:
 
| n = {{ #switch: {{{1}}}
 
| n = {{ #switch: {{{1}}}
 
| Necromancer's Mutter = 3661
 
| Necromancer's Mutter = 3661
 +
| Necrotic Grasp 10 = 3912
 +
| Necrotic Grasp 11 = 3912
 +
| Necrotic Grasp 2 = 3912
 +
| Necrotic Grasp 3 = 3912
 +
| Necrotic Grasp 4 = 3912
 +
| Necrotic Grasp 5 = 3912
 +
| Necrotic Grasp 6 = 3912
 +
| Necrotic Grasp 7 = 3912
 +
| Necrotic Grasp 8 = 3912
 +
| Necrotic Grasp 9 = 3912
 +
| Necrotic Grasp = 3912
 
| Nimble Limbs 2 = 3465
 
| Nimble Limbs 2 = 3465
 
| Nimble Limbs 3 = 3465
 
| Nimble Limbs 3 = 3465
Line 1,857: Line 1,914:
 
| Orcish Battle Cry = 3658
 
| Orcish Battle Cry = 3658
 
| Organ Displacement = 3462
 
| Organ Displacement = 3462
| Overwhelming Bite 10 = 2129
+
| Overwhelming Bite 10 = 3917
| Overwhelming Bite 11 = 2129
+
| Overwhelming Bite 11 = 3917
| Overwhelming Bite 2 = 2129
+
| Overwhelming Bite 2 = 3917
| Overwhelming Bite 3 = 2129
+
| Overwhelming Bite 3 = 3917
| Overwhelming Bite 4 = 2129
+
| Overwhelming Bite 4 = 3917
| Overwhelming Bite 5 = 2129
+
| Overwhelming Bite 5 = 3917
| Overwhelming Bite 6 = 2129
+
| Overwhelming Bite 6 = 3917
| Overwhelming Bite 7 = 2129
+
| Overwhelming Bite 7 = 3917
| Overwhelming Bite 8 = 2129
+
| Overwhelming Bite 8 = 3917
| Overwhelming Bite 9 = 2129
+
| Overwhelming Bite 9 = 3917
| Overwhelming Bite = 2129
+
| Overwhelming Bite = 3917
 
| Owl Form = 3609
 
| Owl Form = 3609
 
}}
 
}}
Line 2,863: Line 2,920:
 
| Summon a Red Dart Frog = 3884
 
| Summon a Red Dart Frog = 3884
 
| Summon a Red Squirrel = 3886
 
| Summon a Red Squirrel = 3886
 +
| Summon a Rock = 3921
 
| Summon a Scapegoat = 3866
 
| Summon a Scapegoat = 3866
 
| Summon a Scray = 3618
 
| Summon a Scray = 3618
Line 3,228: Line 3,286:
 
| Wild Endurance 7 = 3469
 
| Wild Endurance 7 = 3469
 
| Wild Endurance = 3469
 
| Wild Endurance = 3469
 +
| Willbreaker 1 = 3915
 +
| Willbreaker 10 = 3915
 +
| Willbreaker 11 = 3915
 +
| Willbreaker 2 = 3915
 +
| Willbreaker 3 = 3915
 +
| Willbreaker 4 = 3915
 +
| Willbreaker 5 = 3915
 +
| Willbreaker 6 = 3915
 +
| Willbreaker 7 = 3915
 +
| Willbreaker 8 = 3915
 +
| Willbreaker 9 = 3915
 
| Wind Strike 2 = 2128
 
| Wind Strike 2 = 2128
 
| Wind Strike 3 = 2128
 
| Wind Strike 3 = 2128
Line 3,255: Line 3,324:
 
| Wing Vortex 9 = 3550
 
| Wing Vortex 9 = 3550
 
| Wing Vortex = 3550
 
| Wing Vortex = 3550
 +
| Withering Shroud 1 = 3914
 +
| Withering Shroud 10 = 3914
 +
| Withering Shroud 11 = 3914
 +
| Withering Shroud 2 = 3914
 +
| Withering Shroud 3 = 3914
 +
| Withering Shroud 4 = 3914
 +
| Withering Shroud 5 = 3914
 +
| Withering Shroud 6 = 3914
 +
| Withering Shroud 7 = 3914
 +
| Withering Shroud 8 = 3914
 +
| Withering Shroud 9 = 3914
 
| Wolfsbane Blade 2 = 3022
 
| Wolfsbane Blade 2 = 3022
 
| Wolfsbane Blade 3 = 3022
 
| Wolfsbane Blade 3 = 3022
Line 3,302: Line 3,382:
 
}}
 
}}
 
}}.png
 
}}.png
| http://cdn.projectgorgon.com/v414/icons/icon_.png <!-- result when no match is found, will be #replaced -->
+
| http://cdn.projectgorgon.com/v416/icons/icon_.png <!-- result when no match is found, will be #replaced -->
 
| <span style="color:red">Error: Ability not found</span> }} | [[File:Item-icon-none.png]] }}{{ #switch: {{{2}}} | 1 | 2 | 32 | 64 = </span> | }}</includeonly><noinclude>
 
| <span style="color:red">Error: Ability not found</span> }} | [[File:Item-icon-none.png]] }}{{ #switch: {{{2}}} | 1 | 2 | 32 | 64 = </span> | }}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 06:13, 14 December 2024


Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Description

This accepts an ability name as input and returns the in-game icon. Most of these are 64x64, but you can resize them if needed. See the Examples section below.

Syntax

{{Ability icon|<name>|<size selection>}}

Parameters

<name>
The name of the ability. It must match exactly what is displayed in-game (e.g. "Super Fireball", not "SUPER fireball" or "Fireball")
If omitted or empty, template returns a blank icon image.
If no match is found, template returns an error.
<size selection>
1 or 32 for 32x32.
2 or 64 for 64x64.
If omitted, empty, or anything else, image isn't resized.

Examples

Standard Use

{{Ability icon|Ring of Fire}}

{{Ability icon}}

{{Ability icon|FakeAbilityReturnsError}}

icon_2120.png

Item-icon-none.png

Error: Ability not found


Resizing

{{Ability icon|Ring of Fire}} <!-- default size is 64x64 -->

{{Ability icon|Ring of Fire|64}}

{{Ability icon|Ring of Fire|32}}

icon_2120.png

icon_2120.png

icon_2120.png


Alternative Resizing (old method)

You can also manually resize the images if you wish (using the template just wraps the image in this span automatically).

<span class="extimage32px">{{Ability icon|Ring of Fire}}</span>

<span class="extimage64px">{{Ability icon|Ring of Fire}}</span>

icon_2120.png

icon_2120.png
The above text is transcluded from Template:Ability icon/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Ability icon/doc. (View all subpages of this page.)