Difference between revisions of "Template:Attribute icon"

From Project: Gorgon Wiki
Jump to: navigation, search
(Adding comments outside of a no include turns them into <p> tags that show up in the Attribute template causing weird gaps.)
m (added icon values for two new attributes)
Line 1: Line 1:
 
{{ #if: {{{1|}}} |  
 
{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v335/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v337/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 627: Line 627:
 
| BOOST_EXHILARATE_RECEIVER = 3728
 
| BOOST_EXHILARATE_RECEIVER = 3728
 
| BOOST_EXHILARATE_SENDER = 3728
 
| BOOST_EXHILARATE_SENDER = 3728
 +
| BOOST_FAEHOT_ARMOR_SENDER = 108
 
| BOOST_FIRE = 107
 
| BOOST_FIRE = 107
 
| BOOST_FIREWALL_SENDER = 2127
 
| BOOST_FIREWALL_SENDER = 2127
Line 1,277: Line 1,278:
 
| MOD_SKILL_SHIELD = 108
 
| MOD_SKILL_SHIELD = 108
 
| MOD_SKILL_SPIDER = 108
 
| MOD_SKILL_SPIDER = 108
 +
| MOD_SKILL_SPIRITFOX = 108
 
| MOD_SKILL_STAFF = 108
 
| MOD_SKILL_STAFF = 108
 
| MOD_SKILL_SWORD = 108
 
| MOD_SKILL_SWORD = 108

Revision as of 18:56, 11 September 2020

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