Template:Combat Ability icon: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
FoxnEagle (talk | contribs)
v426 update
Donni Iris (talk | contribs)
Undo revision 273249 by Donni Iris (talk)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude><!-- Updated on Sun Apr 20 2025 23:29:53 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/v426/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }}
{{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }}
| a = {{ #switch: {{{1}}}
| a = {{ #switch: {{{1}}}
| AbyssalSnare = 3926
| AbyssalSnare = 3926
Line 343: Line 343:
| FaeDarkcasterB = 3647
| FaeDarkcasterB = 3647
| FaeDarkcasterStun = 3647
| FaeDarkcasterStun = 3647
| FaeDragonBite = 3067
| FaeDragonSpit = 3874
| FaeDragonSwoop = 3874
| FaeIceSpearA = 3499
| FaeIceSpearA = 3499
| FaeIceSpearB = 3499
| FaeIceSpearB = 3499
Line 367: Line 370:
| FlapSkullBigBite = 2129
| FlapSkullBigBite = 2129
| FlapSkullBite = 2129
| FlapSkullBite = 2129
| FlapSkullPetVomit = 3068
| FlapSkullPovusVomit = 3068
| FlapSkullPovusVomit = 3068
| ForthragarianBlast = 2238
| ForthragarianBlast = 2238
Line 374: Line 378:
| FrogBelch = 3485
| FrogBelch = 3485
| FrogBelchCold = 3485
| FrogBelchCold = 3485
| FrogBelchDemon = 3485
| FrogLick = 3485
| FrogLick = 3485
| FrogLickCold = 3485
| FrogLickCold = 3485
| FrogLickDemon = 3485
| FungoidBash = 3485
| FungoidBash = 3485
| FungoidRageBash = 3485
| FungoidRageBash = 3485
Line 544: Line 550:
| KuvouAttack2 = 3485
| KuvouAttack2 = 3485
| KuvouRageAttack = 3485
| KuvouRageAttack = 3485
| KuvouRageAttackCold = 3485
| KuvouSpit = 3485
| KuvouSpit = 3485
}}
}}
Line 993: Line 1,000:
| Slime_SummonSlime = 2195
| Slime_SummonSlime = 2195
| Slime_SummonSlime6 = 2161
| Slime_SummonSlime6 = 2161
| Slime_SummonSlime9 = 2161
| SlugBite = 3401
| SlugBite = 3401
| SlugPoisonBite = 3401
| SlugPoisonBite = 3401
Line 1,039: Line 1,047:
| SpyPortalZap = 2149
| SpyPortalZap = 2149
| SpyPortalZap2 = 2149
| SpyPortalZap2 = 2149
| SteakBite = 3485
| SteakBurn = 3434
| StrigaBuff = 3328
| StrigaBuff = 3328
| StrigaClawA = 2130
| StrigaClawA = 2130
Line 1,059: Line 1,069:
| ThrallThrow = 2121
| ThrallThrow = 2121
| ThrallThrowRage = 2121
| ThrallThrowRage = 2121
| TornadoBurstFling = 2110
| TornadoFling = 2110
| TornadoFling = 2110
| TornadoJolt1 = 3070
| TornadoJolt1 = 3070
| TornadoJolt2 = 3070
| TornadoPetFling = 2110
| TornadoPetFling = 2110
| TornadoPetSmash1 = 3844
| TornadoPetSmash1 = 3844
Line 1,256: Line 1,268:
}}
}}
}}.png
}}.png
| http://cdn.projectgorgon.com/v426/icons/icon_.png <!-- result when no match is found, will be #replaced -->
| 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


Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

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 }}
The above text is transcluded from Template:Combat 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:Combat Ability icon/doc. (View all subpages of this page.)