Szablon:Sprite

Wersja z dnia 18:35, 20 sty 2011 autorstwa Lewandowski (dyskusja | edycje) (Utworzył nową stronę „<includeonly><div style="position: relative; height: {{{size|16}}}px; width: {{{size|16}}}px; overflow: hidden; display: inline-block; vertical-align: middle;"><div sty...”)
(różn.) ← poprzednia wersja | przejdź do aktualnej wersji (różn.) | następna wersja → (różn.)

Documentation

These usage notes will not be included in articles bearing this template.

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.

Example:


Parameter Function Default value
pos Position index of the sprite, depends on spritesize and sheetsize (left to right, starting at top-left sprite) 1
image Sprite sheet image, without prefix File:BlockCSS.png
link Create a link to this page None
size Size of each sprite in pixels, width and height 16
sheetsize Size of the whole sheet in pixels, width and height, must be multiple of size 256