731
edits
Auburnsummer (talk | contribs) (Created page with "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. == Arguments == {| class="wikitable" |+ Caption text |- ! Argument !! Required? !! Description |- | ratio || No || A scale factor to apply to the sprite. 1 = leave as is. |- | sheetWidth || Yes || The width of the source sprites...") |
m (Added MD characters' sprites to the list) |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
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. | 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 == | == Arguments == | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ Arguments for Template:Sprite | ||
|- | |- | ||
! Argument !! Required? !! Description | ! Argument !! Required? !! Description | ||
Line 28: | Line 48: | ||
| col || Yes || The index of the col to display. This is also 1-indexed. | | col || Yes || The index of the col to display. This is also 1-indexed. | ||
|- | |- | ||
| image || Yes || The image to use as the spritesheet. | | 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 |
edits