Difference between revisions of "Template:Attribute icon"

From Project: Gorgon Wiki
Jump to: navigation, search
(Bot added info for game version v342, bot version 107. Contact User:Alleryn for issues concerning this bot edit.)
(Bot added info for game version v345, bot version 110. Contact User:Alleryn for issues concerning this bot edit.)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<!-- v342 -->
+
<!-- v345 -->
 
<!-- This section has been added automatically by a bot. Please contact [[User:Alleryn]] (check page history for link to user page with contact info) if you believe this section is in error. -->
 
<!-- This section has been added automatically by a bot. Please contact [[User:Alleryn]] (check page history for link to user page with contact info) if you believe this section is in error. -->
 
</noinclude>{{ #if: {{{1|}}} |  
 
</noinclude>{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v342/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v345/icons/icon_{{ #switch: {{{1|None}}}
 
| ABILITY_AMMOSTICK_DELTA_KNIFE = 108
 
| ABILITY_AMMOSTICK_DELTA_KNIFE = 108
 
| ABILITY_CONSUMECHANCE_MOD_CARROTPOWER = 3697
 
| ABILITY_CONSUMECHANCE_MOD_CARROTPOWER = 3697
Line 51: Line 51:
 
| ABILITY_COST_DELTA_LONGEAR = 3696
 
| ABILITY_COST_DELTA_LONGEAR = 3696
 
| ABILITY_COST_DELTA_MAJORHEAL = 108
 
| ABILITY_COST_DELTA_MAJORHEAL = 108
 +
| ABILITY_COST_DELTA_MAMBASTRIKE = 2240
 
| ABILITY_COST_DELTA_MANGLINGSHOT = 3630
 
| ABILITY_COST_DELTA_MANGLINGSHOT = 3630
 
| ABILITY_COST_DELTA_MINORHEAL = 108
 
| ABILITY_COST_DELTA_MINORHEAL = 108
Line 303: Line 304:
 
| BOOST_ABILITYDOT_BOMB = 108
 
| BOOST_ABILITYDOT_BOMB = 108
 
| BOOST_ABILITYDOT_CALEFACTION = 3069
 
| BOOST_ABILITYDOT_CALEFACTION = 3069
 +
| BOOST_ABILITYDOT_CLAWBARRAGE = 3487
 
| BOOST_ABILITYDOT_CLOBBERINGHOOF = 3464
 
| BOOST_ABILITYDOT_CLOBBERINGHOOF = 3464
 
| BOOST_ABILITYDOT_CLOUDSIGHT = 3485
 
| BOOST_ABILITYDOT_CLOUDSIGHT = 3485
Line 1,532: Line 1,534:
 
| #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/v342/icons/icon_<span style="color:red">Error: Attribute not found</span>.png |  
+
http://cdn.projectgorgon.com/v345/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 03:26, 25 May 2021

Item-icon-none.png

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

icon_108.png


Forcing 32x32 size

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

icon_108.png


Forcing 64x64 size

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

icon_108.png