Template:GCIcon/pos

From Wynncraft Wiki
Jump to: navigation, search

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