Wynncraft Wiki
m (Categorised)
m (Bot: Removed unwanted line breaks in templates)
 
Line 15: Line 15:
 
|#default={{#if:{{#ifexpr:{{{1}}}}}|4|{{{1}}}}}
 
|#default={{#if:{{#ifexpr:{{{1}}}}}|4|{{{1}}}}}
 
}}
 
}}
<noinclude>{{GCIcon/pos/doc}}</noinclude>
+
<noinclude>{{GCIcon/pos/doc}}[[Category:Templates]][[Category:Icon_templates]]</noinclude>
<noinclude>[[category:Templates]][[category:Icon_templates]]</noinclude>
 

Latest revision as of 16:56, 20 November 2017

4

Description

GCIcon/pos is a support template for the GCIcon 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 4 (the last icon on the grid).

Usage

{{WynnIcon/pos|itemname}}

Examples

Usage Returns
{{GCIcon/pos|2}} 2
{{GCIcon/pos|330}} 2
{{GCIcon/pos|330GC}} 2
{{GCIcon/pos|900GC}} 3
{{GCIcon/pos|unrecognised_text_here}} 4