Wynncraft Wiki
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

This template creates a sprite from a sheet image. Commonly used when many small images are displayed on one page to reduce the total amount of HTTP connections.

Examples

{{Sprite
|pos=41
|align=text-top
|file=WynnIconCSS.png
|link=Adventurer's Armour
|size=30
|sheetsize=420
}}

gives:

Variables

Parameter Function Default value
pos Position index of the sprite, depends on size and sheetsize (left to right, starting at top-left sprite) 1
align Sets the vertical alignment of the image to the text. middle
file Sprite sheet image, without prefix WynnIconCSS.png
link Create a link to this page None
size Size of each sprite in pixels, width and height 30
sheetsize Size of the whole sheet in pixels, width and height, must be multiple of size 360
Advertisement