Template:Ability icon: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
mNo edit summary
Extractum11 (talk | contribs)
m Updating
Line 16: Line 16:
| Acid Ball = 3403
| Acid Ball = 3403
| Acid Ball = 3403
| Acid Ball = 3403
| Acid Belch = 3485
| Acid Bolt = 3650
| Acid Bolt = 3650
| Acid Bolt 2 = 3650
| Acid Bolt 2 = 3650
Line 35: Line 36:
| Acid Explosion = 3307
| Acid Explosion = 3307
| Acid Explosion = 3307
| Acid Explosion = 3307
| Acid Lick = 3485
| Acid Opener = 3408
| Acid Opener = 3408
| Acid Sigil = 3324
| Acid Sigil = 3324
Line 137: Line 139:
| BarutiWrapB = 2238
| BarutiWrapB = 2238
| BarutiWrapRage = 3482
| BarutiWrapRage = 3482
| Bash = 2105
| Bash = 3407
| Bash = 3407
| Bash = 3485
| Bash = 3485
Line 165: Line 166:
| BatIllusionSlashA = 3553
| BatIllusionSlashA = 3553
| BatIllusionSlashB = 3553
| BatIllusionSlashB = 3553
| Beak = 2129
| Bear Bite (Pet) = 2129
| Bear Bite (Pet) = 2129
| Bear Claw (Pet) = 3067
| Bear Claw (Pet) = 3067
Line 430: Line 432:
| Call Stabled Pet #5 = 2165
| Call Stabled Pet #5 = 2165
| Call Stabled Pet #6 = 2166
| Call Stabled Pet #6 = 2166
| Calm Horse = 3830
| Carrot Power = 3697
| Carrot Power = 3697
| Carrot Power 2 = 3697
| Carrot Power 2 = 3697
Line 498: Line 501:
| Cloud Sight 5 = 3485
| Cloud Sight 5 = 3485
| Cloud Sight 6 = 3485
| Cloud Sight 6 = 3485
| Coax = 3830
| Cobra Strike = 2105
| Cobra Strike = 2105
| Cobra Strike 2 = 2105
| Cobra Strike 2 = 2105
Line 742: Line 746:
| Disharmony 8 = 3676
| Disharmony 8 = 3676
| Disharmony 9 = 3676
| Disharmony 9 = 3676
| Disperse Skeleton = 2237
| Disrupting Bash = 3447
| Disrupting Bash = 3447
| Disrupting Bash 2 = 3447
| Disrupting Bash 2 = 3447
Line 1,152: Line 1,157:
| Frostbite 5 = 3586
| Frostbite 5 = 3586
| Frostbite 6 = 3586
| Frostbite 6 = 3586
| Fungal Mindslap = 2105
| Fungal Slap = 2105
| Fungus Blast = 2209
| Furious Implantation = 2178
}}
}}
| g = {{ #switch: {{{1}}}
| g = {{ #switch: {{{1}}}
| Gallop = 3830
| Galvanize = 3800
| Galvanize = 3800
| Galvanize 2 = 3800
| Galvanize 2 = 3800
Line 1,438: Line 1,448:
| Hunting Speed 2 = 3528
| Hunting Speed 2 = 3528
| Hunting Speed 3 = 3528
| Hunting Speed 3 = 3528
| Hurl Boulder = 2209
| Hurl Boulder = 2209
| Hurl Boulder = 2209
| Hurl Lightning = 3637
| Hurl Lightning = 3637
Line 1,618: Line 1,629:
| KrakenBabyRage = 2178
| KrakenBabyRage = 2178
| KrakenBabySlam = 2132
| KrakenBabySlam = 2132
| KrakenBeak = 2129
| KrakenRage = 2178
| KrakenRageCurse = 2178
| KrakenRageCurse = 2178
| KrakenSlam = 2132
}}
}}
| l = {{ #switch: {{{1}}}
| l = {{ #switch: {{{1}}}
Line 1,729: Line 1,737:
| Manticoresting2 = 3402
| Manticoresting2 = 3402
| Mantis Acid Burst = 2130
| Mantis Acid Burst = 2130
| Mantis Beam = 3043
| Mantis Blast = 3043
| Mantis Blast = 3043
| Mantis Claw = 2130
| Mantis Claw = 2130
| Mantis Debuff = 2130
| Mantis Debuff = 2130
| Mantis Mind Missiles = 3043
| Mantis Missiles = 3043
| Mantis Rage = 2130
| Mantis Rage = 2130
| Mantis Swipe = 2130
| Mantis Swipe = 2130
Line 1,771: Line 1,784:
| Mindreave 6 = 3424
| Mindreave 6 = 3424
| Mindreave 7 = 3424
| Mindreave 7 = 3424
| Mindspores = 3068
| Mindspores = 3068
| Mindspores = 3068
| MinotaurBossRageClub = 3471
| MinotaurBossRageClub = 3471
Line 1,932: Line 1,946:
| Ocarina 5 = 3510
| Ocarina 5 = 3510
| Ocarina 6 = 3511
| Ocarina 6 = 3511
| Ogre Bolt = 3472
| Ogre Club = 3423
| Ogre Club = 3423
| Ogre Clubb = 3423
| Ogre Clubb = 3423
Line 1,954: Line 1,969:
| Orcish Battle Cry = 3658
| Orcish Battle Cry = 3658
| Organ Displacement = 3462
| Organ Displacement = 3462
| Outraged Pummel = 2178
| Owl Form = 3609
| Owl Form = 3609
}}
}}
Line 2,092: Line 2,108:
| Poisoner's Cut 4 = 3593
| Poisoner's Cut 4 = 3593
| Poisoner's Cut 5 = 3593
| Poisoner's Cut 5 = 3593
| Poor Student Reprimand = 3043
| Porcine Alertness = 2255
| Porcine Alertness = 2255
| Porcine Alertness 2 = 2255
| Porcine Alertness 2 = 2255
Line 2,416: Line 2,433:
| Rebuild Undead 7 = 2236
| Rebuild Undead 7 = 2236
| Rebuild Undead 8 = 2236
| Rebuild Undead 8 = 2236
| Rebuke Undeath = 3443
| Reckless Slam = 3574
| Reckless Slam = 3574
| Reckless Slam 2 = 3574
| Reckless Slam 2 = 3574
Line 2,612: Line 2,630:
| Seismic Impact 7 = 3573
| Seismic Impact 7 = 3573
| Seismic Impact 8 = 3573
| Seismic Impact 8 = 3573
| Self Destruct = 2209
| Self Destruct (Golem) = 2207
| Self Destruct (Golem) = 2207
| Self Destruct 2 (Golem) = 2207
| Self Destruct 2 (Golem) = 2207
Line 2,685: Line 2,704:
| Skulk 4 = 2259
| Skulk 4 = 2259
| Skulk 5 = 2259
| Skulk 5 = 2259
| Slam = 2132
| Slap = 3069
| Slap = 3069
| Slashing Strike = 3486
| Slashing Strike = 3486
Line 2,889: Line 2,909:
| Spore Bomb 6 = 2134
| Spore Bomb 6 = 2134
| Spore Bomb 7 = 2134
| Spore Bomb 7 = 2134
| Spore Smash = 3485
| Spore Stick = 3485
| Spread Zap Ball = 3070
| Spread Zap Ball = 3070
| SpyPortalZap = 2149
| SpyPortalZap = 2149
Line 2,912: Line 2,934:
| Stampede 8 = 2149
| Stampede 8 = 2149
| Stampede 9 = 2149
| Stampede 9 = 2149
| Stick Bash = 3485
| Strategic Chomp = 2228
| Strategic Chomp = 2228
| Strategic Chomp 2 = 2228
| Strategic Chomp 2 = 2228
Line 2,975: Line 2,998:
| Summon a Kraken Pet = 6255
| Summon a Kraken Pet = 6255
| Summon a Radish = 3809
| Summon a Radish = 3809
| Summon a Winter Beet = 3809
| Summon a Worghest = 3809
| Summon a Worghest = 3809
| Super Fireball = 2107
| Super Fireball = 2107
Line 3,009: Line 3,033:
| Surprise Throw 7 = 3599
| Surprise Throw 7 = 3599
| Surprise Throw 8 = 3599
| Surprise Throw 8 = 3599
| Sword Slash = 2121
| Sword Slash = 2121
| Sword Slash = 2121
| Sword Slash = 2121
| Sword Slash = 2121

Revision as of 20:58, 30 January 2022

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}}

{{ #replace: http://cdn.projectgorgon.com/v356/icons/icon_2120.png | http://cdn.projectgorgon.com/v356/icons/icon_.png | Error: Ability not found }}

{{ #replace: http://cdn.projectgorgon.com/v356/icons/icon_.png | http://cdn.projectgorgon.com/v356/icons/icon_.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}}

{{ #replace: http://cdn.projectgorgon.com/v356/icons/icon_2120.png | http://cdn.projectgorgon.com/v356/icons/icon_.png | Error: Ability not found }}

{{ #replace: http://cdn.projectgorgon.com/v356/icons/icon_2120.png | http://cdn.projectgorgon.com/v356/icons/icon_.png | Error: Ability not found }}

{{ #replace: http://cdn.projectgorgon.com/v356/icons/icon_2120.png | http://cdn.projectgorgon.com/v356/icons/icon_.png | Error: Ability not found }}


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>

{{ #replace: http://cdn.projectgorgon.com/v356/icons/icon_2120.png | http://cdn.projectgorgon.com/v356/icons/icon_.png | Error: Ability not found }}

{{ #replace: http://cdn.projectgorgon.com/v356/icons/icon_2120.png | http://cdn.projectgorgon.com/v356/icons/icon_.png

| Error: Ability not found }}
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.)