Template:WynnIcon2/doc

From Wynncraft Wiki
Jump to navigation Jump to search
Template-info.svg Documentation

Description

This template is an extension to the older WynnIcon template containing new and updated interface sprites as of Version 2.1. It allows the quick and easy insertion of a Wynncraft icon onto a page just by specifying its 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. The expected spelling is the natural spelling of the item with spaces between words. The capitalization doesn't matter.

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

This template uses the following sprite grid. Currently, slots 1-145 are occupied and 146-255 are blank, to be used by new icons that may be added in the future. Slot 256 is reserved for the fallback "unknown icon" sprite.

WynnIcon2 Spritesheet

Usage

{{WynnIcon2
| itemName *
| align =
| link =
}}


Argument Description Default Value
1 * The item name or position number of the intended sprite unknown sprite
align Change the HTML vertical alignment of the sprite middle
link The page name for the sprite to link to when clicked


Examples

Usage Returns
{{WynnIcon2|56}}
{{WynnIcon2|unrecognised_text_here}}
{{WynnIcon2|up}}

Support Templates

See also Template:WynnIcon, Template:WeaponIcon, Template:ArmourIcon, Template:AccessoryIcon, and Template:ProfessionIcon.

Template Description
WynnIcon2/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

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.