Template:Sprite

From Growtopia
Revision as of 03:28, 10 September 2017 by >NekoPillow
Jump to navigationJump to search

Displays a sprite out of a spritesheet image. Used when a lot of small images are needed. Based on the Minecraft Wiki.

Examples

{{Sprite
|pos=1
|align=text-top
|image=ItemSprites.png
|link=Dirt
|size=32
|sheetsize=512
}}

gives: File:ItemSprites.png

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