Mastergalen (talk | contribs) m (1 revision) |
Mastergalen (talk | contribs) m (1 revision) |
(No difference)
|
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.
{{Sprite |pos=1 |align=text-top |image=ResourceCSS.png |link=Brick |size=32 |sheetheight=864 |sheetwidth=576 }}
gives: File:ResourceCSS.png
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 |
image |
Sprite sheet image, without prefix | BlockCSS.png |
link |
Create a link to this page | None |
size |
Size of each sprite in pixels, width and height | 16 |
sheetheight |
Height of the whole sheet in pixels, must be multiple of size |
360 |
sheetwidth |
Width of the whole sheet in pixels, must be multiple of size |
256 |
The above documentation is transcluded from Template:Sprite/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.