Template:Attribute icon: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Litrevan (talk | contribs)
m BLITZSHOT 3321 to 3310 to match Ability Icon. Left BASICSHOT, since it's still in CDN
Litrevan (talk | contribs)
m Added Loot_Chance_* Icon 108
Line 919: Line 919:
| KNIFE_COST_MOD = 108
| KNIFE_COST_MOD = 108
| KNOCKBACK_POTENCY_MOD = 108
| KNOCKBACK_POTENCY_MOD = 108
| LOOT_BOOST_CHANCE_COMMON = 108
| LOOT_BOOST_CHANCE_EPIC = 108
| LOOT_BOOST_CHANCE_EXCEPTIONAL = 108
| LOOT_BOOST_CHANCE_JUNK = 108
| LOOT_BOOST_CHANCE_LEGENDARY = 108
| LOOT_BOOST_CHANCE_RARE = 108
| LOOT_BOOST_CHANCE_UNCOMMON = 108
| LOOT_CHANCE_BONUS_GARDENING = 108
| LOOT_CHANCE_BONUS_GARDENING = 108
| LOOT_CHANCE_EXTRA_BASICWOOD = 108
| LOOT_CHANCE_EXTRA_BASICWOOD = 108

Revision as of 23:13, 13 February 2023

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/v377/icons/icon_108.png | http://cdn.projectgorgon.com/v377/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/v377/icons/icon_108.png | http://cdn.projectgorgon.com/v377/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/v377/icons/icon_108.png | http://cdn.projectgorgon.com/v377/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}