Module:Sprite/doc

From Feed The Beast Wiki
Jump to: navigation, search

This is the documentation page for Module:Sprite

Lua Logo.svg This is the Lua module for Template:Sprite. Below is the documentation for that template.

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