Template:ItemSprite/doc

From TibiaCraft
Revision as of 19:23, 4 October 2025 by Root (talk | contribs) (Created page with "{{documentation header}} {{lua|SpriteFile}} This template displays an item sprite from the following naming scheme: <code>File:ItemSprite_<id>.png</code> {{Sprite/Parameters}} == Examples == {| class="wikitable" ! Code ! Result |- | <code><nowiki>{{ItemSprite|iron-helmet}}</nowiki></code> || {{ItemSprite|iron-helmet}} |- | <code><nowiki>{{ItemSprite|apple}}</nowiki></code> || {{ItemSprite|apple}} |- | <code><nowiki>{{ItemSprite|diamond-pickaxe}}</nowiki></code> || {{I...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
This is the documentation page. It should be transcluded into Template:ItemSprite. See Template:Documentation for more information.
This template uses Module:SpriteFile, a script written in Lua.

This template displays an item sprite from the following naming scheme: File:ItemSprite_<id>.png

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.

Examples

Code Result
{{ItemSprite|iron-helmet}} ItemSprite iron-helmet.png: Sprite image for iron-helmet in Minecraft
{{ItemSprite|apple}} ItemSprite apple.png: Sprite image for apple in Minecraft
{{ItemSprite|diamond-pickaxe}} ItemSprite diamond-pickaxe.png: Sprite image for diamond-pickaxe in Minecraft
{{ItemSprite|compass}} ItemSprite compass.png: Sprite image for compass in Minecraft

Full list

Here is a full list of items:

See also

Minecraft
Minecraft (legacy)

Minecraft Dungeons

Minecraft Legends

Minecraft Story Mode

Franchise

Other