• Home
  • Random
  • Log in
  • Settings
  • About Rhythm Doctor Wiki
  • Disclaimers
Rhythm Doctor Wiki

Template:Sprite

  • Language
  • Watch
  • View source
Revision as of 04:14, 29 May 2022 by Auburnsummer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template documentation[view] [edit] [history] [purge]

Sprite is a template which draws a single sprite from a spritesheet.

If a sprite is drawn for a one-off thing, you can use this template directly. Otherwise, it's better to create a separate template for the character, to reduce boilerplate. A list of character-specific sprite templates can be found here:

  • Template:Sprite/Ian
  • Template:Sprite/Paige
  • Template:Sprite/Farmer
  • Template:Sprite/Samurai
  • Template:Sprite/Edega
  • Template:Sprite/Janitor
  • Template:Sprite/Logan
  • Template:Sprite/Hailey
  • Template:Sprite/Insomniac
  • Template:Sprite/Cole
  • Template:Sprite/Nicole
  • Template:Sprite/NicoleB
  • Template:Sprite/RichardHugh
  • Template:Sprite/MrsStevenson
  • Template:Sprite/MrStevenson
  • Template:Sprite/Miner
  • Template:Sprite/Lucky
  • Template:Sprite/Mark
  • Template:Sprite/Lucia
  • Template:Sprite/Rin
  • Template:Sprite/Buro
  • Template:Sprite/Marija
  • Template:Sprite/Sophia
  • Template:Sprite/Lune

Arguments

Arguments for Template:Sprite
Argument Required? Description
ratio No A scale factor to apply to the sprite. 1 = leave as is.
sheetWidth Yes The width of the source spritesheet, in pixels.
sheetHeight Yes The height of the source spritesheet, in pixels.
noOfRows Yes Number of rows in the spritesheet
noOfColumns Yes Number of columns in the spritesheet
offsetX No If sprites are not centered in each "cell" of the spritesheet, you can use this value to adjust. Otherwise, leave at 0.
offsetY No If sprites are not centered in each "cell" of the spritesheet, you can use this value to adjust. Otherwise, leave at 0.
row Yes The index of the row to display. This is 1-indexed, so 1 is the first row.
col Yes The index of the col to display. This is also 1-indexed.
image Yes The image to use as the spritesheet. e.g. File:IanSpriteS.png

Examples

I am some text after the sprite

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.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://wiki.rhythm.cafe/index.php?title=Template:Sprite&oldid=674"
View edit history of this page.

Languages

    This page is not available in other languages.

    Rhythm Doctor Wiki
    • This page was last edited on 29 May 2022, at 04:14.
    • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
    • Privacy policy
    • About Rhythm Doctor Wiki
    • Disclaimers
    • Desktop