Difference between revisions of "Template:Ability icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
{{ #if: {{{1|}}} |  
 
{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v298/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v304/icons/icon_{{ #switch: {{{1|None}}}
 
| (Internal - SoD1) = 3665
 
| (Internal - SoD1) = 3665
 
| (Internal - SoD2) = 3665
 
| (Internal - SoD2) = 3665
Line 9: Line 9:
 
| (Internal - SoD7) = 3665
 
| (Internal - SoD7) = 3665
 
| (Internal - SoD8) = 3665
 
| (Internal - SoD8) = 3665
 +
| (Internal - Triage1) = 3734
 +
| (Internal - Triage2) = 3734
 +
| (Internal - Triage3) = 3734
 +
| (Internal - Triage4) = 3734
 +
| (Internal - Triage5) = 3734
 +
| (Internal - Triage6) = 3734
 +
| (Internal - Triage7) = 3734
 +
| (Internal - Triage8) = 3734
 
| (Internal) = 2111
 
| (Internal) = 2111
 
| (internal) = 2199
 
| (internal) = 2199
Line 38: Line 46:
 
| Acid Sigil 3 = 3324
 
| Acid Sigil 3 = 3324
 
| Acid Sigil 4 = 3324
 
| Acid Sigil 4 = 3324
 +
| Admonish = 3726
 +
| Admonish 2 = 3726
 +
| Admonish 3 = 3726
 +
| Admonish 4 = 3726
 +
| Admonish 5 = 3726
 +
| Admonish 6 = 3726
 +
| Admonish 7 = 3726
 +
| Admonish 8 = 3726
 
| Agonize = 3626
 
| Agonize = 3626
 
| Agonize 2 = 3626
 
| Agonize 2 = 3626
Line 221: Line 237:
 
| Carrot Power 6 = 3697
 
| Carrot Power 6 = 3697
 
| Carrot Power 7 = 3697
 
| Carrot Power 7 = 3697
 +
| Castigate = 3727
 +
| Castigate 2 = 3727
 +
| Castigate 3 = 3727
 +
| Castigate 4 = 3727
 +
| Castigate 5 = 3727
 +
| Castigate 6 = 3727
 +
| Castigate 7 = 3727
 
| Cause Terror = 2104
 
| Cause Terror = 2104
 
| Cause Terror 2 = 2104
 
| Cause Terror 2 = 2104
Line 303: Line 326:
 
| Confusing Double 3 = 3543
 
| Confusing Double 3 = 3543
 
| Confusing Double 4 = 3543
 
| Confusing Double 4 = 3543
 +
| Corrupt Hate = 3731
 +
| Corrupt Hate 2 = 3731
 +
| Corrupt Hate 3 = 3731
 +
| Corrupt Hate 4 = 3731
 +
| Corrupt Hate 5 = 3731
 +
| Corrupt Hate 6 = 3731
 +
| Corrupt Hate 7 = 3731
 +
| Corrupt Hate 8 = 3731
 
| Cosmic Strike = 3000
 
| Cosmic Strike = 3000
 
| Cosmic Strike 2 = 3000
 
| Cosmic Strike 2 = 3000
Line 463: Line 494:
 
| Drum 5 = 3522
 
| Drum 5 = 3522
 
| Drum 6 = 3523
 
| Drum 6 = 3523
 +
| Duelist's Slash = 3740
 +
| Duelist's Slash 2 = 3740
 +
| Duelist's Slash 3 = 3740
 +
| Duelist's Slash 4 = 3740
 +
| Duelist's Slash 5 = 3740
 +
| Duelist's Slash 6 = 3740
 +
| Duelist's Slash 7 = 3740
 +
| Duelist's Slash 8 = 3740
 
| Dulcimer 1 = 3535
 
| Dulcimer 1 = 3535
 
| Dulcimer 2 = 3536
 
| Dulcimer 2 = 3536
Line 497: Line 536:
 
| Entrancing Lullaby 4 = 3675
 
| Entrancing Lullaby 4 = 3675
 
| Entrancing Lullaby 5 = 3675
 
| Entrancing Lullaby 5 = 3675
 +
| Exhilarate = 3728
 +
| Exhilarate 2 = 3728
 +
| Exhilarate 3 = 3728
 +
| Exhilarate 4 = 3728
 +
| Exhilarate 5 = 3728
 +
| Exhilarate 6 = 3728
 
| Explosion Sigil = 3325
 
| Explosion Sigil = 3325
 
| Explosion Sigil 2 = 3325
 
| Explosion Sigil 2 = 3325
Line 609: Line 654:
 
| Fish Gut 5 = 2133
 
| Fish Gut 5 = 2133
 
| Fish Gut 6 = 2133
 
| Fish Gut 6 = 2133
 +
| Flamestrike = 3739
 +
| Flamestrike 2 = 3739
 +
| Flamestrike 3 = 3739
 +
| Flamestrike 4 = 3739
 +
| Flamestrike 5 = 3739
 +
| Flamestrike 6 = 3739
 +
| Flamestrike 7 = 3739
 
| Flare Fireball 2 = 2238
 
| Flare Fireball 2 = 2238
 
| Flare Fireball 4 = 2238
 
| Flare Fireball 4 = 2238
Line 684: Line 736:
 
| Get It Off Me 6 = 2141
 
| Get It Off Me 6 = 2141
 
| Get It Off Me 7 = 2141
 
| Get It Off Me 7 = 2141
 +
| Give Warmth = 3738
 +
| Give Warmth 2 = 3738
 +
| Give Warmth 3 = 3738
 +
| Give Warmth 4 = 3738
 
| Grappling Web = 3254
 
| Grappling Web = 3254
 
| Grappling Web 2 = 3254
 
| Grappling Web 2 = 3254
Line 702: Line 758:
 
| Grunt of Abeyance 6 = 2250
 
| Grunt of Abeyance 6 = 2250
 
| Grunt of Abeyance 7 = 2250
 
| Grunt of Abeyance 7 = 2250
 +
| Guide Beacon - Flowers = 3745
 +
| Guide Beacon - Green = 3742
 +
| Guide Beacon - Rainbow = 3744
 +
| Guide Beacon - Red = 3741
 +
| Guide Beacon - Yellow = 3743
 
| Gut = 3597
 
| Gut = 3597
 
| Gut 2 = 3597
 
| Gut 2 = 3597
Line 929: Line 990:
 
| Inspire Confidence 2 = 2223
 
| Inspire Confidence 2 = 2223
 
| Inspire Confidence 3 = 2223
 
| Inspire Confidence 3 = 2223
 +
| Invigorate = 3737
 +
| Invigorate 2 = 3737
 +
| Invigorate 3 = 3737
 +
| Invigorate 4 = 3737
 +
| Invigorate 5 = 3737
 +
| Invigorate 6 = 3737
 +
| Invigorate 7 = 3737
 
| Jab = 2203
 
| Jab = 2203
 
| Jab 10 = 2203
 
| Jab 10 = 2203
Line 1,046: Line 1,114:
 
| Marking Cut 3 = 3591
 
| Marking Cut 3 = 3591
 
| Marking Cut 4 = 3591
 
| Marking Cut 4 = 3591
 +
| Mend Flesh = 3729
 +
| Mend Flesh 2 = 3729
 +
| Mend Flesh 3 = 3729
 +
| Mend Flesh 4 = 3729
 +
| Mend Flesh 5 = 3729
 +
| Mend Flesh 6 = 3729
 +
| Mend Flesh 7 = 3729
 +
| Mend Flesh 8 = 3729
 
| Mindreave = 3424
 
| Mindreave = 3424
 
| Mindreave 2 = 3424
 
| Mindreave 2 = 3424
Line 1,445: Line 1,521:
 
| Reinforce 6 = 2248
 
| Reinforce 6 = 2248
 
| Reinforce 7 = 2248
 
| Reinforce 7 = 2248
 +
| Relentless Hope = 3732
 +
| Relentless Hope 2 = 3732
 +
| Relentless Hope 3 = 3732
 +
| Remedy = 3735
 +
| Remedy 2 = 3735
 +
| Remedy 3 = 3735
 +
| Remedy 4 = 3735
 +
| Remedy 5 = 3735
 +
| Remedy 6 = 3735
 +
| Remedy 7 = 3735
 
| Repulsion Barrier = 3329
 
| Repulsion Barrier = 3329
 
| Restorative Arrow = 3631
 
| Restorative Arrow = 3631
Line 1,482: Line 1,568:
 
| Ridicule 3 = 2220
 
| Ridicule 3 = 2220
 
| Ridicule 4 = 2220
 
| Ridicule 4 = 2220
 +
| Righteous Flame = 3733
 +
| Righteous Flame 2 = 3733
 +
| Righteous Flame 3 = 3733
 +
| Righteous Flame 4 = 3733
 +
| Righteous Flame 5 = 3733
 +
| Righteous Flame 6 = 3733
 +
| Righteous Flame 7 = 3733
 
| Ring of Fire = 2120
 
| Ring of Fire = 2120
 
| Ring of Fire 2 = 2120
 
| Ring of Fire 2 = 2120
Line 1,495: Line 1,588:
 
| Rip 7 = 3553
 
| Rip 7 = 3553
 
| Rip 8 = 3553
 
| Rip 8 = 3553
| Riposte = 3027
+
| Riposte = 2233
| Riposte 2 = 3027
+
| Riposte 2 = 2233
| Riposte 3 = 3027
+
| Riposte 3 = 2233
| Riposte 4 = 3027
+
| Riposte 4 = 2233
| Riposte 5 = 3027
+
| Riposte 5 = 2233
| Riposte 6 = 3027
+
| Riposte 6 = 2233
| Riposte 7 = 3027
+
| Riposte 7 = 2233
| Riposte 8 = 3027
+
| Riposte 8 = 2233
| Riposte 9 = 3027
+
| Riposte 9 = 2233
 
| Room-Temperature Ball = 2209
 
| Room-Temperature Ball = 2209
 
| Room-Temperature Ball 2 = 2209
 
| Room-Temperature Ball 2 = 2209
Line 1,835: Line 1,928:
 
| Terror Dash 2 = 2225
 
| Terror Dash 2 = 2225
 
| Terror Dash 3 = 2225
 
| Terror Dash 3 = 2225
 +
| Tether Soul = 3736
 +
| Tether Soul 2 = 3736
 
| That'll Do = 2138
 
| That'll Do = 2138
 
| That'll Do 2 = 2138
 
| That'll Do 2 = 2138
Line 1,924: Line 2,019:
 
| Treat Disease 2 = 2218
 
| Treat Disease 2 = 2218
 
| Treat Disease 3 = 2218
 
| Treat Disease 3 = 2218
 +
| Triage = 3734
 +
| Triage 2 = 3734
 +
| Triage 3 = 3734
 +
| Triage 4 = 3734
 +
| Triage 5 = 3734
 +
| Triage 6 = 3734
 +
| Triage 7 = 3734
 
| Trigger Golem = 3460
 
| Trigger Golem = 3460
 
| Truffle Sniff = 2226
 
| Truffle Sniff = 2226
Line 1,942: Line 2,044:
 
| Tundra Spikes 5 = 3500
 
| Tundra Spikes 5 = 3500
 
| Tundra Spikes 6 = 3500
 
| Tundra Spikes 6 = 3500
 +
| Unfetter = 3730
 +
| Unfetter 2 = 3730
 
| Unnatural Wrath = 3418
 
| Unnatural Wrath = 3418
 
| Unnatural Wrath 2 = 3418
 
| Unnatural Wrath 2 = 3418
Line 2,033: Line 2,137:
 
| #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/v298/icons/icon_<span style="color:red">Error: Ability not found</span>.png |  
+
http://cdn.projectgorgon.com/v304/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 14:45, 25 May 2018

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