Jamdog@legacy41979758 (talk | contribs) (→NOTE: Added info about updates) |
Jamdog@legacy41979758 (talk | contribs) (→Examples: Adjusted pos value, as it has changed for this item) |
||
Line 30: | Line 30: | ||
| {{WynnIcon|diamond_tunic}} |
| {{WynnIcon|diamond_tunic}} |
||
|- |
|- |
||
− | | <tt><nowiki>{{</nowiki>WynnIcon| |
+ | | <tt><nowiki>{{</nowiki>WynnIcon|27<nowiki>}}</nowiki></tt> |
− | | {{WynnIcon| |
+ | | {{WynnIcon|27}} |
|- |
|- |
||
| <tt><nowiki>{{</nowiki>WynnIcon|bow<nowiki>}}</nowiki></tt> |
| <tt><nowiki>{{</nowiki>WynnIcon|bow<nowiki>}}</nowiki></tt> |
||
Line 51: | Line 51: | ||
| {{WynnIcon|unrecognised_text_here}} |
| {{WynnIcon|unrecognised_text_here}} |
||
|} |
|} |
||
− | |||
==Support Templates== |
==Support Templates== |
Revision as of 20:57, 6 November 2014
Description
The WynnIcon template is a powerful tool for wiki editors. It allows the quick and easy insertion of an WynnCraft icon onto a page just by specifying it's name.
If a name doesn't work, you can specify the position number, but this is not recommended, as the image may change. It is better to look up your item in the WynnIcon/pos list, and check the spelling of the name.
NOTE
Following any update to the CSS icon grid, it may take a up to a couple of days for the cached image to become updated, which can cause errors on pages that use this, especially if the icon grid size was changed. If you see errors, please be patient, and they should resolve themselves in a day or two...
Sprite Grid
This template uses the following sprite grid:
Usage
{{WynnIcon|itemname}}
{{WynnIcon|position_number}}
Examples
Usage | Returns |
---|---|
{{WynnIcon|diamondtunic}} | |
{{WynnIcon|Diamond Tunic}} | |
{{WynnIcon|diamond_tunic}} | |
{{WynnIcon|27}} | |
{{WynnIcon|bow}} | |
{{WynnIcon|Ghost Cap}} | |
{{WynnIcon|Mashed Insect}} | |
{{WynnIcon|EB}} | |
{{WynnIcon|le}} | |
{{WynnIcon|unrecognised_text_here}} |
Support Templates
Template | Description |
---|---|
WynnIcon/pos | Takes the item name, and returns it's position value on the grid. |
Sprite | Outputs the actual sprite image |
Sprite/pos | Converts the position number to co-ordinates and outputs them |