Wynncraft Wiki
(→‎Examples: Fixed parse errors in table)
(→‎Description: made a link back to parent template)
Line 1: Line 1:
 
==Description==
 
==Description==
WynnIcon/pos is a support template for the WynnIcon template.
+
WynnIcon/pos is a support template for the [[:Template:WynnIcon|WynnIcon]] template.
   
 
It's job is to simply convert the 'name' of an item into a valid position number on the Sprite Grid PNG.
 
It's job is to simply convert the 'name' of an item into a valid position number on the Sprite Grid PNG.

Revision as of 22:13, 31 August 2014

Description

WynnIcon/pos is a support template for the WynnIcon template.

It's job is to simply convert the 'name' of an item into a valid position number on the Sprite Grid PNG.

By default, this template will return 144 (the last icon on the grid).

Usage

{{WynnIcon/pos|itemname}}

Examples

Usage Returns
{{WynnIcon/pos|diamondchestplate}} 400
{{WynnIcon/pos|Diamond Chestplate}} 400
{{WynnIcon/pos|diamond_chestplate}} 400
{{WynnIcon/pos|bow}} 400
{{WynnIcon/pos|unrecognised_text_here}} 400