Difference between revisions of "Template:Ability icon"
From Project: Gorgon Wiki
Extractum11 (talk | contribs) m (Updating) |
Extractum11 (talk | contribs) m (Updating) |
||
Line 1: | Line 1: | ||
{{ #if: {{{1|}}} | | {{ #if: {{{1|}}} | | ||
− | {{ #replace: http://cdn.projectgorgon.com/ | + | {{ #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 2 = 3572 | |
− | | Reverberating Strike 2 = | + | | Reverberating Strike 3 = 3572 |
− | | Reverberating Strike 3 = | + | | Reverberating Strike 4 = 3572 |
− | | Reverberating Strike 4 = | + | | Reverberating Strike 5 = 3572 |
− | | Reverberating Strike 5 = | + | | Reverberating Strike 6 = 3572 |
− | | Reverberating Strike 6 = | + | | Reverberating Strike 7 = 3572 |
− | | Reverberating Strike 7 = | ||
| 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 = | + | | 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/ | + | 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> |
Revision as of 23:09, 14 August 2019
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>