Difference between revisions of "Template:Attribute label/Explanation"

From Project: Gorgon Wiki
Jump to: navigation, search
(Adding documentation.)
 
m
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
==Description==
 
==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.
+
This accepts an Attribute name as input and returns the in-game label.
 
 
 
==Syntax==
 
==Syntax==
 
<pre>
 
<pre>
Line 17: Line 16:
 
<pre>{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}</pre>
 
<pre>{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}</pre>
 
{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}
 
{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}
 
 
=== Forcing 32x32 size ===
 
<pre><span class="extimage32px">{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span></pre>
 
<span class="extimage32px">{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>
 
 
 
=== Forcing 64x64 size ===
 
<pre><span class="extimage64px">{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span></pre>
 
<span class="extimage64px">{{Attribute label|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>
 

Latest revision as of 12:47, 7 August 2019

Description

This accepts an Attribute name as input and returns the in-game label.

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