Template:InvSprite/doc

From Modded Wiki
Revision as of 17:14, 8 August 2015 by minecraft>Majr (Created page with "{{documentation header}} {{lua|Sprite2|data=InvSprite|data2=InvSprite/IDs}} thumb|The spritesheet. This template displays an inventory image. {{subst:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is the documentation page. It should be transcluded into Template:InvSprite. See Template:Documentation for more information.
This template uses Module:Sprite2, with data stored in Module:InvSprite and Module:InvSprite/IDs.
These scripts are written in Lua.
File:InvSprite.png
The spritesheet.

This template displays an inventory image.

Parameters

Name Usage
1= Sets the sprite. Spaces within this parameter are replaced with dashes and letters are made lowercase.
Value may be a name or a number, though names are preferred
link= Sets the link for the sprite and the optional text. If unset or set to none, no link is added
Supports both internal and external links
text= If set, the value is displayed as text after the sprite.

Example

{{InvSprite|Grass Block}}
Invicon Grass Block.png: Sprite image for Grass Block in Minecraft

Available images

Script error: No such module "sprite2".

See also

Minecraft
Minecraft (legacy)
Minecraft Dungeons
Minecraft Legends
Other