Open main menu
Home
Random
Log in
Settings
About Rhythm Doctor Wiki
Disclaimers
Rhythm Doctor Wiki
Search
Editing
Template:Sprite/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
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/Lucia]] * [[Template:Sprite/Rin]] * [[Template:Sprite/Buro]] * [[Template:Sprite/Marija]] == Arguments == {| class="wikitable" |+ 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. <code><nowiki>File:IanSpriteS.png</nowiki></code> |} == Examples == * {{Sprite |ratio=1.5 |sheetWidth=160 |sheetHeight=333 |noOfRows=9 |noOfColumns=5 |offsetY=2 |row=2 |col=3 |image=File:IanSpriteS.png |outline=blue }}I am some text after the sprite
Summary:
Please note that all contributions to Rhythm Doctor Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
RDWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Sprite
(
edit
)
Module:Sprite
(
edit
)