Template:InvSprite/doc: Difference between revisions
Jump to navigation
Jump to search
m Added the scale option and add links to the german version. |
|||
Line 19: | Line 19: | ||
| <code>text</code> | | <code>text</code> | ||
| If set, the value is displayed as text after the image. | | If set, the value is displayed as text after the image. | ||
|- | |||
| <code>scale</code> | |||
| Sets the scale of the image. If unset the default parameter is <code>1</code>. | |||
|} | |} | ||
Line 39: | Line 42: | ||
<includeonly><!-- Template categories/interwiki --> | <includeonly><!-- Template categories/interwiki --> | ||
[[Category:Sprite templates]] | [[Category:Sprite templates]] | ||
[[de:Vorlage:InvSprite]] | |||
[[fr:Modèle:InvSprite]] | [[fr:Modèle:InvSprite]] | ||
[[ja:テンプレート:InvSprite]] | [[ja:テンプレート:InvSprite]] | ||
Line 45: | Line 49: | ||
</includeonly> | </includeonly> | ||
<noinclude><!-- Documentation categories/interwiki --> | <noinclude><!-- Documentation categories/interwiki --> | ||
[[de:Vorlage:InvSprite/Dokumentation]] | |||
[[fr:Modèle:InvSprite/doc]] | [[fr:Modèle:InvSprite/doc]] | ||
[[ja:テンプレート:InvSprite/doc]] | [[ja:テンプレート:InvSprite/doc]] | ||
[[ru:Шаблон:ИнвСпрайт/док]] | [[ru:Шаблон:ИнвСпрайт/док]] | ||
</noinclude> | </noinclude> |
Revision as of 12:06, 30 May 2020
[refresh]
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.
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 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
{{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}}
- Minecraft Legends
{{LegendsEntitySprite}}
{{LegendsStructureSprite}}
{{LegendsAchievementSprite}}
{{LegendsMiscellaneousSprite}}
- Other
{{Sprite}}
{{Sprite grid}}
{{Layered blueprint}}
{{Schematic}}
{{CommentSprite}}
{{FrontPageSprite}}
{{ProgressSprite}}
{{Tint}}
- Module:Sprite
de:Vorlage:InvSprite/Dokumentation fr:Modèle:InvSprite/doc ja:テンプレート:InvSprite/doc ru:Шаблон:ИнвСпрайт/док