Template:Combat Ability icon: Difference between revisions
v435 update |
Donni Iris (talk | contribs) Undo revision 273249 by Donni Iris (talk) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude><!-- Updated on Mon Sep 15 2025 09:08:15 GMT-0600 (Mountain Daylight Time) using FoxnEagle's auto-wiki-generator --> | <noinclude><!-- Updated on Mon Sep 15 2025 09:08:15 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/v445/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }} | ||
| a = {{ #switch: {{{1}}} | | a = {{ #switch: {{{1}}} | ||
| AbyssalSnare = 3926 | | AbyssalSnare = 3926 | ||
| Line 1,268: | Line 1,268: | ||
}} | }} | ||
}}.png | }}.png | ||
| http://cdn.projectgorgon.com/ | | http://cdn.projectgorgon.com/v445/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> | ||
Latest revision as of 04:57, 17 March 2026
Description
This accepts a combat ability internal 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
{{Combat Ability icon|<name>}}
Parameters
- <name>
- The name of the ability. It must match exactly what is displayed in the json (e.g. "TreantStomp", not "Treant Stomp" or "treantstomp")
Examples
Standard Use
{{Combat Ability icon|TreantStomp}} {{Combat Ability icon|IceSlimeKick}}
{{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_3472.png | http://cdn.projectgorgon.com/v445/icons/icon_.png | Error: Ability not found }} {{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_2176.png | http://cdn.projectgorgon.com/v445/icons/icon_.png | Error: Ability not found }}
Forcing resize to 32x32
<span class="extimage32px">{{Combat Ability icon|IceSlimeKick}}</span>
{{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_2176.png | http://cdn.projectgorgon.com/v445/icons/icon_.png | Error: Ability not found }}
Forcing resize to 64x64
<span class="extimage64px">{{Combat Ability icon|IceSlimeKick}}</span>
{{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_2176.png | http://cdn.projectgorgon.com/v445/icons/icon_.png
| Error: Ability not found }}If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Combat Ability icon/doc. (View all subpages of this page.)