Template:InvSprite: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
No edit summary
m 21 revisions imported
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke: sprite | sprite
<includeonly>{{#invoke: spriteFile | sprite
| data = InvSprite | scale = {{#if: {{{scale|}}} | {{{scale}}} | 1 }}
| name = Invicon | scale = {{{scale|1}}}
| keepcase = 1 | align = middle | size = 32
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{#invoke: documentation | page }}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>

Latest revision as of 11:33, 4 July 2024

[view] [edit] [history] [refresh]Documentation
This template uses Module:SpriteFile, a script written in Lua.

This template displays an inventory image.

Parameters[edit source]

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[edit source]

{{InvSprite|Grass Block}}

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

Full list[edit source]

Here is a full list of entities:

Animated icons[edit source]

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[edit source]

Minecraft
Minecraft (legacy)
Minecraft Dungeons
Minecraft Legends
Other

de:Vorlage:InvSprite es:Plantilla:InvSprite fr:Modèle:InvSprite ja:テンプレート:InvSprite ko:틀:InvSprite pt:Predefinição:InvSprite ru:Шаблон:ИнвСпрайт th:แม่แบบ:InvSprite uk:Шаблон:ІнвСпрайт zh:Template:InvSprite

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:InvSprite/doc.