Template:Ability icon: Difference between revisions
Extractum11 (talk | contribs) m Updating |
Extractum11 (talk | contribs) m Updating |
||
| Line 1: | Line 1: | ||
{{ #if: {{{1|}}} | | {{ #if: {{{1|}}} | | ||
{{ #replace: http://cdn.projectgorgon.com/ | {{ #replace: http://cdn.projectgorgon.com/v337/icons/icon_{{ #switch: {{{1|None}}} | ||
| (Internal - SZ1) = 2202 | | (Internal - SZ1) = 2202 | ||
| (Internal - SZ2) = 2202 | | (Internal - SZ2) = 2202 | ||
| Line 30: | Line 30: | ||
| (Internal) = 2109 | | (Internal) = 2109 | ||
| (Internal) = 2111 | | (Internal) = 2111 | ||
| (Self Bomb) = 0 | |||
| (internal) = 2199 | | (internal) = 2199 | ||
| Acid Arrow = 3302 | | Acid Arrow = 3302 | ||
| Line 64: | Line 65: | ||
| Acid Explosion = 3307 | | Acid Explosion = 3307 | ||
| Acid Explosion = 3307 | | Acid Explosion = 3307 | ||
| Acid Opener = 3408 | |||
| Acid Sigil = 3324 | | Acid Sigil = 3324 | ||
| Acid Sigil 2 = 3324 | | Acid Sigil 2 = 3324 | ||
| Line 458: | Line 460: | ||
| Cause Terror 3 = 2104 | | Cause Terror 3 = 2104 | ||
| Cause Terror 4 = 2104 | | Cause Terror 4 = 2104 | ||
| Cell Matrix Repair = 3806 | |||
| Charm Rat = 2135 | | Charm Rat = 2135 | ||
| Chew Cud = 2150 | | Chew Cud = 2150 | ||
| Line 602: | Line 605: | ||
| Cuteness Overload 4 = 2252 | | Cuteness Overload 4 = 2252 | ||
| Cuteness Overload 5 = 2252 | | Cuteness Overload 5 = 2252 | ||
| Dalvos Blast Wall = 3070 | |||
| Dalvos Darkness Bolt = 3647 | |||
| Dalvos Electric Bolt = 3070 | |||
| Dalvos Pain Bubble = 3327 | |||
| Dance 1 = 3612 | | Dance 1 = 3612 | ||
| Dance 2 = 3613 | | Dance 2 = 3613 | ||
| Line 876: | Line 883: | ||
| Fae Conduit 6 = 3785 | | Fae Conduit 6 = 3785 | ||
| Fae Conduit 7 = 3785 | | Fae Conduit 7 = 3785 | ||
| Fae Darkcaster A = 3647 | |||
| Fae Darkcaster B = 3647 | |||
| Fae Darkcaster Stun = 3647 | |||
| Fae Ice Spear = 3499 | | Fae Ice Spear = 3499 | ||
| Fae Ice Spear = 3499 | | Fae Ice Spear = 3499 | ||
| Line 882: | Line 892: | ||
| Fae Sword B = 3444 | | Fae Sword B = 3444 | ||
| Fae Sword Kill = 3443 | | Fae Sword Kill = 3443 | ||
| Fae Tornado Opener = 3496 | |||
| Fae Tornado Rage = 3496 | |||
| FaeConduitHeal = 3203 | | FaeConduitHeal = 3203 | ||
| Fairy Chime 1 = 3762 | | Fairy Chime 1 = 3762 | ||
| Line 1,211: | Line 1,223: | ||
| Grimalkin Puncture (Pet) 5 = 2136 | | Grimalkin Puncture (Pet) 5 = 2136 | ||
| Grimalkin Puncture (Pet) 6 = 2136 | | Grimalkin Puncture (Pet) 6 = 2136 | ||
| Gripjaw = | | Gripjaw = 3042 | ||
| Gripjaw 2 = | | Gripjaw 2 = 3042 | ||
| Gripjaw 3 = | | Gripjaw 3 = 3042 | ||
| Gripjaw 4 = | | Gripjaw 4 = 3042 | ||
| Gripjaw 5 = | | Gripjaw 5 = 3042 | ||
| Gripjaw 6 = | | Gripjaw 6 = 3042 | ||
| Grunt of Abeyance = 2250 | | Grunt of Abeyance = 2250 | ||
| Grunt of Abeyance 2 = 2250 | | Grunt of Abeyance 2 = 2250 | ||
| Line 1,383: | Line 1,395: | ||
| HippoBite = 2152 | | HippoBite = 2152 | ||
| HippoBiteAndHeal = 2152 | | HippoBiteAndHeal = 2152 | ||
| HippogriffBossFrostClaws = 2132 | |||
| HippogriffBossSlashes = 2132 | | HippogriffBossSlashes = 2132 | ||
| HippogriffFrostClaws = 2132 | |||
| HippogriffFrostPeck = 2129 | |||
| HippogriffPeck = 2129 | | HippogriffPeck = 2129 | ||
| HippogriffSlashes = 2132 | | HippogriffSlashes = 2132 | ||
| Line 1,474: | Line 1,489: | ||
| Icy Cocoon 2 = 3408 | | Icy Cocoon 2 = 3408 | ||
| Icy Slam = 3408 | | Icy Slam = 3408 | ||
| Icy Stun = 3408 | |||
| Illusive Guise = 3805 | | Illusive Guise = 3805 | ||
| Illusive Guise 2 = 3805 | | Illusive Guise 2 = 3805 | ||
| Line 2,620: | Line 2,636: | ||
| Shoot Crossbow 8 = 3647 | | Shoot Crossbow 8 = 3647 | ||
| Shoot Crossbow 9 = 3647 | | Shoot Crossbow 9 = 3647 | ||
| Shoot Darkness Bolt = 3647 | |||
| Shrill Command = 3462 | | Shrill Command = 3462 | ||
| Shrill Command 2 = 3462 | | Shrill Command 2 = 3462 | ||
| Line 2,978: | Line 2,995: | ||
| Tame Big Cat = 2135 | | Tame Big Cat = 2135 | ||
| Tame Rat = 2135 | | Tame Rat = 2135 | ||
| Targeting Overlay = 3807 | |||
| Taunting Punch = 2119 | | Taunting Punch = 2119 | ||
| Taunting Punch 2 = 2119 | | Taunting Punch 2 = 2119 | ||
| Line 3,353: | Line 3,371: | ||
| #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/ | http://cdn.projectgorgon.com/v337/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:57, 11 September 2020
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/v337/icons/icon_2120.png | http://cdn.projectgorgon.com/v337/icons/icon_Error: Ability not found.png | Error: Ability not found }}
{{ #replace: http://cdn.projectgorgon.com/v337/icons/icon_4003.png | http://cdn.projectgorgon.com/v337/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/v337/icons/icon_2120.png | http://cdn.projectgorgon.com/v337/icons/icon_Error: Ability not found.png | Error: Ability not found }}
{{ #replace: http://cdn.projectgorgon.com/v337/icons/icon_2120.png | http://cdn.projectgorgon.com/v337/icons/icon_Error: Ability not found.png | Error: Ability not found }}
{{ #replace: http://cdn.projectgorgon.com/v337/icons/icon_2120.png | http://cdn.projectgorgon.com/v337/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/v337/icons/icon_2120.png | http://cdn.projectgorgon.com/v337/icons/icon_Error: Ability not found.png | Error: Ability not found }}
{{ #replace: http://cdn.projectgorgon.com/v337/icons/icon_2120.png | http://cdn.projectgorgon.com/v337/icons/icon_Error: Ability not found.png | Error: Ability not found }}