Difference between revisions of "Template:Ex Testing"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
{{ #if: {{{1|}}} | {{ #replace: http://cdn.projectgorgon.com/v282/icons/icon_{{ #switch: {{{1|None}}}
 
{{ #if: {{{1|}}} | {{ #replace: http://cdn.projectgorgon.com/v282/icons/icon_{{ #switch: {{{1|None}}}
| Acid Bolt 7 = 3650
+
| Acid Bolt 4 = 3650
| Acid Bolt 8 = 3650
+
| Acid Bolt 5 = 3650
| Anthem of Avoidance 6 = 3667
+
| Acid Bolt 6 = 3650
| Barrage 7 = 2102
+
| Acid Bomb = 2184
| Barrage 8 = 2102
+
| Acid Bomb 2 = 2184
| Become Dark Wolf = 2126
+
| Acid Bomb 3 = 2184
| Become Winter Wolf = 2126
+
| Acid Bomb 4 = 2184
| Become Wolf = 2126
+
| Acid Bomb 5 = 2184
| Blast of Defiance 7 = 3673
+
| Acid Bomb 6 = 2184
| Blast of Defiance 8 = 3673
+
| Acid Bomb 7 = 2184
| Blast of Despair 7 = 3672
+
| Acid Bomb 8 = 2184
| Blast of Fury 8 = 3671
+
| Acid Sigil = 3324
| Blast of Fury 9 = 3671
+
| Acid Sigil 2 = 3324
| Bodyslam 6 = 3322
+
| Acid Sigil 3 = 3324
| Bodyslam 7 = 3322
+
| Acid Sigil 4 = 3324
| Bodyslam 8 = 3322
+
| Agonize = 3626
| Brain Scrub = 3645
+
| Agonize 2 = 3626
| Bruising Blow 6 = 2241
+
| Agonize 3 = 3626
| Bruising Blow 7 = 2241
+
| Agonize 4 = 3626
| Bruising Blow 8 = 2241
+
| Aimed Shot = 3315
 
| None = [[File:Item-icon-none.png]]
 
| None = [[File:Item-icon-none.png]]
 
| #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 | http://cdn.projectgorgon.com/v282/icons/icon_<span style="color:red">Error: Ability not found</span>.png | <span style="color:red">Error: Ability not found</span> }}  
+
}}.png | http://cdn.projectgorgon.com/v282/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>
 
| [[File:Item-icon-none.png]] }}<noinclude>
 
{{Ability icon/Explanation}}
 
{{Ability icon/Explanation}}
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Revision as of 01:00, 19 May 2017

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