Difference between revisions of "Template:Ability icon"
From Project: Gorgon Wiki
m |
(v426 update) |
||
| Line 1: | Line 1: | ||
| − | <noinclude><!-- Updated on | + | <noinclude><!-- Updated on Sun Apr 20 2025 23:29:53 GMT-0600 (Mountain Daylight Time) using FoxnEagle's auto-wiki-generator --> |
</noinclude><includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px">| 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} | | </noinclude><includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px">| 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} | | ||
| − | {{ #replace: http://cdn.projectgorgon.com/ | + | {{ #replace: http://cdn.projectgorgon.com/v426/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }} |
| a = {{ #switch: {{{1}}} | | a = {{ #switch: {{{1}}} | ||
| Acid Arrow (Orc) = 3302 | | Acid Arrow (Orc) = 3302 | ||
| Line 91: | Line 91: | ||
| Aimed Shot 7 (Orc) = 3315 | | Aimed Shot 7 (Orc) = 3315 | ||
| Aimed Shot 7 = 3315 | | Aimed Shot 7 = 3315 | ||
| + | | Aimed Shot 8 (Energy Bow) = 3315 | ||
| Aimed Shot 8 = 3315 | | Aimed Shot 8 = 3315 | ||
| Aimed Shot = 3315 | | Aimed Shot = 3315 | ||
| Line 197: | Line 198: | ||
| Blast of Fury = 3671 | | Blast of Fury = 3671 | ||
| Blitz Shot (Orc) = 3310 | | Blitz Shot (Orc) = 3310 | ||
| + | | Blitz Shot 10 (Energy Bow) = 3310 | ||
| Blitz Shot 10 = 3310 | | Blitz Shot 10 = 3310 | ||
| Blitz Shot 2 (Orc) = 3310 | | Blitz Shot 2 (Orc) = 3310 | ||
| Line 1,711: | Line 1,713: | ||
| Many Cuts 8 = 2113 | | Many Cuts 8 = 2113 | ||
| Many Cuts = 2113 | | Many Cuts = 2113 | ||
| + | | Mark Weakness 2 = 3934 | ||
| + | | Mark Weakness 3 = 3934 | ||
| + | | Mark Weakness 4 = 3934 | ||
| + | | Mark Weakness 5 = 3934 | ||
| + | | Mark Weakness 6 = 3934 | ||
| + | | Mark Weakness 7 = 3934 | ||
| + | | Mark Weakness 8 = 3934 | ||
| + | | Mark Weakness = 3934 | ||
| Marking Cut 2 = 3591 | | Marking Cut 2 = 3591 | ||
| Marking Cut 3 = 3591 | | Marking Cut 3 = 3591 | ||
| Line 2,899: | Line 2,909: | ||
| Summon Tornado = 3844 | | Summon Tornado = 3844 | ||
| Summon a Blue Dart Frog = 3885 | | Summon a Blue Dart Frog = 3885 | ||
| + | | Summon a Blue Scapegoat = 3866 | ||
| Summon a Brain Bug = 5990 | | Summon a Brain Bug = 5990 | ||
| − | | Summon a | + | | Summon a Cup of Pudding = 3864 |
| Summon a Death Adder = 3874 | | Summon a Death Adder = 3874 | ||
| Summon a Death on a Leash = 3810 | | Summon a Death on a Leash = 3810 | ||
| Line 2,909: | Line 2,920: | ||
| Summon a Giant Scorpion = 3593 | | Summon a Giant Scorpion = 3593 | ||
| Summon a Gray Squirrel = 3886 | | Summon a Gray Squirrel = 3886 | ||
| + | | Summon a Green Scapegoat = 3866 | ||
| Summon a Happy Carrot = 3697 | | Summon a Happy Carrot = 3697 | ||
| + | | Summon a Ice Hen = 5117 | ||
| + | | Summon a Infernal Chicken = 6801 | ||
| Summon a Kraken Pet = 6255 | | Summon a Kraken Pet = 6255 | ||
| Summon a Mail Pigeon = 3875 | | Summon a Mail Pigeon = 3875 | ||
| Line 2,916: | Line 2,930: | ||
| Summon a Phoenix = 3465 | | Summon a Phoenix = 3465 | ||
| Summon a Pond Frog = 3883 | | Summon a Pond Frog = 3883 | ||
| − | |||
| Summon a Radish = 3809 | | Summon a Radish = 3809 | ||
| Summon a Red Dart Frog = 3884 | | Summon a Red Dart Frog = 3884 | ||
| + | | Summon a Red Scapegoat = 3866 | ||
| Summon a Red Squirrel = 3886 | | Summon a Red Squirrel = 3886 | ||
| Summon a Rock = 3921 | | Summon a Rock = 3921 | ||
| Line 3,382: | Line 3,396: | ||
}} | }} | ||
}}.png | }}.png | ||
| − | | http://cdn.projectgorgon.com/ | + | | http://cdn.projectgorgon.com/v426/icons/icon_.png <!-- result when no match is found, will be #replaced --> |
| <span style="color:red">Error: Ability not found</span> }} | [[File:Item-icon-none.png]] }}{{ #switch: {{{2}}} | 1 | 2 | 32 | 64 = </span> | }}</includeonly><noinclude> | | <span style="color:red">Error: Ability not found</span> }} | [[File:Item-icon-none.png]] }}{{ #switch: {{{2}}} | 1 | 2 | 32 | 64 = </span> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 00:50, 21 April 2025
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
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}}
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}}
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>
The above text is transcluded from Template:Ability icon/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Ability icon/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Ability icon/doc. (View all subpages of this page.)