Template:Attribute icon: Difference between revisions
mNo edit summary |
m Adds OOC fast swim boost |
||
| Line 1: | Line 1: | ||
{{ #if: {{{1|}}} | | {{ #if: {{{1|}}} | | ||
{{ #replace: http://cdn.projectgorgon.com/ | {{ #replace: http://cdn.projectgorgon.com/v335/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 1,188: | Line 1,188: | ||
| NONCOMBAT_REGEN_POWER_MOD = 103 | | NONCOMBAT_REGEN_POWER_MOD = 103 | ||
| NONCOMBAT_SPRINT_BOOST = 108 | | NONCOMBAT_SPRINT_BOOST = 108 | ||
| NONCOMBAT_SWIM_FASTSPEED_BOOST = 108 | |||
| NPC_MOD_FAVORFROMGIFTS = 108 | | NPC_MOD_FAVORFROMGIFTS = 108 | ||
| NPC_MOD_FAVORFROMHANGOUTS = 108 | | NPC_MOD_FAVORFROMHANGOUTS = 108 | ||
Revision as of 00:23, 4 June 2020
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/v335/icons/icon_108.png | http://cdn.projectgorgon.com/v332/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/v335/icons/icon_108.png | http://cdn.projectgorgon.com/v332/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/v335/icons/icon_108.png | http://cdn.projectgorgon.com/v332/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}