Template:InvSprite/doc: Difference between revisions
Jump to navigation
Jump to search
Merge step 2, remove references to separate settings/IDs modules |
So apparently every level of transclusion doubles the post-expand include size of the transcluded page, so doing this should halve the post-expand include size on this page and the template which was getting very close to the 2MB limit. |
||
Line 25: | Line 25: | ||
{{InvSprite|Grass Block}} | {{InvSprite|Grass Block}} | ||
== | {{#invoke: sprite | doc | InvSprite }} | ||
=== 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 <code>Invslot</code> prefix and extension from the file name. | |||
== See also == | == See also == |
Revision as of 07:42, 9 April 2018
[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 |
---|---|
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
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