Join The Fan Lab, a private Fandom research community for users in the US and UK where you will be asked to share your opinions on all things gaming and entertainment! Click here to see if you qualify

Template:GCIcon

From Wynncraft Wiki
Jump to: navigation, search

Description[edit source]

The GCIcon template allows the quick and easy insertion of a GC 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[edit source]

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... Note that when editing a page, the 'Preview' will display with the latest version of the image, even when the page doesn't.

Sprite Grid[edit source]

This template uses the following sprite grid:

GCIcon Sprites

Usage[edit source]

{{GCIcon|itemname}}
{{GCIcon|position_number}}

Examples[edit source]

Usage Returns
{{GCIcon|100}}
{{GCIcon|100GC}}
{{GCIcon|1}}
{{GCIcon|330GC}}
{{GCIcon|900GC}}
{{GCIcon|1600GC}}
{{GCIcon|unrecognised_text_here}}

Support Templates[edit source]

Template Description
GCIcon/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
FileUrl Allows the sprite grid to be used in CSS