Open main menu

Project: Gorgon Wiki β

Template:Attribute label/Explanation

< Template:Attribute label
Revision as of 11:46, 7 August 2019 by BetaNotus (talk | contribs) (Adding documentation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 label|<name>}}

Parameters

<name>
The name of the Attribute. It must match exactly what the Attributes json uses. NOT the Label.

Examples

Basic Use

{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}

Chance for Thrown Knives to Stick in Corpse


Forcing 32x32 size

<span class="extimage32px">{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>

Chance for Thrown Knives to Stick in Corpse


Forcing 64x64 size

<span class="extimage64px">{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>

Chance for Thrown Knives to Stick in Corpse