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/v328/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v332/icons/icon_{{ #switch: {{{1|None}}}
 
| (Internal - SZ1) = 2202
 
| (Internal - SZ1) = 2202
 
| (Internal - SZ2) = 2202
 
| (Internal - SZ2) = 2202
Line 96: Line 96:
 
| Aimed Shot 6 = 3315
 
| Aimed Shot 6 = 3315
 
| Aimed Shot 7 = 3315
 
| Aimed Shot 7 = 3315
 +
| Aimed Shot 7 (Energy Bow) = 3315
 
| AlienDog_Punch = 2117
 
| AlienDog_Punch = 2117
 
| AlienDog_Punch2 = 2117
 
| AlienDog_Punch2 = 2117
Line 169: Line 170:
 
| Basic Shot 6 = 3310
 
| Basic Shot 6 = 3310
 
| Basic Shot 7 = 3310
 
| Basic Shot 7 = 3310
 +
| Basic Shot 7 (Energy Bow) = 3310
 
| BasiliskCastPerching = 3070
 
| BasiliskCastPerching = 3070
 
| BasiliskClawA = 2130
 
| BasiliskClawA = 2130
Line 316: Line 318:
 
| Blitz Shot 5 = 3321
 
| Blitz Shot 5 = 3321
 
| Blitz Shot 6 = 3321
 
| Blitz Shot 6 = 3321
 +
| Blitz Shot 6 (Energy Bow) = 3321
 
| Blizzard = 3525
 
| Blizzard = 3525
 
| Blizzard 2 = 3525
 
| Blizzard 2 = 3525
Line 1,516: Line 1,519:
 
| KrakenBeak = 2129
 
| KrakenBeak = 2129
 
| KrakenRage = 2178
 
| KrakenRage = 2178
 +
| KrakenRageCurse = 2178
 
| KrakenSlam = 2132
 
| KrakenSlam = 2132
 
| LamiaMindControl = 3485
 
| LamiaMindControl = 3485
Line 1,903: Line 1,907:
 
| PhoenixBlast = 2129
 
| PhoenixBlast = 2129
 
| PhoenixFireball = 2129
 
| PhoenixFireball = 2129
 +
| PhoenixFlash = 2129
 
| PhoenixPeck = 2129
 
| PhoenixPeck = 2129
 
| Pig Bite = 2224
 
| Pig Bite = 2224
Line 2,210: Line 2,215:
 
| RanalonGuardianStab = 3472
 
| RanalonGuardianStab = 3472
 
| RanalonGuardianStabB = 3472
 
| RanalonGuardianStabB = 3472
| RanalonHeal = 2108
+
| RanalonHeal1 = 2108
 +
| RanalonHeal2 = 2108
 
| RanalonHit = 3472
 
| RanalonHit = 3472
 
| RanalonHitB = 3472
 
| RanalonHitB = 3472
 
| RanalonKick = 2112
 
| RanalonKick = 2112
 
| RanalonRoot = 2208
 
| RanalonRoot = 2208
| RanalonSelfBuff = 2131
+
| RanalonSelfBuff1 = 2131
 +
| RanalonSelfBuff2 = 2131
 
| RanalonSelfBuffElite = 2131
 
| RanalonSelfBuffElite = 2131
 
| RanalonTongue = 3607
 
| RanalonTongue = 3607
Line 2,436: Line 2,443:
 
| Scintillating Frost 6 = 2208
 
| Scintillating Frost 6 = 2208
 
| ScrayBite = 2152
 
| ScrayBite = 2152
| ScrayStab = 2152
+
| ScrayStab1 = 2152
 +
| ScrayStab2 = 2152
 
| Screech = 3544
 
| Screech = 3544
 
| Screech 2 = 3544
 
| Screech 2 = 3544
Line 2,665: Line 2,673:
 
| Spider Bite 9 = 3017
 
| Spider Bite 9 = 3017
 
| Spider Boss Free Pin = 2131
 
| Spider Boss Free Pin = 2131
 +
| Spider Incubate = 3252
 
| Spider Incubate = 3252
 
| Spider Incubate = 3252
 
| Spider Inject = 3401
 
| Spider Inject = 3401
Line 3,094: Line 3,103:
 
| Wasp Ranged Debuff (Pet) 5 = 2136
 
| Wasp Ranged Debuff (Pet) 5 = 2136
 
| Wasp Ranged Debuff (Pet) 6 = 2136
 
| Wasp Ranged Debuff (Pet) 6 = 2136
 +
| Wasp Ranged Slow (Pet) 1 = 3619
 
| Wasp Ranged Slow (Pet) 1 = 3619
 
| Wasp Ranged Slow (Pet) 1 = 3619
 +
| Wasp Ranged Slow (Pet) 2 = 3619
 
| Wasp Ranged Slow (Pet) 2 = 3619
 
| Wasp Ranged Slow (Pet) 2 = 3619
 
| Wasp Ranged Slow (Pet) 3 = 3619
 
| Wasp Ranged Slow (Pet) 3 = 3619
 +
| Wasp Ranged Slow (Pet) 3 = 3619
 +
| Wasp Ranged Slow (Pet) 4 = 3619
 
| Wasp Ranged Slow (Pet) 4 = 3619
 
| Wasp Ranged Slow (Pet) 4 = 3619
 +
| WaspIceRageStab = 3445
 +
| WaspIceSlowA = 3485
 +
| WaspIceSlowB = 3485
 +
| WaspIceStab = 3310
 +
| WaspIceStab = 3445
 
| WaspRageBurst = 3445
 
| WaspRageBurst = 3445
 
| WaspRageStab = 3445
 
| WaspRageStab = 3445
Line 3,190: Line 3,208:
 
| #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/v328/icons/icon_<span style="color:red">Error: Ability not found</span>.png |  
+
http://cdn.projectgorgon.com/v332/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 21:53, 19 January 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