Open main menu

Project: Gorgon Wiki β

Changes

Template:Attribute/doc

1,079 bytes added, 13:25, 7 August 2019
Adding documentation. Now to fix bugs.
== 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 [[Template:Attribute icon|Attribute icon]] template.
:If you only want to display an Attribute Label (what the attribute looks like in-game), use the [[Template:Attribute label|Attribute label]] template.

== Syntax ==
:Type <nowiki>{{Attribute|name}}</nowiki> where you want the Attribute icon and label to display.

== Parameters ==
; name
: The name of the Attribute as listed in the Attributes json.

== Sample output ==
;Basic usage
:{| class="wikitable"
| Code
| {{=}}
| Output
|-
| {{tlc|Attribute|BOOST_ABILITY_SURGECUT}}
| &rArr;
| {{Attribute|BOOST_ABILITY_SURGECUT}}
|}
== Notes ==

<includeonly>
<!-- Categories/interwikis for the template itself -->
[[Category:Formatting templates|Item]]
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation itself -->
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>