Template:Sprite

From Feed The Beast Wiki
Jump to: navigation, search
Template documentation (for the above template, sometimes hidden or invisible)
Lua Logo.svg 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...

GridNumbersCSS.png

Visit Template:Sprite/doc to change this text! (How does this work?)

Done making changes? Refresh this text! (Why?)