Template:Sprite: Difference between revisions

From Growtopia
Jump to navigationJump to search
>NekoPillow
No edit summary
>NekoPillow
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="growsprite {{{extra|}}}">{{#replace:{{filepath:{{{image|ItemSprites.png}}}}}|latest|latest/window-crop/width/{{{size|32}}}/x-offset/{{#expr:{{{pos|0}}} mod {{{rowlen|32}}} * {{{size|32}}}}}/y-offset/{{#expr:floor({{{pos|0}}}/{{{rowlen|32}}}) * {{{size|32}}}}}/window-width/{{{size|32}}}/window-height/{{{size|32}}}}}&fill=e</span></includeonly>
<includeonly>{{#invoke:Item|Sprite|{{{1}}}}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 14:59, 15 August 2019

Template Documentation [Edit] [History] [Purge]
This is the documentation of Template:Sprite.

Description:

Display the corresponding image of an item.

Usage:

{{Sprite|ItemName}}

Example: