Template:Ability icon: Difference between revisions
Extractum11 (talk | contribs) Created page with "{{ #switch: {{{1|None}}} | Acid Arrow = http://cdn.projectgorgon.com/v277/icons/icon_3302.png | Acid Arrow 2 = http://cdn.projectgorgon.com/v277/icons/icon_3302.png | Acid Arr..." |
Extractum11 (talk | contribs) Restructuring to reduce the size, hopefully edits on this page will work now. Functionality lost: using {{Ability icon|None}} to get the blank image. Can only use {{Ability icon}} or {{Ability icon|}} instead |
||
| Line 1: | Line 1: | ||
{{ #if: {{{1|}}} | | |||
{{ #replace: http://cdn.projectgorgon.com/v282/icons/icon_{{ #switch: {{{1|None}}} | |||
| Acid Arrow = 3302 | |||
| Acid Arrow 2 = 3302 | |||
| Acid Arrow 3 = 3302 | |||
| Acid Arrow 4 = 3302 | |||
| Acid Arrow 5 = 3302 | |||
| Acid Arrow 6 = 3302 | |||
| Acid Arrow 7 = 3302 | |||
| Acid Bolt = 3650 | |||
| Acid Bolt 2 = 3650 | |||
| Acid Bolt 3 = 3650 | |||
| Acid Bolt 4 = 3650 | |||
| Acid Bolt 5 = 3650 | |||
| Acid Bolt 6 = 3650 | |||
| Acid Bomb = 2184 | |||
| Acid Bomb 2 = 2184 | |||
| Acid Bomb 3 = 2184 | |||
| Acid Bomb 4 = 2184 | |||
| Acid Bomb 5 = 2184 | |||
| Acid Bomb 6 = 2184 | |||
| Acid Bomb 7 = 2184 | |||
| Acid Bomb 8 = 2184 | |||
| Acid Sigil = 3324 | |||
| Acid Sigil 2 = 3324 | |||
| Acid Sigil 3 = 3324 | |||
| Acid Sigil 4 = 3324 | |||
| Agonize = 3626 | |||
| Agonize 2 = 3626 | |||
| Agonize 3 = 3626 | |||
| Agonize 4 = 3626 | |||
| Aimed Shot = 3315 | |||
| Aimed Shot 2 = 3315 | |||
| Aimed Shot 3 = 3315 | |||
| Aimed Shot 4 = 3315 | |||
| Aimed Shot 5 = 3315 | |||
| Aimed Shot 6 = 3315 | |||
| Anthem of Avoidance = 3667 | |||
| Anthem of Avoidance 2 = 3667 | |||
| Anthem of Avoidance 3 = 3667 | |||
| Anthem of Avoidance 4 = 3667 | |||
| Anthem of Avoidance 5 = 3667 | |||
| Antler Slash = 2219 | |||
| Antler Slash 2 = 2219 | |||
| Antler Slash 3 = 2219 | |||
| Antler Slash 4 = 2219 | |||
| Antler Slash 5 = 2219 | |||
| Antler Slash 6 = 2219 | |||
| Antler Slash 7 = 2219 | |||
| Antler Slash 8 = 2219 | |||
| Backstab = 3600 | |||
| Backstab 2 = 3600 | |||
| Backstab 3 = 3600 | |||
| Backstab 4 = 3600 | |||
| Backstab 5 = 3600 | |||
| Backstab 6 = 3600 | |||
| Backstab 7 = 3600 | |||
| Barrage = 2102 | |||
| Barrage 2 = 2102 | |||
| Barrage 3 = 2102 | |||
| Barrage 4 = 2102 | |||
| Barrage 5 = 2102 | |||
| Barrage 6 = 2102 | |||
| Bash = 3407 | |||
| Bash 2 = 3407 | |||
| Bash 3 = 3407 | |||
| Bash 4 = 3407 | |||
| Bash 5 = 3407 | |||
| Basic Shot = 3310 | |||
| Basic Shot 2 = 3310 | |||
| Basic Shot 3 = 3310 | |||
| Basic Shot 4 = 3310 | |||
| Basic Shot 5 = 3310 | |||
| Basic Shot 6 = 3310 | |||
| Bat Stability = 3547 | |||
| Bat Stability 2 = 3547 | |||
| Bat Stability 3 = 3547 | |||
| Become Dark Wolf = 2126 | |||
| Become Winter Wolf = 2126 | |||
| Become Wolf = 2126 | |||
| Bite = 2129 | |||
| Bite 2 = 2129 | |||
| Bite 3 = 2129 | |||
| Bite 4 = 2129 | |||
| Bite 5 = 2129 | |||
| Bite 6 = 2129 | |||
| Blast of Defiance = 3673 | |||
| Blast of Defiance 2 = 3673 | |||
| Blast of Defiance 3 = 3673 | |||
| Blast of Defiance 4 = 3673 | |||
| Blast of Defiance 5 = 3673 | |||
| Blast of Defiance 6 = 3673 | |||
| Blast of Despair = 3672 | |||
| Blast of Despair 2 = 3672 | |||
| Blast of Despair 3 = 3672 | |||
| Blast of Despair 4 = 3672 | |||
| Blast of Despair 5 = 3672 | |||
| Blast of Despair 6 = 3672 | |||
| Blast of Fury = 3671 | |||
| Blast of Fury 2 = 3671 | |||
| Blast of Fury 3 = 3671 | |||
| Blast of Fury 4 = 3671 | |||
| Blast of Fury 5 = 3671 | |||
| Blast of Fury 6 = 3671 | |||
| Blast of Fury 7 = 3671 | |||
| Blitz Shot = 3321 | |||
| Blitz Shot 2 = 3321 | |||
| Blitz Shot 3 = 3321 | |||
| Blitz Shot 4 = 3321 | |||
| Blitz Shot 5 = 3321 | |||
| Blitz Shot 6 = 3321 | |||
| Blizzard = 3525 | |||
| Blizzard 2 = 3525 | |||
| Blizzard 3 = 3525 | |||
| Blizzard 4 = 3525 | |||
| Blizzard 5 = 3525 | |||
| Blizzard 6 = 3525 | |||
| Blocking Stance = 2192 | |||
| Blocking Stance 2 = 2192 | |||
| Blocking Stance 3 = 2192 | |||
| Blocking Stance 4 = 2192 | |||
| Blood of the Pack = 3629 | |||
| Blood of the Pack 2 = 3629 | |||
| Blood of the Pack 3 = 3629 | |||
| Blood of the Pack 4 = 3629 | |||
| Blood of the Pack 5 = 3629 | |||
| Blur Cut = 3592 | |||
| Blur Cut 2 = 3592 | |||
| Blur Cut 3 = 3592 | |||
| Blur Cut 4 = 3592 | |||
| Blur Cut 5 = 3592 | |||
| Blur Cut 6 = 3592 | |||
| Blur Cut 7 = 3592 | |||
| Bodyslam = 3322 | |||
| Bodyslam 2 = 3322 | |||
| Bodyslam 3 = 3322 | |||
| Bodyslam 4 = 3322 | |||
| Bodyslam 5 = 3322 | |||
| Bounding Escape = 2151 | |||
| Bounding Escape 2 = 2151 | |||
| Bounding Escape 3 = 2151 | |||
| Bounding Escape 4 = 2151 | |||
| Bow Bash = 3312 | |||
| Bow Bash 2 = 3312 | |||
| Bow Bash 3 = 3312 | |||
| Bow Bash 4 = 3312 | |||
| Bow Bash 5 = 3312 | |||
| Bow Bash 6 = 3312 | |||
| Brain Scrub = 3645 | |||
| Brambleskin = 3483 | |||
| Brambleskin 2 = 3483 | |||
| Brambleskin 3 = 3483 | |||
| Brambleskin 4 = 3483 | |||
| Brambleskin 5 = 3483 | |||
| Brambleskin 6 = 3483 | |||
| Brambleskin 7 = 3483 | |||
| Brambleskin 8 = 3483 | |||
| Bruising Blow = 2241 | |||
| Bruising Blow 2 = 2241 | |||
| Bruising Blow 3 = 2241 | |||
| Bruising Blow 4 = 2241 | |||
| Bruising Blow 5 = 2241 | |||
| But I Love You = 3441 | |||
| But I Love You 2 = 3441 | |||
| But I Love You 3 = 3441 | |||
| Cabalist's Mutter = 3662 | |||
| Calefaction = 3069 | |||
| Calefaction 2 = 3069 | |||
| Calefaction 3 = 3069 | |||
| Calefaction 4 = 3069 | |||
| Calefaction 5 = 3069 | |||
| Call Living Stabled Pet = 2160 | |||
| Call Stabled Pet #1 = 2161 | |||
| Call Stabled Pet #2 = 2162 | |||
| Call Stabled Pet #3 = 2163 | |||
| Call Stabled Pet #4 = 2164 | |||
| Call Stabled Pet #5 = 2165 | |||
| Cause Terror = 2104 | |||
| Cause Terror 2 = 2104 | |||
| Cause Terror 3 = 2104 | |||
| Charged Chomp = 2230 | |||
| Charm Rat = 2135 | |||
| Chew Cud = 2150 | |||
| Chew Cud 2 = 2150 | |||
| Chew Cud 3 = 2150 | |||
| Chew Cud 4 = 2150 | |||
| Chew Cud 5 = 2150 | |||
| Chill = 3492 | |||
| Chill 2 = 3492 | |||
| Chill 3 = 3492 | |||
| Chill 4 = 3492 | |||
| Chill 5 = 3492 | |||
| Chillball = 2258 | |||
| Claw = 2130 | |||
| Claw 2 = 2130 | |||
| Claw 3 = 2130 | |||
| Claw 4 = 2130 | |||
| Claw 5 = 2130 | |||
| Claw 6 = 2130 | |||
| Claw Barrage = 3487 | |||
| Claw Barrage 2 = 3487 | |||
| Claw Barrage 3 = 3487 | |||
| Clever Trick = 3619 | |||
| Clever Trick 2 = 3619 | |||
| Clever Trick 3 = 3619 | |||
| Clever Trick 4 = 3619 | |||
| Clobbering Hoof = 3464 | |||
| Clobbering Hoof 2 = 3464 | |||
| Clobbering Hoof 3 = 3464 | |||
| Clobbering Hoof 4 = 3464 | |||
| Clobbering Hoof 5 = 3464 | |||
| Clobbering Hoof 6 = 3464 | |||
| Clobbering Hoof 7 = 3464 | |||
| Cloud Sight = 3485 | |||
| Cloud Sight 2 = 3485 | |||
| Cloud Sight 3 = 3485 | |||
| Cloud Sight 4 = 3485 | |||
| Cloud Sight 5 = 3485 | |||
| Cloud Sight 6 = 3485 | |||
| Cobra Strike = 2105 | |||
| Cobra Strike 2 = 2105 | |||
| Cobra Strike 3 = 2105 | |||
| Cobra Strike 4 = 2105 | |||
| Cobra Strike 5 = 2105 | |||
| Cold Protection = 3408 | |||
| Cold Protection = 3408 | |||
| Cold Protection 2 = 3408 | |||
| Cold Protection 2 = 3408 | |||
| Cold Protection 3 = 3408 | |||
| Cold Protection 3 = 3408 | |||
| Cold Protection 4 = 3408 | |||
| Cold Protection 4 = 3408 | |||
| Cold Protection 5 = 3408 | |||
| Cold Protection 5 = 3408 | |||
| Cold Protection 6 = 3408 | |||
| Cold Protection 7 = 3408 | |||
| Cold Protection 8 = 3408 | |||
| Cold Sphere = 3496 | |||
| Cold Sphere 2 = 3496 | |||
| Cold Sphere 3 = 3496 | |||
| Cold Sphere 4 = 3496 | |||
| Cold Sphere 5 = 3496 | |||
| Cold Sphere 6 = 3496 | |||
| Cold Sphere 7 = 3496 | |||
| Collect Milk = 2148 | |||
| Collect Milk 2 = 2148 | |||
| Collect Milk 3 = 2148 | |||
| Confusing Double = 3543 | |||
| Confusing Double 2 = 3543 | |||
| Confusing Double 3 = 3543 | |||
| Cosmic Strike = 3000 | |||
| Cosmic Strike 2 = 3000 | |||
| Cosmic Strike 3 = 3000 | |||
| Cosmic Strike 4 = 3000 | |||
| Cosmic Strike 5 = 3000 | |||
| Cosmic Strike 6 = 3000 | |||
| Cosmic Strike 7 = 3000 | |||
| Create Armored Standard Golem = 2174 | |||
| Create Augmented Golem = 2174 | |||
| Create Basic Golem = 2174 | |||
| Create Improved Golem = 2174 | |||
| Create Primitive Golem = 2174 | |||
| Create Shambling Corpse = | |||
{{Ability icon/Explanation}} | {{Ability icon/Explanation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 05:13, 19 May 2017
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/v282/icons/icon_2120.png | http://cdn.projectgorgon.com/v282/icons/icon_Error: Ability not found.png | Error: Ability not found }}
{{ #replace: http://cdn.projectgorgon.com/v282/icons/icon_4003.png | http://cdn.projectgorgon.com/v282/icons/icon_Error: Ability not found.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/v282/icons/icon_2120.png | http://cdn.projectgorgon.com/v282/icons/icon_Error: Ability not found.png | Error: Ability not found }}
{{ #replace: http://cdn.projectgorgon.com/v282/icons/icon_2120.png | http://cdn.projectgorgon.com/v282/icons/icon_Error: Ability not found.png | Error: Ability not found }}
{{ #replace: http://cdn.projectgorgon.com/v282/icons/icon_2120.png | http://cdn.projectgorgon.com/v282/icons/icon_Error: Ability not found.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/v282/icons/icon_2120.png | http://cdn.projectgorgon.com/v282/icons/icon_Error: Ability not found.png | Error: Ability not found }}
{{ #replace: http://cdn.projectgorgon.com/v282/icons/icon_2120.png | http://cdn.projectgorgon.com/v282/icons/icon_Error: Ability not found.png | Error: Ability not found }}