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/v318/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v321/icons/icon_{{ #switch: {{{1|None}}}
 
| (Internal - SZ1) = 2202
 
| (Internal - SZ1) = 2202
 
| (Internal - SZ2) = 2202
 
| (Internal - SZ2) = 2202
Line 2,146: Line 2,146:
 
| Resuscitate 2 (Guild) = 2139
 
| Resuscitate 2 (Guild) = 2139
 
| Resuscitate 2 (Hardcore, Guild) = 2139
 
| Resuscitate 2 (Hardcore, Guild) = 2139
 +
| Reverberating Strike = 3572
 
| Reverberating Strike = 3634
 
| Reverberating Strike = 3634
| Reverberating Strike = 3634
+
| Reverberating Strike 2 = 3572
| Reverberating Strike 2 = 3634
+
| Reverberating Strike 3 = 3572
| Reverberating Strike 3 = 3634
+
| Reverberating Strike 4 = 3572
| Reverberating Strike 4 = 3634
+
| Reverberating Strike 5 = 3572
| Reverberating Strike 5 = 3634
+
| Reverberating Strike 6 = 3572
| Reverberating Strike 6 = 3634
+
| Reverberating Strike 7 = 3572
| Reverberating Strike 7 = 3634
 
 
| Revitalize = 3431
 
| Revitalize = 3431
 
| Revitalize 2 = 3431
 
| Revitalize 2 = 3431
Line 2,207: Line 2,207:
 
| Room-Temperature Ball 5 = 2209
 
| Room-Temperature Ball 5 = 2209
 
| Room-Temperature Ball 6 = 2209
 
| Room-Temperature Ball 6 = 2209
| Rotflesh = 3482
+
| RootTrap = 2131
 +
| Rotflesh = 3760
 
| Rotskin = 3482
 
| Rotskin = 3482
 
| Rotskin 2 = 3482
 
| Rotskin 2 = 3482
Line 2,248: Line 2,249:
 
| See Red 3 = 2140
 
| See Red 3 = 2140
 
| See Red 4 = 2140
 
| See Red 4 = 2140
 +
| See Red 5 = 2140
 +
| See Red 6 = 2140
 +
| See Red 7 = 2140
 
| Seek Objective = 2118
 
| Seek Objective = 2118
 
| Seismic Impact = 3573
 
| Seismic Impact = 3573
Line 2,343: Line 2,347:
 
| Slime_SummonSlime = 2195
 
| Slime_SummonSlime = 2195
 
| Slime_SummonSlime6 = 2161
 
| Slime_SummonSlime6 = 2161
 +
| Slug Bite = 3401
 
| Slug Supervenom = 3401
 
| Slug Supervenom = 3401
 
| Slug Supervenom = 3401
 
| Slug Supervenom = 3401
Line 2,349: Line 2,354:
 
| Slug Venom = 3401
 
| Slug Venom = 3401
 
| Slug Venom = 3401
 
| Slug Venom = 3401
 +
| Slug Web Debuff = 3401
 +
| SmallishScorpionClawA = 3553
 +
| SmallishScorpionClawB = 3553
 +
| SmallishScorpionSting = 3402
 
| Smash = 2193
 
| Smash = 2193
 
| Smash 2 = 2193
 
| Smash 2 = 2193
Line 2,455: Line 2,464:
 
| Spider Kill 3 = 2131
 
| Spider Kill 3 = 2131
 
| Spider Pin = 2131
 
| Spider Pin = 2131
 +
| Spider Punt = 3759
 
| Spit Acid = 3251
 
| Spit Acid = 3251
 
| Spit Acid 2 = 3251
 
| Spit Acid 2 = 3251
Line 2,901: Line 2,911:
 
| #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/v318/icons/icon_<span style="color:red">Error: Ability not found</span>.png |  
+
http://cdn.projectgorgon.com/v321/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>

Latest revision as of 00:09, 15 August 2019

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 use CSS to force or resize them. See the Examples section below.

Syntax

{{Ability icon|<name>}}

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")

Examples

Basic Use

{{Ability icon|Regrowth}} {{Ability icon|Ring of Fire}}

icon_3480.png icon_2120.png


Forcing 32x32 size

<span class="extimage32px">{{Ability icon|Regrowth}}</span>

icon_3480.png


Forcing 64x64 size

<span class="extimage64px">{{Ability icon|Ring of Fire}}</span>

icon_2120.png