Template:InvSprite: Difference between revisions
Appearance
w>SyTex LG m Reverted edits by Gloopywoog69 (talk) to last revision by Magiczocker (script) |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke: | <includeonly>{{#invoke: spriteFile | sprite | ||
| | | name = Invicon | scale = {{{scale|1}}} | ||
| keepcase = 1 | align = middle | size = 32 | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{#invoke: documentation | page }} | {{#invoke: documentation | page }} | ||
<!-- Put categories/interwiki on the documentation page --> | <!-- Put categories/interwiki on the documentation page --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:35, 16 October 2025
[view | edit | history | ⧼page-header-action-button-purge⧽]Documentation
This template uses Module:Sprite, with data stored in Module:InvSprite.
These scripts are written in Lua.
These scripts are written in Lua.
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 addedSupports 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: callParserFunction: function "#widget" was 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
{{InvLink}}{{Inventory slot}}
- Minecraft
{{BiomeSprite}}{{BlockSprite}}{{EffectSprite}}{{EntitySprite}}{{EnvSprite}}{{ItemSprite}}{{InvSprite}}{{SchematicSprite}}{{SlotSprite}}{{AchievementSprite}}{{NewAchievementSprite}}
- Minecraft (legacy)
{{LegacyBlockSprite}}{{LegacyEntitySprite}}
- Minecraft Dungeons
{{DungeonsLevelSprite}}{{DungeonsEnchantmentSprite}}{{DungeonsEffectSprite}}{{DungeonsEntitySprite}}{{DungeonsItemSprite}}{{DungeonsAchievementSprite}}{{DungeonsMiscellaneousSprite}}
- Other
{{Sprite}}{{Sprite grid}}{{Layered blueprint}}{{Schematic}}{{CommentSprite}}{{FrontPageSprite}}{{ProgressSprite}}- Module:Sprite
de:Vorlage:InvSprite es:Plantilla:InvSprite fr:Modèle:InvSprite ja:テンプレート:InvSprite pt:Predefinição:InvSprite ru:Шаблон:ИнвСпрайт th:แม่แบบ:InvSprite uk:Шаблон:ІнвСпрайт zh:Template:InvSprite
[view | edit | history | ⧼page-header-action-button-purge⧽]The above documentation is transcluded from Template:InvSprite/doc.