Template:InvSprite/doc: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
m interwiki
mNo edit summary
Line 15: Line 15:
|-
|-
| <code>link</code>
| <code>link</code>
| Sets the link for the image and the optional text. If unset or set to <code>none</code>, no link is added<br>Supports both internal and external links<br>
| Sets the link for the image and the optional text. If unset or set to <code>none</code>, no link is added.<br>Supports both internal and external links.
|-
|-
| <code>text</code>
| <code>text</code>
Line 25: Line 25:


== Example ==
== Example ==
<code><nowiki>{{InvSprite|Grass Block}}</nowiki></code><br>
{{t|InvSprite|Grass Block}}
 
{{InvSprite|Grass Block}}
{{InvSprite|Grass Block}}



Revision as of 13:06, 22 August 2020

This is the documentation page. It should be transcluded into Template:InvSprite. See Template:Documentation for more information.
This template uses Module:Sprite, with data stored in Module:InvSprite.
These scripts are written in Lua.
File:InvSprite.png
The spritesheet.

This template displays an inventory image.

Parameters

Name Usage
name Sets the image.
link Sets the link for the image 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 image.
scale Sets the scale of the image. If unset the default parameter is 1.

Example

{{InvSprite|Grass Block}}

Invicon Grass Block.png: Sprite image for Grass Block in Minecraft

Available images

Lua error in package.lua at line 80: module 'Module:InvSprite' not found.

Animated icons

See Category:Animated inventory icons for a list of animated icons. They can be used like the static icons above, just omit the Invslot prefix and extension from the file name.

See also

Minecraft
Minecraft (legacy)
Minecraft Dungeons
Minecraft Legends
Other


de:Vorlage:InvSprite/Dokumentation fr:Modèle:InvSprite/doc ja:テンプレート:InvSprite/doc pt:Predefinição:InvSprite/doc ru:Шаблон:ИнвСпрайт/док zh:Template:InvSprite/doc