Difference between revisions of "Template:Attribute icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Added Loot_Chance_* Icon 108)
m (Added MOUNTED_TOP_SPEED_* attributes icons)
Line 1,381: Line 1,381:
 
| MONSTER_CRIT_CHANCE = 108
 
| MONSTER_CRIT_CHANCE = 108
 
| MOVEMENT_SPEED = 108
 
| MOVEMENT_SPEED = 108
 +
| MOUNTED_TOP_SPEED_LAND = 108
 +
| MOUNTED_TOP_SPEED_WATER_SHALLOW = 108
 +
| MOUNTED_TOP_SPEED_WATER_DEEP = 108
 
| NECROMANCY_COST_DELTA = 108
 
| NECROMANCY_COST_DELTA = 108
 
| NECROMANCY_COST_MOD = 108
 
| NECROMANCY_COST_MOD = 108

Revision as of 16:35, 17 February 2023

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