Difference between revisions of "Template:Attribute icon"
From Project: Gorgon Wiki
m (Added MOUNTED_TOP_SPEED_* attributes icons) |
m (Same for Saddlebags and Reins) |
||
Line 962: | Line 962: | ||
| MAX_RAGE = 104 | | MAX_RAGE = 104 | ||
| MAX_SIDEBAR_SLOTS = 108 | | MAX_SIDEBAR_SLOTS = 108 | ||
+ | | MAX_SADDLEBAG_VAULT_SIZE = 108 | ||
| MAX_STABLE_SLOTS = 108 | | MAX_STABLE_SLOTS = 108 | ||
| MAX_WARDEN_VAULT_SIZE = 108 | | MAX_WARDEN_VAULT_SIZE = 108 | ||
Line 1,429: | Line 1,430: | ||
| SHOP_LOG_DAYSKEPT = 108 | | SHOP_LOG_DAYSKEPT = 108 | ||
| SHOW_BODYHEAT_INDICATORS = 108 | | SHOW_BODYHEAT_INDICATORS = 108 | ||
+ | | SHOW_MOUNT_SPEED_INDICATORS = 108 | ||
| SKILL_COST_DELTA_CROSSBOW = 3647 | | SKILL_COST_DELTA_CROSSBOW = 3647 | ||
| SKILL_RESETTIME_DELTA_CROSSBOW = 3647 | | SKILL_RESETTIME_DELTA_CROSSBOW = 3647 |
Revision as of 16:27, 17 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}}
Forcing 32x32 size
<span class="extimage32px">{{Attribute icon|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>
Forcing 64x64 size
<span class="extimage64px">{{Attribute icon|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>