Template:Attribute icon: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
AllyBot (talk | contribs)
Bot added info for game version v341, bot version 106. Contact User:Alleryn for issues concerning this bot edit.
Alleryn (talk | contribs)
mNo edit summary
Line 1,530: Line 1,530:
| WIND_INSTRUMENT_COMPETENCE = 108
| WIND_INSTRUMENT_COMPETENCE = 108
| WORKORDER_COIN_REWARD_MOD = 108
| WORKORDER_COIN_REWARD_MOD = 108
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Attribute not found</span> }}
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Attribute not found</span> }}
}}.png |  
}}.png |  

Revision as of 19:18, 15 December 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/v341/icons/icon_108.png | http://cdn.projectgorgon.com/v341/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/v341/icons/icon_108.png | http://cdn.projectgorgon.com/v341/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/v341/icons/icon_108.png | http://cdn.projectgorgon.com/v341/icons/icon_Error: Attribute not found.png | Error: Attribute not found }}