Open main menu

Project: Gorgon Wiki β

Template:Attribute

Revision as of 12:33, 7 August 2019 by BetaNotus (talk | contribs)
Error: Attribute not found Error: Attribute not found
 
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Description

Use this template whenever you want to display an Attribute from the Attributes JSON file (Treasure effect on an item)
If you only want to display an Attribute icon, or use a larger image of the icon, use the Attribute icon template.
If you only want to display an Attribute Label (what the attribute looks like in-game), use the Attribute label template.

Syntax

Type {{Attribute|name|bonus}} where you want the Attribute icon, label, and modifier to display.

Parameters

name
The name of the Attribute as listed in the Attributes json.
bonus
The modifier found on the item.
"{MAX_ARMOR}{15}", (From Basic Boots in items json) = {{Attribute|MAX_ARMOR|+15}}

Sample output

Basic usage
Code = Output
{{Attribute|BOOST_ABILITY_SURGECUT|+5}}
icon_3601.png Surge Cut Damage
 
+5
Code = Output
{{Attribute|MAX_ARMOR|+15}}
icon_101.png Max Armor
 
+15

Notes

Do not place a * or : before the Attributes template. If you need to display a list of attribute, use a <br> tag after the first call of the template.
The above text is transcluded from Template:Attribute/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Attribute/doc. (View all subpages of this page.)