Template:Sprite
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= |align= |image= |link= |size= |format= }}
Parameter | Function | Default value |
---|---|---|
pos |
Position index of the sprite, depends on size and format (left to right, starting at top-left sprite) |
1 |
align |
Sets the vertical alignment of the image to the text. | middle |
image |
Sprite sheet image, without prefix | BonusCSS.gif |
link |
Makes a link to this page | None |
size |
Size of each sprite in pixels, width and height | 64 |
format |
Width of the whole sheet in pixels. Must be multiple of size |
384 |