Difference between revisions of "Template:Ability icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Updating)
m (Updating)
Line 1: Line 1:
 
{{ #if: {{{1|}}} |  
 
{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v333/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v336/icons/icon_{{ #switch: {{{1|None}}}
 
| (Internal - SZ1) = 2202
 
| (Internal - SZ1) = 2202
 
| (Internal - SZ2) = 2202
 
| (Internal - SZ2) = 2202
Line 223: Line 223:
 
| Become Winter Wolf = 2126
 
| Become Winter Wolf = 2126
 
| Become Wolf = 2126
 
| Become Wolf = 2126
| Bee Inject (Pet) 1 = 2136
+
| Bee Inject 1 = 2136
| Bee Inject (Pet) 2 = 2136
+
| Bee Inject 2 = 2136
| Bee Inject (Pet) 3 = 2136
+
| Bee Inject 3 = 2136
| Bee Inject (Pet) 4 = 2136
+
| Bee Inject 4 = 2136
| Bee Inject (Pet) 5 = 2136
+
| Bee Inject 5 = 2136
| Bee Inject (Pet) 6 = 2136
+
| Bee Inject 6 = 2136
| Bee Poison Vuln (Pet) 1 = 3619
+
| Bee Poison Vuln 1 = 3619
| Bee Poison Vuln (Pet) 2 = 3619
+
| Bee Poison Vuln 2 = 3619
| Bee Poison Vuln (Pet) 3 = 3619
+
| Bee Poison Vuln 3 = 3619
| Bee Poison Vuln (Pet) 4 = 3619
+
| Bee Poison Vuln 4 = 3619
 +
| Bee Stab = 3593
 
| BeeInject = 3593
 
| BeeInject = 3593
 
| BeeShoot = 3403
 
| BeeShoot = 3403
 
| BeeShootB = 3403
 
| BeeShootB = 3403
| BeeStab = 3593
 
 
| BeeStab = 3593
 
| BeeStab = 3593
 
| Big Cat Claw = 2130
 
| Big Cat Claw = 2130
Line 354: Line 354:
 
| Blur Cut 7 = 3592
 
| Blur Cut 7 = 3592
 
| Blur Cut 8 = 3592
 
| Blur Cut 8 = 3592
 +
| Blur Step = 3798
 +
| Blur Step 2 = 3798
 +
| Blur Step 3 = 3798
 +
| Blur Step 4 = 3798
 +
| Blur Step 5 = 3798
 +
| Blur Step 6 = 3798
 +
| Blur Step 7 = 3798
 +
| Blur Step 8 = 3798
 
| Bodyslam = 3322
 
| Bodyslam = 3322
 
| Bodyslam 2 = 3322
 
| Bodyslam 2 = 3322
Line 696: Line 704:
 
| Dig Deep 7 = 3470
 
| Dig Deep 7 = 3470
 
| Dig Deep 8 = 3470
 
| Dig Deep 8 = 3470
 +
| Dimensional Snare = 3802
 +
| Dimensional Snare 2 = 3802
 +
| Dimensional Snare 3 = 3802
 +
| Dimensional Snare 4 = 3802
 +
| Dimensional Snare 5 = 3802
 +
| Dimensional Snare 6 = 3802
 +
| Dimensional Snare 7 = 3802
 +
| Dimensional Snare 8 = 3802
 
| Dinobite = 2129
 
| Dinobite = 2129
 
| Dinobite = 2129
 
| Dinobite = 2129
Line 1,118: Line 1,134:
 
| Frostbite 5 = 3586
 
| Frostbite 5 = 3586
 
| Frostbite 6 = 3586
 
| Frostbite 6 = 3586
 +
| Galvanize = 3800
 +
| Galvanize 2 = 3800
 +
| Galvanize 3 = 3800
 +
| Galvanize 4 = 3800
 +
| Galvanize 5 = 3800
 +
| Galvanize 6 = 3800
 +
| Galvanize 7 = 3800
 +
| Galvanize 8 = 3800
 
| GargoyleBossStun = 2105
 
| GargoyleBossStun = 2105
 
| GargoyleSlamA = 2119
 
| GargoyleSlamA = 2119
Line 1,159: Line 1,183:
 
| Gnasher Bite = 2129
 
| Gnasher Bite = 2129
 
| Gnasher Rend = 2129
 
| Gnasher Rend = 2129
 +
| Goat Bite = 2129
 +
| Goat Kick = 2152
 +
| Goat Smite = 2152
 
| Golem Explode = 2206
 
| Golem Explode = 2206
 
| Golem Heal = 2108
 
| Golem Heal = 2108
Line 1,375: Line 1,402:
 
| Howl = 2111
 
| Howl = 2111
 
| Howl Mode = 2111
 
| Howl Mode = 2111
| Hunter's Stride = 3468
+
| Hunter's Stride = 3468
 
| Hunter's Stride 2 = 3468
 
| Hunter's Stride 2 = 3468
 
| Hunter's Stride 3 = 3468
 
| Hunter's Stride 3 = 3468
Line 1,447: Line 1,474:
 
| Icy Cocoon 2 = 3408
 
| Icy Cocoon 2 = 3408
 
| Icy Slam = 3408
 
| Icy Slam = 3408
 +
| Illusive Guise = 3805
 +
| Illusive Guise 2 = 3805
 +
| Illusive Guise 3 = 3805
 
| Ilth Hale's Kiss 1 = 3707
 
| Ilth Hale's Kiss 1 = 3707
 
| Ilth Hale's Kiss 2 = 3707
 
| Ilth Hale's Kiss 2 = 3707
Line 1,455: Line 1,485:
 
| Ilth Hale's Kiss 7 = 3707
 
| Ilth Hale's Kiss 7 = 3707
 
| Ilth Hale's Kiss 8 = 3707
 
| Ilth Hale's Kiss 8 = 3707
 +
| Imaginary Bite = 2129
 +
| Imaginary Bite = 2129
 +
| Imaginary Bite = 2129
 +
| Imaginary Bite = 2129
 +
| Imaginary Bite = 2129
 +
| Imaginary Rage = 2129
 +
| Imaginary Rage = 2129
 +
| Imaginary Rage = 2129
 +
| Imaginary Rage = 2129
 +
| Imaginary Rage = 2129
 
| Incubate = 3252
 
| Incubate = 3252
 
| Incubate 2 = 3252
 
| Incubate 2 = 3252
Line 1,841: Line 1,881:
 
| Nimble Limbs 5 = 3465
 
| Nimble Limbs 5 = 3465
 
| Nimble Limbs 6 = 3465
 
| Nimble Limbs 6 = 3465
 +
| Nip = 3795
 +
| Nip 2 = 3795
 +
| Nip 3 = 3795
 +
| Nip 4 = 3795
 +
| Nip 5 = 3795
 +
| Nip 6 = 3795
 +
| Nip 7 = 3795
 +
| Nip 8 = 3795
 +
| Nip 9 = 3795
 
| NpcBlockingStance = 2192
 
| NpcBlockingStance = 2192
 
| NpcDoubleHitCurse = 2190
 
| NpcDoubleHitCurse = 2190
Line 1,855: Line 1,904:
 
| Ogre Clubb = 3423
 
| Ogre Clubb = 3423
 
| Ogre Stun = 3472
 
| Ogre Stun = 3472
 +
| Opening Bite = 3421
 
| Opening Thrust = 3590
 
| Opening Thrust = 3590
 
| Opening Thrust 2 = 3590
 
| Opening Thrust 2 = 3590
Line 1,891: Line 1,941:
 
| Panic Charge 5 = 3270
 
| Panic Charge 5 = 3270
 
| Panic Charge 6 = 3270
 
| Panic Charge 6 = 3270
 +
| Paradox Trot = 3801
 +
| Paradox Trot 2 = 3801
 +
| Paradox Trot 3 = 3801
 +
| Paradox Trot 4 = 3801
 +
| Paradox Trot 5 = 3801
 +
| Paradox Trot 6 = 3801
 
| Parry = 2115
 
| Parry = 2115
 
| Parry = 2115
 
| Parry = 2115
Line 1,932: Line 1,988:
 
| Phoenix Strike 5 = 3628
 
| Phoenix Strike 5 = 3628
 
| PhoenixBlast = 2129
 
| PhoenixBlast = 2129
 +
| PhoenixClaw = 2129
 
| PhoenixFireball = 2129
 
| PhoenixFireball = 2129
 
| PhoenixFlash = 2129
 
| PhoenixFlash = 2129
| PhoenixPeck = 2129
 
 
| Pig Bite = 2224
 
| Pig Bite = 2224
 
| Pig Bite 2 = 2224
 
| Pig Bite 2 = 2224
Line 2,043: Line 2,099:
 
| Pound To Slag 5 = 3471
 
| Pound To Slag 5 = 3471
 
| Pound To Slag 6 = 3471
 
| Pound To Slag 6 = 3471
 +
| Power Glyph = 3799
 +
| Power Glyph 2 = 3799
 +
| Power Glyph 3 = 3799
 +
| Power Glyph 4 = 3799
 +
| Power Glyph 5 = 3799
 +
| Power Glyph 6 = 3799
 +
| Power Glyph 7 = 3799
 +
| Power Glyph 8 = 3799
 
| Precision Pierce = 3047
 
| Precision Pierce = 3047
 
| Precision Pierce 2 = 3047
 
| Precision Pierce 2 = 3047
Line 2,248: Line 2,312:
 
| RanalonGuardianBite = 2129
 
| RanalonGuardianBite = 2129
 
| RanalonGuardianBlind = 3714
 
| RanalonGuardianBlind = 3714
 +
| RanalonGuardianPull = 2129
 
| RanalonGuardianStab = 3472
 
| RanalonGuardianStab = 3472
 
| RanalonGuardianStabB = 3472
 
| RanalonGuardianStabB = 3472
Line 2,480: Line 2,545:
 
| ScrayStab1 = 2152
 
| ScrayStab1 = 2152
 
| ScrayStab2 = 2152
 
| ScrayStab2 = 2152
 +
| ScrayStab3 = 2152
 
| Screech = 3544
 
| Screech = 3544
 
| Screech 2 = 3544
 
| Screech 2 = 3544
Line 2,527: Line 2,593:
 
| Shardblast 7 = 3527
 
| Shardblast 7 = 3527
 
| Shardblast 8 = 3527
 
| Shardblast 8 = 3527
 +
| Shark Bite = 2129
 +
| Shark Mega Bite = 2129
 
| Sheep Bomb = 2207
 
| Sheep Bomb = 2207
 
| Sherzat Acid Spit = 3251
 
| Sherzat Acid Spit = 3251
Line 2,689: Line 2,757:
 
| Soothe 5 = 2221
 
| Soothe 5 = 2221
 
| Soothe 6 = 2221
 
| Soothe 6 = 2221
 +
| Soul Bite = 3796
 +
| Soul Bite 2 = 3796
 +
| Soul Bite 3 = 3796
 +
| Soul Bite 4 = 3796
 +
| Soul Bite 5 = 3796
 +
| Soul Bite 6 = 3796
 +
| Soul Bite 7 = 3796
 +
| Soul Bite 8 = 3796
 
| Spade Assault = 3748
 
| Spade Assault = 3748
 
| Spade Assault 2 = 3748
 
| Spade Assault 2 = 3748
Line 2,725: Line 2,801:
 
| Spider Pin = 2131
 
| Spider Pin = 2131
 
| Spider Punt = 3759
 
| Spider Punt = 3759
 +
| Spirit Bolt = 3803
 +
| Spirit Bolt 2 = 3803
 +
| Spirit Bolt 3 = 3803
 +
| Spirit Bolt 4 = 3803
 +
| Spirit Bolt 5 = 3803
 +
| Spirit Bolt 6 = 3803
 +
| Spirit Bolt 7 = 3803
 +
| Spirit Pounce 1 = 3797
 +
| Spirit Pounce 2 = 3797
 +
| Spirit Pounce 3 = 3797
 +
| Spirit Pounce 4 = 3797
 +
| Spirit Pounce 5 = 3797
 +
| Spirit Pounce 6 = 3797
 +
| Spirit Pounce 7 = 3797
 +
| Spirit Pounce 8 = 3797
 
| Spit Acid = 3251
 
| Spit Acid = 3251
 
| Spit Acid 2 = 3251
 
| Spit Acid 2 = 3251
Line 3,032: Line 3,123:
 
| Triage 7 = 3734
 
| Triage 7 = 3734
 
| Triage 8 = 3734
 
| Triage 8 = 3734
 +
| Trick Fox = 3804
 +
| Trick Fox 2 = 3804
 +
| Trick Fox 3 = 3804
 +
| Trick Fox 4 = 3804
 +
| Trick Fox 5 = 3804
 
| TriffidClawA = 3067
 
| TriffidClawA = 3067
 
| TriffidClawB = 3067
 
| TriffidClawB = 3067
Line 3,041: Line 3,137:
 
| Troll Club = 3423
 
| Troll Club = 3423
 
| Troll Clubb = 3423
 
| Troll Clubb = 3423
 +
| Troll Heal = 3454
 
| Troll Knockdown = 3472
 
| Troll Knockdown = 3472
 +
| Troll Slash = 3423
 +
| Troll Slish = 3423
 
| Truffle Sniff = 2226
 
| Truffle Sniff = 2226
 
| Truffle Sniff 2 = 2226
 
| Truffle Sniff 2 = 2226
Line 3,064: Line 3,163:
 
| TurretCrystalZapLongRange = 3070
 
| TurretCrystalZapLongRange = 3070
 
| TurretCrystalZapLongRange2 = 3070
 
| TurretCrystalZapLongRange2 = 3070
 +
| TurretCrystalZapMediumRange2 = 3070
 +
| TurretCrystalZapMediumRangeSlow = 3070
 
| UndeadBoneWhirlwind = 3550
 
| UndeadBoneWhirlwind = 3550
 
| UndeadDarknessBall = 3545
 
| UndeadDarknessBall = 3545
Line 3,131: Line 3,232:
 
| Warning Jolt 5 = 3772
 
| Warning Jolt 5 = 3772
 
| Warning Jolt 6 = 3772
 
| Warning Jolt 6 = 3772
| Wasp Blast (Pet) 1 = 2136
+
| Wasp Blast 1 = 2136
| Wasp Blast (Pet) 2 = 2136
+
| Wasp Blast 2 = 2136
| Wasp Blast (Pet) 3 = 2136
+
| Wasp Blast 3 = 2136
| Wasp Blast (Pet) 4 = 2136
+
| Wasp Blast 4 = 2136
| Wasp Blast (Pet) 5 = 2136
+
| Wasp Blast 5 = 2136
| Wasp Blast (Pet) 6 = 2136
+
| Wasp Blast 6 = 2136
| Wasp Ranged Debuff (Pet) 1 = 2136
+
| Wasp Burst Pierce 1 = 3619
| Wasp Ranged Debuff (Pet) 1 = 3619
+
| Wasp Burst Pierce 2 = 3619
| Wasp Ranged Debuff (Pet) 2 = 2136
+
| Wasp Burst Pierce 3 = 3619
| Wasp Ranged Debuff (Pet) 2 = 3619
+
| Wasp Burst Pierce 4 = 3619
| Wasp Ranged Debuff (Pet) 3 = 2136
+
| Wasp Ice Stab = 3310
| Wasp Ranged Debuff (Pet) 3 = 3619
+
| Wasp Ranged Debuff 1 = 2136
| Wasp Ranged Debuff (Pet) 4 = 2136
+
| Wasp Ranged Debuff 2 = 2136
| Wasp Ranged Debuff (Pet) 4 = 3619
+
| Wasp Ranged Debuff 3 = 2136
| Wasp Ranged Debuff (Pet) 5 = 2136
+
| Wasp Ranged Debuff 4 = 2136
| Wasp Ranged Debuff (Pet) 6 = 2136
+
| Wasp Ranged Debuff 5 = 2136
| Wasp Ranged Slow (Pet) 1 = 3619
+
| Wasp Ranged Debuff 6 = 2136
| Wasp Ranged Slow (Pet) 1 = 3619
+
| Wasp Ranged Slow 1 = 3619
| Wasp Ranged Slow (Pet) 2 = 3619
+
| Wasp Ranged Slow 1 = 3619
| Wasp Ranged Slow (Pet) 2 = 3619
+
| Wasp Ranged Slow 2 = 3619
| Wasp Ranged Slow (Pet) 3 = 3619
+
| Wasp Ranged Slow 2 = 3619
| Wasp Ranged Slow (Pet) 3 = 3619
+
| Wasp Ranged Slow 3 = 3619
| Wasp Ranged Slow (Pet) 4 = 3619
+
| Wasp Ranged Slow 3 = 3619
| Wasp Ranged Slow (Pet) 4 = 3619
+
| Wasp Ranged Slow 4 = 3619
 +
| Wasp Ranged Slow 4 = 3619
 +
| Wasp Shoot = 3310
 +
| Wasp Stab = 3310
 
| WaspIceRageStab = 3445
 
| WaspIceRageStab = 3445
 
| WaspIceSlowA = 3485
 
| WaspIceSlowA = 3485
 
| WaspIceSlowB = 3485
 
| WaspIceSlowB = 3485
| WaspIceStab = 3310
 
 
| WaspIceStab = 3445
 
| WaspIceStab = 3445
 
| WaspRageBurst = 3445
 
| WaspRageBurst = 3445
Line 3,165: Line 3,268:
 
| WaspRangedDebuffB = 3485
 
| WaspRangedDebuffB = 3485
 
| WaspRangedDebuffC = 3485
 
| WaspRangedDebuffC = 3485
| WaspShoot = 3310
 
 
| WaspShoot = 3445
 
| WaspShoot = 3445
 
| WaspSlowA = 3485
 
| WaspSlowA = 3485
 
| WaspSlowB = 3485
 
| WaspSlowB = 3485
| WaspStab = 3310
 
 
| WaspStab = 3445
 
| WaspStab = 3445
 
| Wave of Darkness = 3429
 
| Wave of Darkness = 3429
Line 3,252: Line 3,353:
 
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Ability not found</span> }}
 
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Ability not found</span> }}
 
}}.png |  
 
}}.png |  
http://cdn.projectgorgon.com/v333/icons/icon_<span style="color:red">Error: Ability not found</span>.png |  
+
http://cdn.projectgorgon.com/v336/icons/icon_<span style="color:red">Error: Ability not found</span>.png |  
 
<span style="color:red">Error: Ability not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
 
<span style="color:red">Error: Ability not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
 
{{Ability icon/Explanation}}
 
{{Ability icon/Explanation}}
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:21, 22 July 2020

Item-icon-none.png

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