Wynncraft Wiki
(→‎Description: made a link back to parent template)
m (→‎Description: Minor fix for number of icons)
Line 4: Line 4:
 
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.
   
By default, this template will return 144 (the last icon on the grid).
+
By default, this template will return 196 (the last icon on the grid).
   
 
==Usage==
 
==Usage==

Revision as of 02:05, 17 November 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 196 (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