Wynncraft Wiki
m
Pcjbot (talk | contribs)
m
 
Line 9: Line 9:
   
 
==Usage==
 
==Usage==
<tt><nowiki>{{</nowiki>WynnIcon/pos|''itemname''<nowiki>}}</nowiki></tt>
+
<code><nowiki>{{</nowiki>WynnIcon/pos|''itemname''<nowiki>}}</nowiki></code>
   
 
==Examples==
 
==Examples==
Line 16: Line 16:
 
! Returns
 
! Returns
 
|-
 
|-
| <tt><nowiki>{{</nowiki>WynnIcon/pos&#124;Earth Powder IV<nowiki>}}</nowiki></tt>
+
| <code><nowiki>{{</nowiki>WynnIcon/pos&#124;Earth Powder IV<nowiki>}}</nowiki></code>
 
| {{WynnIcon/pos|Earth Powder IV}}
 
| {{WynnIcon/pos|Earth Powder IV}}
 
|-
 
|-
| <tt><nowiki>{{</nowiki>WynnIcon/pos&#124;Yahya's Stained Bowl<nowiki>}}</nowiki></tt>
+
| <code><nowiki>{{</nowiki>WynnIcon/pos&#124;Yahya's Stained Bowl<nowiki>}}</nowiki></code>
 
| {{WynnIcon/pos|Yahya's Stained Bowl}}
 
| {{WynnIcon/pos|Yahya's Stained Bowl}}
 
|-
 
|-
| <tt><nowiki>{{</nowiki>WynnIcon/pos&#124;Quest Book<nowiki>}}</nowiki></tt>
+
| <code><nowiki>{{</nowiki>WynnIcon/pos&#124;Quest Book<nowiki>}}</nowiki></code>
 
| {{WynnIcon/pos|Quest Book}}
 
| {{WynnIcon/pos|Quest Book}}
 
|-
 
|-
| <tt><nowiki>{{</nowiki>WynnIcon/pos&#124;spawn chicken<nowiki>}}</nowiki></tt>
+
| <code><nowiki>{{</nowiki>WynnIcon/pos&#124;spawn chicken<nowiki>}}</nowiki></code>
 
| {{WynnIcon/pos|spawn chicken}}
 
| {{WynnIcon/pos|spawn chicken}}
 
|-
 
|-
| <tt><nowiki>{{</nowiki>WynnIcon/pos&#124;unrecognised_text_here<nowiki>}}</nowiki></tt>
+
| <code><nowiki>{{</nowiki>WynnIcon/pos&#124;unrecognised_text_here<nowiki>}}</nowiki></code>
 
| {{WynnIcon/pos|unrecognised_text_here}}
 
| {{WynnIcon/pos|unrecognised_text_here}}
 
|}
 
|}

Latest revision as of 17:18, 26 November 2018

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).

The parameter should be spelled naturally, i.e. with spaces between words. Capitalization does not matter.

Usage

{{WynnIcon/pos|itemname}}

Examples

Usage Returns
{{WynnIcon/pos|Earth Powder IV}} 2
{{WynnIcon/pos|Yahya's Stained Bowl}} 400
{{WynnIcon/pos|Quest Book}} 15
{{WynnIcon/pos|spawn chicken}} 400
{{WynnIcon/pos|unrecognised_text_here}} 400