Difference between revisions of "Template:Ability icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m (Updating)
Line 1: Line 1:
<includeonly>{{ #if: {{{1|}}} |  
+
<includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px"> | 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v346/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }}  
+
{{ #replace: http://cdn.projectgorgon.com/v350/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }}  
 
| a = {{ #switch: {{{1}}}
 
| a = {{ #switch: {{{1}}}
 
| Acid Arrow = 3302
 
| Acid Arrow = 3302
Line 72: Line 72:
 
| AlienDog_Punch2 = 2117
 
| AlienDog_Punch2 = 2117
 
| AlienDog_RagePunch = 2117
 
| AlienDog_RagePunch = 2117
 +
| Analyze Arthropod Genes = 3829
 
| Anthem of Avoidance = 3667
 
| Anthem of Avoidance = 3667
 
| Anthem of Avoidance 2 = 3667
 
| Anthem of Avoidance 2 = 3667
Line 136: Line 137:
 
| BarutiWrapB = 2238
 
| BarutiWrapB = 2238
 
| BarutiWrapRage = 3482
 
| BarutiWrapRage = 3482
 +
| Bash = 2105
 
| Bash = 3407
 
| Bash = 3407
 +
| Bash = 3485
 
| Bash 2 = 3407
 
| Bash 2 = 3407
 
| Bash 3 = 3407
 
| Bash 3 = 3407
Line 182: Line 185:
 
| Bear Taunt (Pet) 5 = 2136
 
| Bear Taunt (Pet) 5 = 2136
 
| Bear Taunt (Pet) 6 = 2136
 
| Bear Taunt (Pet) 6 = 2136
 +
| Bear Trap = 3421
 
| Bear Ultra (Pet) 1 = 3619
 
| Bear Ultra (Pet) 1 = 3619
 
| Bear Ultra (Pet) 2 = 3619
 
| Bear Ultra (Pet) 2 = 3619
Line 212: Line 216:
 
| BeeShootB = 3403
 
| BeeShootB = 3403
 
| BeeStab = 3593
 
| BeeStab = 3593
 +
| Big Bite = 2129
 
| Big Cat Claw = 2130
 
| Big Cat Claw = 2130
 
| Big Cat Claw (Pet) = 2130
 
| Big Cat Claw (Pet) = 2130
Line 260: Line 265:
 
| Bite = 2129
 
| Bite = 2129
 
| Bite = 2129
 
| Bite = 2129
 +
| Bite = 2129
 +
| Bite = 2129
 +
| Bite = 3485
 +
| Bite = 3485
 
| Bite 2 = 2129
 
| Bite 2 = 2129
 
| Bite 3 = 2129
 
| Bite 3 = 2129
Line 343: Line 352:
 
| Bodyslam 6 = 3322
 
| Bodyslam 6 = 3322
 
| Boiling Veins = 2109
 
| Boiling Veins = 2109
 +
| Boss Bash = 2105
 
| BossSlimeKick = 2130
 
| BossSlimeKick = 2130
 
| BossSlimeKick2 = 2130
 
| BossSlimeKick2 = 2130
Line 379: Line 389:
 
| Bruising Blow 5 = 2241
 
| Bruising Blow 5 = 2241
 
| Bruising Blow 6 = 2241
 
| Bruising Blow 6 = 2241
 +
| Bulk-Spit = 3485
 
| Bulwark Mode = 3451
 
| Bulwark Mode = 3451
 
| Bulwark Mode 2 = 3451
 
| Bulwark Mode 2 = 3451
Line 521: Line 532:
 
| ColdSphereBurst = 2130
 
| ColdSphereBurst = 2130
 
| ColdSphereFreezeBurst = 2131
 
| ColdSphereFreezeBurst = 2131
 +
| Collect Grizlark = 2148
 
| Collect Milk = 2148
 
| Collect Milk = 2148
 
| Collect Milk 2 = 2148
 
| Collect Milk 2 = 2148
Line 806: Line 818:
 
| Dulcimer 5 = 3539
 
| Dulcimer 5 = 3539
 
| Dulcimer 6 = 3540
 
| Dulcimer 6 = 3540
 +
| Dwarven Mettle = 3827
 
}}
 
}}
 
| e = {{ #switch: {{{1}}}
 
| e = {{ #switch: {{{1}}}
Line 850: Line 863:
 
| Energize 3 = 3411
 
| Energize 3 = 3411
 
| Energize 4 = 3411
 
| Energize 4 = 3411
| English: Left +10 = 3766
 
| English: Reset = 3767
 
| English: Right +10 = 3765
 
 
| Entrancing Lullaby = 3675
 
| Entrancing Lullaby = 3675
 
| Entrancing Lullaby 2 = 3675
 
| Entrancing Lullaby 2 = 3675
Line 920: Line 930:
 
| Fast Talk 3 = 3044
 
| Fast Talk 3 = 3044
 
| Fast Talk 4 = 3044
 
| Fast Talk 4 = 3044
| Feeble Restoration = 2108
 
| Feeble Restoration = 2108
 
 
| Feeble Smack = 2119
 
| Feeble Smack = 2119
 
| Feed Pet = 2137
 
| Feed Pet = 2137
Line 1,064: Line 1,072:
 
| Flamestrike 7 = 3739
 
| Flamestrike 7 = 3739
 
| Flamestrike 8 = 3739
 
| Flamestrike 8 = 3739
| FlapSkullBigBite = 2129
 
| FlapSkullBite = 2129
 
 
| Flare Fireball 2 = 2238
 
| Flare Fireball 2 = 2238
 
| Flare Fireball 4 = 2238
 
| Flare Fireball 4 = 2238
Line 1,199: Line 1,205:
 
| Goat Bite = 2129
 
| Goat Bite = 2129
 
| Goat Kick = 2152
 
| Goat Kick = 2152
 +
| Goat Ram = 2130
 
| Goat Smite = 2152
 
| Goat Smite = 2152
 +
| Goblinic Restoration = 2108
 
| Golem Explode = 2206
 
| Golem Explode = 2206
 
| Golem Heal = 2108
 
| Golem Heal = 2108
Line 1,252: Line 1,260:
 
| Gut 7 = 3597
 
| Gut 7 = 3597
 
| Gut 8 = 3597
 
| Gut 8 = 3597
 +
| Guzlark = 3485
 
}}
 
}}
 
| h = {{ #switch: {{{1}}}
 
| h = {{ #switch: {{{1}}}
Line 1,584: Line 1,593:
 
}}
 
}}
 
| k = {{ #switch: {{{1}}}
 
| k = {{ #switch: {{{1}}}
| Kick Power +10 = 3763
 
| Kick Power -10 = 3762
 
| Kick Power Reset = 3764
 
 
| King of the Forest = 2247
 
| King of the Forest = 2247
 
| King of the Forest 2 = 2247
 
| King of the Forest 2 = 2247
Line 1,644: Line 1,650:
 
| Lethal Force 5 = 3774
 
| Lethal Force 5 = 3774
 
| Lethal Force 6 = 3774
 
| Lethal Force 6 = 3774
 +
| Lick = 3485
 
| Life Crush = 3043
 
| Life Crush = 3043
 
| Life Crush 2 = 3043
 
| Life Crush 2 = 3043
Line 1,741: Line 1,748:
 
| Mega-Arrow = 3310
 
| Mega-Arrow = 3310
 
| Mega-Arrow = 3310
 
| Mega-Arrow = 3310
 +
| Mega-Spit = 3485
 
| MegaHammer = 3415
 
| MegaHammer = 3415
 
| MegaHammer2 = 3415
 
| MegaHammer2 = 3415
Line 1,763: Line 1,771:
 
| Mindreave 6 = 3424
 
| Mindreave 6 = 3424
 
| Mindreave 7 = 3424
 
| Mindreave 7 = 3424
 +
| Mindspores = 3068
 
| MinotaurBossRageClub = 3471
 
| MinotaurBossRageClub = 3471
 
| MinotaurBoulder = 2209
 
| MinotaurBoulder = 2209
Line 1,818: Line 1,827:
 
| Mudbath 4 = 2232
 
| Mudbath 4 = 2232
 
| Mudbath 5 = 2232
 
| Mudbath 5 = 2232
 +
| Multiply = 2195
 +
| Multiply = 2195
 +
| Multiply = 2195
 +
| Multiply = 2195
 
| Multishot = 3318
 
| Multishot = 3318
 
| Multishot 2 = 3318
 
| Multishot 2 = 3318
Line 1,837: Line 1,850:
 
| Mushroom Turret 6 = 3699
 
| Mushroom Turret 6 = 3699
 
| Mushroom Turret 7 = 3699
 
| Mushroom Turret 7 = 3699
| MushroomMonster_Bite = 2129
 
| MushroomMonster_SpawnSpit1 = 2209
 
| MushroomMonster_SpawnSpit2 = 2209
 
| MushroomMonster_SpawnSuperSpit1 = 2209
 
| MushroomMonster_SpawnSuperSpit2 = 2209
 
| MushroomMonster_Spit1 = 2209
 
| MushroomMonster_Spit2 = 2209
 
| MushroomMonster_SummonMushroomSpawn1 = 2195
 
| MushroomMonster_SummonMushroomSpawn2 = 2195
 
| MushroomMonster_SummonMushroomSpawn3 = 2195
 
 
| Mutation: Extra Heart = 2182
 
| Mutation: Extra Heart = 2182
 
| Mutation: Extra Heart 2 = 2182
 
| Mutation: Extra Heart 2 = 2182
Line 1,880: Line 1,883:
 
| Mutation: Stretchy Spine 4 = 2187
 
| Mutation: Stretchy Spine 4 = 2187
 
| Mutation: Stretchy Spine 5 = 2187
 
| Mutation: Stretchy Spine 5 = 2187
| Myconian_Bash = 2105
 
| Myconian_BossBash = 2105
 
| Myconian_Drain = 3068
 
| Myconian_Mindspores = 3068
 
| Myconian_Mindspores_Permanent = 3068
 
| Myconian_Shock = 3070
 
| Myconian_TidalCurse = 3481
 
 
| Mycotoxin Formula = 2178
 
| Mycotoxin Formula = 2178
 
| Mycotoxin Formula 2 = 2178
 
| Mycotoxin Formula 2 = 2178
Line 1,899: Line 1,895:
 
| n = {{ #switch: {{{1}}}
 
| n = {{ #switch: {{{1}}}
 
| Nature's Cure = 2108
 
| Nature's Cure = 2108
| Nature's Cure 2 = 2108
 
| Nature's Cure 3 = 2108
 
 
| Necro Darkness Wave = 3429
 
| Necro Darkness Wave = 3429
 
| Necro Deaths Hold = 3427
 
| Necro Deaths Hold = 3427
Line 1,955: Line 1,949:
 
| OrcEvasionBubble = 2108
 
| OrcEvasionBubble = 2108
 
| OrcFireBolts = 2109
 
| OrcFireBolts = 2109
| OrcHeal1 = 2108
+
| OrcHeal = 2108
| OrcHeal2 = 2108
 
 
| OrcKnockbackBolt = 2209
 
| OrcKnockbackBolt = 2209
 
| OrcSummonUrak2 = 2195
 
| OrcSummonUrak2 = 2195
 +
| Orcish Battle Cry = 3658
 
| Organ Displacement = 3462
 
| Organ Displacement = 3462
 
| Owl Form = 3609
 
| Owl Form = 3609
Line 2,107: Line 2,101:
 
| Positive Attitude 4 = 2222
 
| Positive Attitude 4 = 2222
 
| Positive Attitude 5 = 2222
 
| Positive Attitude 5 = 2222
| Potent Restoration = 2108
 
| Potent Restoration = 2108
 
| Potent Restoration = 2108
 
 
| Potent Restoration = 2108
 
| Potent Restoration = 2108
 
| Pouncing Rake = 2117
 
| Pouncing Rake = 2117
Line 2,146: Line 2,137:
 
| Power Glyph 7 = 3799
 
| Power Glyph 7 = 3799
 
| Power Glyph 8 = 3799
 
| Power Glyph 8 = 3799
 +
| Power Spore Coating = 3068
 +
| Power Spore Coating = 3068
 
| Precision Pierce = 3047
 
| Precision Pierce = 3047
 
| Precision Pierce 2 = 3047
 
| Precision Pierce 2 = 3047
Line 2,199: Line 2,192:
 
| Psychoanalyze 5 = 2118
 
| Psychoanalyze 5 = 2118
 
| Psychoanalyze 6 = 2118
 
| Psychoanalyze 6 = 2118
 +
| Pull = 3485
 
| Pulse of Life = 3632
 
| Pulse of Life = 3632
 
| Pulse of Life 2 = 3632
 
| Pulse of Life 2 = 3632
Line 2,358: Line 2,352:
 
| RanalonGuardianStab = 3472
 
| RanalonGuardianStab = 3472
 
| RanalonGuardianStabB = 3472
 
| RanalonGuardianStabB = 3472
| RanalonHeal1 = 2108
+
| RanalonHeal = 2108
| RanalonHeal2 = 2108
 
 
| RanalonHit = 3472
 
| RanalonHit = 3472
 
| RanalonHitB = 3472
 
| RanalonHitB = 3472
Line 2,587: Line 2,580:
 
| Scintillating Frost 5 = 2208
 
| Scintillating Frost 5 = 2208
 
| Scintillating Frost 6 = 2208
 
| Scintillating Frost 6 = 2208
| ScrayBite = 2152
+
| Scray Bite = 2152
| ScrayStab1 = 2152
+
| Scray Stab 1 = 2152
| ScrayStab2 = 2152
+
| Scray Stab 2 = 2152
| ScrayStab3 = 2152
+
| Scray Stab 3 = 2152
 +
| Scray Stab 4 = 2152
 +
| Scray Stab 5 = 2152
 +
| Scray Stab 6 = 2152
 
| Screech = 3544
 
| Screech = 3544
 
| Screech 2 = 3544
 
| Screech 2 = 3544
Line 2,656: Line 2,652:
 
| Shillelagh 5 = 3571
 
| Shillelagh 5 = 3571
 
| Shillelagh 6 = 3571
 
| Shillelagh 6 = 3571
 +
| Shock = 3070
 
| Shoot Crossbow = 3647
 
| Shoot Crossbow = 3647
 
| Shoot Crossbow 2 = 3647
 
| Shoot Crossbow 2 = 3647
Line 2,848: Line 2,845:
 
| Spider Pin = 2131
 
| Spider Pin = 2131
 
| Spider Punt = 3759
 
| Spider Punt = 3759
 +
| Spike Trap = 3421
 
| Spirit Bolt = 3803
 
| Spirit Bolt = 3803
 
| Spirit Bolt 2 = 3803
 
| Spirit Bolt 2 = 3803
Line 2,863: Line 2,861:
 
| Spirit Pounce 7 = 3797
 
| Spirit Pounce 7 = 3797
 
| Spirit Pounce 8 = 3797
 
| Spirit Pounce 8 = 3797
 +
| Spit = 2209
 +
| Spit = 2209
 +
| Spit = 2209
 +
| Spit = 2209
 +
| Spit = 3485
 +
| Spit = 3485
 +
| Spit = 3485
 
| Spit Acid = 3251
 
| Spit Acid = 3251
 
| Spit Acid 2 = 3251
 
| Spit Acid 2 = 3251
Line 2,936: Line 2,941:
 
| Strike a Nerve 5 = 2124
 
| Strike a Nerve 5 = 2124
 
| Strike a Nerve 6 = 2124
 
| Strike a Nerve 6 = 2124
 +
| Study Skeleton = 3779
 +
| Stun = 3485
 
| Stun Trap = 3769
 
| Stun Trap = 3769
 
| Stun Trap = 3769
 
| Stun Trap = 3769
Line 2,975: Line 2,982:
 
| Super Fireball 5 = 2107
 
| Super Fireball 5 = 2107
 
| Super Fireball 6 = 2107
 
| Super Fireball 6 = 2107
 +
| Super Ram = 2129
 +
| Super Spit = 2209
 +
| Super Spit = 2209
 +
| Super Spit = 2209
 
| Super Warmthball = 2107
 
| Super Warmthball = 2107
 
| Superhot Flames = 2207
 
| Superhot Flames = 2207
Line 3,052: Line 3,063:
 
| Tell Me About Your Mother 3 = 2123
 
| Tell Me About Your Mother 3 = 2123
 
| Tell Me About Your Mother 4 = 2123
 
| Tell Me About Your Mother 4 = 2123
 +
| Tentacle Shock = 3485
 +
| Tentacle Touch = 3485
 
| Terrifying Bite = 3032
 
| Terrifying Bite = 3032
 
| Terrifying Bite 2 = 3032
 
| Terrifying Bite 2 = 3032
Line 3,100: Line 3,113:
 
| Thunderstrike 5 = 3638
 
| Thunderstrike 5 = 3638
 
| Thunderstrike 6 = 3638
 
| Thunderstrike 6 = 3638
 +
| Tidal's Curse = 3481
 
| Tornado Fling = 2110
 
| Tornado Fling = 2110
 
| Tornado Jolt = 3070
 
| Tornado Jolt = 3070
Line 3,135: Line 3,149:
 
| Toxic Irritant 7 = 3651
 
| Toxic Irritant 7 = 3651
 
| Toxic Irritant 8 = 3651
 
| Toxic Irritant 8 = 3651
 +
| Toxin Blast = 3303
 
| Toxin Bomb = 2171
 
| Toxin Bomb = 2171
 
| Toxin Bomb 2 = 2171
 
| Toxin Bomb 2 = 2171
Line 3,158: Line 3,173:
 
| Training Golem Fire Burst = 3434
 
| Training Golem Fire Burst = 3434
 
| Training Golem Heal = 2108
 
| Training Golem Heal = 2108
| Training Golem Heal B = 2108
 
 
| Training Golem Punch = 2119
 
| Training Golem Punch = 2119
 
| Training Golem Punch B = 2119
 
| Training Golem Punch B = 2119
 
| Training Golem Stun = 2105
 
| Training Golem Stun = 2105
 
| Treachery Trooper's Battle Cry = 3659
 
| Treachery Trooper's Battle Cry = 3659
| TreantDoT1 = 3472
+
| Treant Slash = 3472
| TreantSlashA = 3472
+
| Treant Slash = 3472
| TreantSlashB = 3472
+
| Treant Stomp = 3472
| TreantStomp = 3472
+
| Treant Vines = 3472
 
| Treat Cold Exposure = 3646
 
| Treat Cold Exposure = 3646
 
| Treat Disease = 2218
 
| Treat Disease = 2218
 
| Treat Disease 2 = 2218
 
| Treat Disease 2 = 2218
 
| Treat Disease 3 = 2218
 
| Treat Disease 3 = 2218
 +
| Treat Disease 4 = 2218
 +
| Tremor's Curse = 3068
 
| Triage = 3734
 
| Triage = 3734
 
| Triage 2 = 3734
 
| Triage 2 = 3734
Line 3,232: Line 3,248:
 
| Unnatural Wrath 4 = 3418
 
| Unnatural Wrath 4 = 3418
 
| Unnatural Wrath 5 = 3418
 
| Unnatural Wrath 5 = 3418
 +
| Unquenchable Fury = 3828
 
| Ursula Rage = 3070
 
| Ursula Rage = 3070
 
| Ursula Summon = 2107
 
| Ursula Summon = 2107
Line 3,276: Line 3,293:
 
| Visage of Kajich 7 = 3706
 
| Visage of Kajich 7 = 3706
 
| Visage of Kajich 8 = 3706
 
| Visage of Kajich 8 = 3706
 +
| Vomit = 3068
 
}}
 
}}
 
| w = {{ #switch: {{{1}}}
 
| w = {{ #switch: {{{1}}}
Line 3,341: Line 3,359:
 
| Wave of Darkness 5 = 3429
 
| Wave of Darkness 5 = 3429
 
| Wave of Darkness 6 = 3429
 
| Wave of Darkness 6 = 3429
 +
| Wave of Toxin = 3403
 
| Way of the Hammer = 3635
 
| Way of the Hammer = 3635
 
| Way of the Hammer 2 = 3635
 
| Way of the Hammer 2 = 3635
Line 3,451: Line 3,470:
 
}}
 
}}
 
}}.png  
 
}}.png  
| http://cdn.projectgorgon.com/v346/icons/icon_.png <!-- result when no match is found, will be #replaced -->
+
| http://cdn.projectgorgon.com/v350/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]] }}</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>

Revision as of 16:50, 30 September 2021

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.)