Template:InvSprite/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{documentation header}} {{lua|Sprite2|data=InvSprite|data2=InvSprite/IDs}} thumb|The spritesheet. This template displays an inventory image. {{subst:..." |
|||
Line 12: | Line 12: | ||
|- | |- | ||
| {{p|1}} | | {{p|1}} | ||
| Sets the | | Sets the image. | ||
|- | |- | ||
| {{p|link}} | | {{p|link}} | ||
| Sets the link for the | | 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> | ||
|- | |- | ||
| {{p|text}} | | {{p|text}} | ||
| If set, the value is displayed as text after the | | If set, the value is displayed as text after the image. | ||
|} | |} | ||
Revision as of 17:16, 8 August 2015
[refresh]
This is the documentation page. It should be transcluded into Template:InvSprite. See Template:Documentation for more information.This template uses Module:Sprite2, with data stored in Module:InvSprite and Module:InvSprite/IDs.
These scripts are written in Lua.
These scripts are written in Lua.
This template displays an inventory image.
Parameters
Name | Usage |
---|---|
1= | 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. |
Example
{{InvSprite|Grass Block}}
Invicon Grass Block.png: Sprite image for Grass Block in Minecraft
Available images
Script error: No such module "sprite2".
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