Difference between revisions of "Template:Ability icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m (Automatically generated. If there's an issue, please message Extractum11 on Discord - Subglacious#0413)
Line 1: Line 1:
 
<includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px"> | 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} |  
 
<includeonly>{{ #switch: {{{2}}} | 1 | 32 = <span class="extimage32px"> | 2 | 64 = <span class="extimage64px"> | }}{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v370/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }}  
+
{{ #replace: http://cdn.projectgorgon.com/v374/icons/icon_{{ #switch: {{padleft: | 1 | {{ lc: {{{1}}} }} }}  
 
| a = {{ #switch: {{{1}}}
 
| a = {{ #switch: {{{1}}}
 
| Acid Arrow = 3302
 
| Acid Arrow = 3302
Line 146: Line 146:
 
| Bash 5 = 3407
 
| Bash 5 = 3407
 
| Bash 6 = 3407
 
| Bash 6 = 3407
| Basic Shot = 3310
 
| Basic Shot 2 = 3310
 
| Basic Shot 3 = 3310
 
| Basic Shot 4 = 3310
 
| Basic Shot 5 = 3310
 
| Basic Shot 6 = 3310
 
| Basic Shot 7 = 3310
 
| Basic Shot 7 (Energy Bow) = 3310
 
 
| BasiliskCastPerching = 3070
 
| BasiliskCastPerching = 3070
 
| BasiliskClawA = 2130
 
| BasiliskClawA = 2130
Line 306: Line 298:
 
| Blast of Fury 8 = 3671
 
| Blast of Fury 8 = 3671
 
| Bleddyn Howl = 2111
 
| Bleddyn Howl = 2111
| Blitz Shot = 3321
+
| Blitz Shot = 3315
| Blitz Shot 2 = 3321
+
| Blitz Shot 2 = 3315
| Blitz Shot 3 = 3321
+
| Blitz Shot 3 = 3315
| Blitz Shot 4 = 3321
+
| Blitz Shot 4 = 3315
| Blitz Shot 5 = 3321
+
| Blitz Shot 5 = 3315
| Blitz Shot 6 = 3321
+
| Blitz Shot 6 = 3315
| Blitz Shot 6 (Energy Bow) = 3321
+
| Blitz Shot 7 = 3315
 +
| Blitz Shot 8 = 3315
 +
| Blitz Shot 9 = 3315
 +
| Blitz Shot 9 (Energy Bow) = 3315
 
| Blizzard = 3525
 
| Blizzard = 3525
 
| Blizzard 2 = 3525
 
| Blizzard 2 = 3525
Line 366: Line 361:
 
| Bounding Escape 4 = 2151
 
| Bounding Escape 4 = 2151
 
| Bounding Escape 5 = 2151
 
| Bounding Escape 5 = 2151
 +
| Bounding Speed = 2151
 
| Bow Bash = 3312
 
| Bow Bash = 3312
 
| Bow Bash 2 = 3312
 
| Bow Bash 2 = 3312
Line 385: Line 381:
 
| Brambleskin 8 = 3483
 
| Brambleskin 8 = 3483
 
| Brambleskin 9 = 3483
 
| Brambleskin 9 = 3483
 +
| Breath Glyph = 3838
 +
| Breathe With Me = 3558
 +
| Breathe With Me = 3558
 +
| Breathe With Me = 3558
 
| Bruising Blow = 2241
 
| Bruising Blow = 2241
 
| Bruising Blow 2 = 2241
 
| Bruising Blow 2 = 2241
Line 594: Line 594:
 
| Cryogenic Freeze 2 = 3497
 
| Cryogenic Freeze 2 = 3497
 
| Cryogenic Freeze 3 = 3497
 
| Cryogenic Freeze 3 = 3497
 +
| Cud Speed = 2149
 
| Curseball = 3428
 
| Curseball = 3428
 
| Cuteness Overload = 2252
 
| Cuteness Overload = 2252
Line 875: Line 876:
 
| Entrancing Lullaby 5 = 3675
 
| Entrancing Lullaby 5 = 3675
 
| EventBossClaudiaSummon = 3485
 
| EventBossClaudiaSummon = 3485
 +
| Exhale, Exhale, Exhale = 3729
 
| Exhilarate = 3728
 
| Exhilarate = 3728
 
| Exhilarate 2 = 3728
 
| Exhilarate 2 = 3728
Line 908: Line 910:
 
| Fae Sword B = 3444
 
| Fae Sword B = 3444
 
| Fae Sword Kill = 3443
 
| Fae Sword Kill = 3443
 +
| Fae Tornado Opener = 3496
 
| Fae Tornado Opener = 3496
 
| Fae Tornado Opener = 3496
 +
| Fae Tornado Rage = 3496
 
| Fae Tornado Rage = 3496
 
| Fae Tornado Rage = 3496
 
| Fairy Chime 1 = 3762
 
| Fairy Chime 1 = 3762
Line 1,050: Line 1,054:
 
| Fireball Long = 3069
 
| Fireball Long = 3069
 
| Fireball Long = 3069
 
| Fireball Long = 3069
 +
| Fireworks Launcher = 3839
 
| First Aid = 2108
 
| First Aid = 2108
 
| First Aid 2 = 2108
 
| First Aid 2 = 2108
Line 1,101: Line 1,106:
 
| Free-Flutter 2 = 3793
 
| Free-Flutter 2 = 3793
 
| Free-Flutter 3 = 3793
 
| Free-Flutter 3 = 3793
| Free-Summon Skeletal Archer = 2199
 
| Free-Summon Skeletal Archer 2 = 2199
 
| Free-Summon Skeletal Archer 3 = 2199
 
| Free-Summon Skeletal Archer 4 = 2199
 
| Free-Summon Skeletal Archer 5 = 2199
 
| Free-Summon Skeletal Archer 6 = 2199
 
 
| Freeze Solid = 3505
 
| Freeze Solid = 3505
 
| Freeze Solid 2 = 3505
 
| Freeze Solid 2 = 3505
Line 1,219: Line 1,218:
 
| Goat Ram = 2130
 
| Goat Ram = 2130
 
| Goat Smite = 2152
 
| Goat Smite = 2152
 +
| Gobblejack's Rebuke = 2207
 
| Goblinic Restoration = 2108
 
| Goblinic Restoration = 2108
 
| Golem Explode = 2206
 
| Golem Explode = 2206
Line 1,789: Line 1,789:
 
| Mindspores = 3068
 
| Mindspores = 3068
 
| Mindspores = 3068
 
| Mindspores = 3068
 +
| MinotaurBossRageBoulder = 3472
 
| MinotaurBossRageClub = 3471
 
| MinotaurBossRageClub = 3471
 +
| MinotaurBossRageClubB = 3471
 
| MinotaurBoulder = 2209
 
| MinotaurBoulder = 2209
 
| MinotaurClub = 3472
 
| MinotaurClub = 3472
Line 1,839: Line 1,841:
 
| Moo of Determination 6 = 2210
 
| Moo of Determination 6 = 2210
 
| Moss Bone Repair = 2218
 
| Moss Bone Repair = 2218
 +
| Move Those Legs! = 3442
 
| Mudbath = 2232
 
| Mudbath = 2232
 
| Mudbath 2 = 2232
 
| Mudbath 2 = 2232
Line 2,017: Line 2,020:
 
| Patch Armor 8 = 2101
 
| Patch Armor 8 = 2101
 
| Patch Armor 9 = 2101
 
| Patch Armor 9 = 2101
 +
| Peck = 2129
 
| Peck = 2129
 
| Peck = 2129
 
| Pep Talk = 2116
 
| Pep Talk = 2116
Line 2,116: Line 2,120:
 
| Porcine Alertness 3 = 2255
 
| Porcine Alertness 3 = 2255
 
| Porcine Alertness 4 = 2255
 
| Porcine Alertness 4 = 2255
 +
| Porcine Speed = 2225
 
| Positive Attitude = 2222
 
| Positive Attitude = 2222
 
| Positive Attitude 2 = 2222
 
| Positive Attitude 2 = 2222
Line 2,997: Line 3,002:
 
| Summon Deer 4 = 2251
 
| Summon Deer 4 = 2251
 
| Summon Deer 5 = 2251
 
| Summon Deer 5 = 2251
 +
| Summon a Chicken = 5117
 
| Summon a Death on a Leash = 3810
 
| Summon a Death on a Leash = 3810
 
| Summon a Fae Dragon = 6398
 
| Summon a Fae Dragon = 6398
Line 3,205: Line 3,211:
 
| Training Golem Punch B = 2119
 
| Training Golem Punch B = 2119
 
| Training Golem Stun = 2105
 
| Training Golem Stun = 2105
 +
| Traumatic Gobble = 2207
 
| Treachery Trooper's Battle Cry = 3659
 
| Treachery Trooper's Battle Cry = 3659
 
| Treant Slash = 3472
 
| Treant Slash = 3472
Line 3,260: Line 3,267:
 
| Tundra Spikes 6 = 3500
 
| Tundra Spikes 6 = 3500
 
| Tundra Spikes 7 = 3500
 
| Tundra Spikes 7 = 3500
 +
| Turkey Bomb Darkness = 2207
 +
| Turkey Bomb Fire = 2207
 +
| Turkey Bomb Peck = 2207
 +
| Turkey Bomb Poison = 2207
 +
| Turkey Bomb Summon = 3485
 
| TurretCrystalZap = 3070
 
| TurretCrystalZap = 3070
 
| TurretCrystalZap2 = 3070
 
| TurretCrystalZap2 = 3070
Line 3,405: Line 3,417:
 
| Wild Endurance 5 = 3469
 
| Wild Endurance 5 = 3469
 
| Wild Endurance 6 = 3469
 
| Wild Endurance 6 = 3469
 +
| Wildebeest Bash = 3404
 +
| Wildebeest Rage = 3404
 +
| Wildebeest Trample = 3404
 
| Wind Strike = 2128
 
| Wind Strike = 2128
 
| Wind Strike 2 = 2128
 
| Wind Strike 2 = 2128
Line 3,499: Line 3,514:
 
}}
 
}}
 
}}.png  
 
}}.png  
| http://cdn.projectgorgon.com/v357/icons/icon_.png <!-- result when no match is found, will be #replaced -->
+
| http://cdn.projectgorgon.com/v374/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 13:57, 18 November 2022

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}}

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
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.)