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/v337/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v340/icons/icon_{{ #switch: {{{1|None}}}
 
| (Internal - SZ1) = 2202
 
| (Internal - SZ1) = 2202
 
| (Internal - SZ2) = 2202
 
| (Internal - SZ2) = 2202
Line 407: Line 407:
 
| Bruising Blow 5 = 2241
 
| Bruising Blow 5 = 2241
 
| Bruising Blow 6 = 2241
 
| Bruising Blow 6 = 2241
 +
| Bulwark Mode = 3451
 +
| Bulwark Mode 2 = 3451
 +
| Bulwark Mode 3 = 3451
 
| Bun-Fu Blast = 3752
 
| Bun-Fu Blast = 3752
 
| Bun-Fu Blast 2 = 3752
 
| Bun-Fu Blast 2 = 3752
Line 413: Line 416:
 
| Bun-Fu Blast 5 = 3752
 
| Bun-Fu Blast 5 = 3752
 
| Bun-Fu Blast 6 = 3752
 
| Bun-Fu Blast 6 = 3752
| Bun-Fu Blitz = 3691
+
| Bun-Fu Kick = 3691
| Bun-Fu Blitz 2 = 3691
+
| Bun-Fu Kick 2 = 3691
| Bun-Fu Blitz 3 = 3691
+
| Bun-Fu Kick 3 = 3691
| Bun-Fu Blitz 4 = 3691
+
| Bun-Fu Kick 4 = 3691
| Bun-Fu Blitz 5 = 3691
+
| Bun-Fu Kick 5 = 3691
| Bun-Fu Blitz 6 = 3691
+
| Bun-Fu Kick 6 = 3691
 
| Bun-Fu Strike = 3704
 
| Bun-Fu Strike = 3704
 
| Bun-Fu Strike 2 = 3704
 
| Bun-Fu Strike 2 = 3704
Line 856: Line 859:
 
| Energize 3 = 3411
 
| Energize 3 = 3411
 
| Energize 4 = 3411
 
| Energize 4 = 3411
 +
| English: Left +10 = 3765
 +
| English: Reset = 3767
 +
| English: Right +10 = 3766
 
| Entrancing Lullaby = 3675
 
| Entrancing Lullaby = 3675
 
| Entrancing Lullaby 2 = 3675
 
| Entrancing Lullaby 2 = 3675
Line 861: Line 867:
 
| Entrancing Lullaby 4 = 3675
 
| Entrancing Lullaby 4 = 3675
 
| Entrancing Lullaby 5 = 3675
 
| Entrancing Lullaby 5 = 3675
 +
| EventBossClaudiaSummon = 3485
 
| Exhilarate = 3728
 
| Exhilarate = 3728
 
| Exhilarate 2 = 3728
 
| Exhilarate 2 = 3728
Line 1,574: Line 1,581:
 
| Jab 7 = 2203
 
| Jab 7 = 2203
 
| Jab 8 = 2203
 
| Jab 8 = 2203
 +
| Kick Power +10 = 3763
 +
| Kick Power -10 = 3762
 +
| Kick Power Reset = 3764
 
| King of the Forest = 2247
 
| King of the Forest = 2247
 
| King of the Forest 2 = 2247
 
| King of the Forest 2 = 2247
Line 3,204: Line 3,214:
 
| Venomstrike 7 = 3596
 
| Venomstrike 7 = 3596
 
| Venomstrike 8 = 3596
 
| Venomstrike 8 = 3596
| Vigorous Defense = 3451
 
| Vigorous Defense 2 = 3451
 
| Vigorous Defense 3 = 3451
 
 
| Vile Recuperation = 3426
 
| Vile Recuperation = 3426
 
| Vile Recuperation 2 = 3426
 
| Vile Recuperation 2 = 3426
Line 3,371: Line 3,378:
 
| #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/v337/icons/icon_<span style="color:red">Error: Ability not found</span>.png |  
+
http://cdn.projectgorgon.com/v340/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 04:55, 26 November 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