Actions

Template

Difference between revisions of "SpriteImage"

From Sonic Retro

Line 7: Line 7:
 
|scale={{#if: {{{2|}}} | {{{2}}} | 1 }}
 
|scale={{#if: {{{2|}}} | {{{2}}} | 1 }}
 
|sprite=yes
 
|sprite=yes
 +
|nolink={{{nolink|}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
'''Note: This is [[sega:Template:Sprite|Template:Sprite]] on Sega Retro.'''
 
'''Note: This is [[sega:Template:Sprite|Template:Sprite]] on Sega Retro.'''

Revision as of 14:59, 9 January 2021

Note: This is Template:Sprite on Sega Retro.

Display a sprite with optional scaling.

Usage

{{SpriteImage|image name.png|f}}

  • f = scaling factor (i.e. 2 is double size).

Cropping sprites

If using a spritesheet, add the following parameters to crop a single sprite:

{{SpriteImage|image name.png|f
| crop_width=
| crop_height=
| crop_x=
| crop_y=
}}