24,527
ARTICLES
ON THIS WIKI
ON THIS WIKI
Template:Sprite
Template documentation (for the above template, sometimes hidden or invisible)
Contents
This template is written in Lua. The full source code can be found at Module:Sprite. |
This template is used to cut out a sprite from a sprite sheet.
Syntax[edit]
{{Sprite|<params>}}
Parameters[edit]
-
image
: The sprite sheet image filename. -
link
: The link for the image. (optional) -
title
: The title for the image. (optional) -
size
: The sprite size. (default:16
) -
sheetsize
: The size of the sprite sheet. (default:256
) -
pos
: The position of the selected sprite, counted from left to right and top to bottom, starting at 1. (default:1
) -
align
: The alignment of the image. (default:middle
)
Examples[edit]
{{Sprite |image=GridNumbersCSS.png |size=16 |sheetsize=64 |pos=5 }}
gives...
Twitter Feed
Warning: file_get_contents(/srv/common/): failed to open stream: No such file or directory in /var/www/html/skins/MMWiki/SkinMMWiki.php on line 392
Discussion
To discuss the topics on this wiki, you can visit our community forums!