Template:Attribute icon: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
AllybotV2 (talk | contribs)
Bot added info for game version v426, bot version 118. Contact User:Shupitsu for issues concerning this bot edit.
AllybotV2 (talk | contribs)
Bot added info for game version v427, bot version 119 . Contact User:Shupitsu for issues concerning this bot edit.
Line 1: Line 1:
<noinclude>
<noinclude>
<!-- v426 -->
<!-- v427 -->
<!-- This section has been added automatically by a bot. Please contact [[user:Shupitsu]] if you believe this section is in error. -->
<!-- This section has been added automatically by a bot. Please contact [[user:Shupitsu]] if you believe this section is in error. -->
</noinclude>{{ #if: {{{1|}}} |  
</noinclude>{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v426/icons/icon_{{ #switch: {{{1|None}}}
{{ #replace: http://cdn.projectgorgon.com/v427/icons/icon_{{ #switch: {{{1|None}}}
| ABILITYDEBUFF_BOOST_MARKWEAKNESS = 3934
| ABILITYDEBUFF_BOOST_MARKWEAKNESS = 3934
| ABILITY_AMMOSTICK_DELTA_KNIFE = 108
| ABILITY_AMMOSTICK_DELTA_KNIFE = 108
| ABILITY_AOE_DELTA_DELERIUM = 3484
| ABILITY_AOE_DELTA_ECLIPSEOFSHADOWS = 3913
| ABILITY_AOE_DELTA_ECLIPSEOFSHADOWS = 3913
| ABILITY_AOE_DELTA_RIPPLEOFAMNESIA = 3906
| ABILITY_AOE_DELTA_RIPPLEOFAMNESIA = 3906
Line 135: Line 136:
| ABILITY_RAGE_DELTA_SYSTEMSHOCK = 3070
| ABILITY_RAGE_DELTA_SYSTEMSHOCK = 3070
| ABILITY_RAGE_MOD_ACIDARROW = 3302
| ABILITY_RAGE_MOD_ACIDARROW = 3302
| ABILITY_RAGE_MOD_APPREHEND = 3768
| ABILITY_RAGE_MOD_ASTRALSTRIKE = 3782
| ABILITY_RAGE_MOD_ASTRALSTRIKE = 3782
| ABILITY_RAGE_MOD_CASTIGATE = 3727
| ABILITY_RAGE_MOD_CASTIGATE = 3727
Line 154: Line 156:
| ABILITY_RANGE_DELTA_DAMPEN = 3840
| ABILITY_RANGE_DELTA_DAMPEN = 3840
| ABILITY_RANGE_DELTA_DEATHSCREAM = 3542
| ABILITY_RANGE_DELTA_DEATHSCREAM = 3542
| ABILITY_RANGE_DELTA_DELERIUM = 3484
| ABILITY_RANGE_DELTA_DOMINATE = 3905
| ABILITY_RANGE_DELTA_DOMINATE = 3905
| ABILITY_RANGE_DELTA_ECLIPSEOFSHADOWS = 3913
| ABILITY_RANGE_DELTA_ECLIPSEOFSHADOWS = 3913
Line 191: Line 194:
| ABILITY_RESETTIME_DELTA_CAUSETERROR = 2104
| ABILITY_RESETTIME_DELTA_CAUSETERROR = 2104
| ABILITY_RESETTIME_DELTA_CHILL = 3492
| ABILITY_RESETTIME_DELTA_CHILL = 3492
| ABILITY_RESETTIME_DELTA_CLOUDSIGHT = 3485
| ABILITY_RESETTIME_DELTA_CLOUDTRICK = 3851
| ABILITY_RESETTIME_DELTA_CLOUDTRICK = 3851
| ABILITY_RESETTIME_DELTA_COMBATREFRESH = 108
| ABILITY_RESETTIME_DELTA_COMBATREFRESH = 108
Line 379: Line 383:
| BOOST_ABILITYDOT_AGONIZE = 3626
| BOOST_ABILITYDOT_AGONIZE = 3626
| BOOST_ABILITYDOT_AIMEDSHOT = 3315
| BOOST_ABILITYDOT_AIMEDSHOT = 3315
| BOOST_ABILITYDOT_APPREHEND = 3768
| BOOST_ABILITYDOT_ARCHERYPOISONCRIT = 108
| BOOST_ABILITYDOT_ARCHERYPOISONCRIT = 108
| BOOST_ABILITYDOT_ASTRALSTRIKE = 3782
| BOOST_ABILITYDOT_ASTRALSTRIKE = 3782
Line 387: Line 392:
| BOOST_ABILITYDOT_BLURCUT = 3592
| BOOST_ABILITYDOT_BLURCUT = 3592
| BOOST_ABILITYDOT_BOMB = 108
| BOOST_ABILITYDOT_BOMB = 108
| BOOST_ABILITYDOT_BURST_NATURE = 108
| BOOST_ABILITYDOT_CALEFACTION = 3069
| BOOST_ABILITYDOT_CALEFACTION = 3069
| BOOST_ABILITYDOT_CLAWBARRAGE = 3487
| BOOST_ABILITYDOT_CLAWBARRAGE = 3487
Line 399: Line 405:
| BOOST_ABILITYDOT_DEBILITATINGBLOW = 3046
| BOOST_ABILITYDOT_DEBILITATINGBLOW = 3046
| BOOST_ABILITYDOT_DEERKICK_EGGS = 2152
| BOOST_ABILITYDOT_DEERKICK_EGGS = 2152
| BOOST_ABILITYDOT_DELERIUM = 3484
| BOOST_ABILITYDOT_DELUGE = 3842
| BOOST_ABILITYDOT_DELUGE = 3842
| BOOST_ABILITYDOT_DIMENSIONALSNARE = 3802
| BOOST_ABILITYDOT_DIMENSIONALSNARE = 3802
Line 435: Line 442:
| BOOST_ABILITYDOT_POISONARROW = 3301
| BOOST_ABILITYDOT_POISONARROW = 3301
| BOOST_ABILITYDOT_PRIVACYFIELD = 3775
| BOOST_ABILITYDOT_PRIVACYFIELD = 3775
| BOOST_ABILITYDOT_PROJECTILE_POISON = 108
| BOOST_ABILITYDOT_PROVOKEUNDEAD = 2237
| BOOST_ABILITYDOT_PROVOKEUNDEAD = 2237
| BOOST_ABILITYDOT_REDIRECT = 2188
| BOOST_ABILITYDOT_REDIRECT = 2188
Line 1,802: Line 1,810:
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Attribute not found</span> }}
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Attribute not found</span> }}
}}.png |  
}}.png |  
http://cdn.projectgorgon.com/v426/icons/icon_<span style="color:red">Error: Attribute not found</span>.png |  
http://cdn.projectgorgon.com/v427/icons/icon_<span style="color:red">Error: Attribute not found</span>.png |  
<span style="color:red">Error: Attribute not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
<span style="color:red">Error: Attribute not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
{{Attribute icon/Explanation}}
{{Attribute icon/Explanation}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Revision as of 11:10, 9 May 2025

Description

This accepts an Attribute name as input and returns the in-game icon. Be aware that Attribute icons have various sizes, and you can use CSS to easily resize them. 99% of the time, you'll want 32x32. If you do NEED 64x64, remember that some icons are not inherently that big so you'll lose image quality. See the Examples section below.

Syntax

{{Attribute icon|<name>}}

Parameters

<name>
The name of the Attribute. It must match exactly what the Attributes json uses. NOT the Label.

Examples

Basic Use

{{Attribute icon|ABILITY_AMMOSTICK_DELTA_KNIFE}}

{{ #replace: http://cdn.projectgorgon.com/v427/icons/icon_108.png | http://cdn.projectgorgon.com/v427/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}


Forcing 32x32 size

<span class="extimage32px">{{Attribute icon|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>

{{ #replace: http://cdn.projectgorgon.com/v427/icons/icon_108.png | http://cdn.projectgorgon.com/v427/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}


Forcing 64x64 size

<span class="extimage64px">{{Attribute icon|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>

{{ #replace: http://cdn.projectgorgon.com/v427/icons/icon_108.png | http://cdn.projectgorgon.com/v427/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}