Template:Sprite grid/doc: Difference between revisions
en>Centrist16 (Created page with "{{documentation header}} <!-- Documentation here --> {{lua}} This Template is used to draw simple 2D-spritegraphics. It uses the IDs from sprite sheets to define single-chara...") |
Vivaporius (talk | contribs) m (1 revision imported) |
||
(No difference)
|
Latest revision as of 00:21, 15 May 2022
Error: no modules specified |
This Template is used to draw simple 2D-spritegraphics.
It uses the IDs from sprite sheets to define single-character-abbreviations for sprites, which can be used in a Table-like fashion
The sprite sheet used can be defined by adding the sprite template name before the ID, followed by a colon (BlockSprite:stone
). The default sprite sheet can be provided using sheet=
, and defaults to BlockSprite.
Icons can have their link removed, by starting the sprite ID with +
.
Icons can be rotated by adding -rot<number>
on the end of the sprite ID (e.g. Red Glazed Terracotta-rot90
for a red glazed terracotta rotated 90 degrees).
Template:P sets the pixels of spacing between each cell, 0
by default.
Example[edit]
{{Sprite grid |sheet=BiomeSprite |g=BlockSprite:+Grass Block|G=BlockSprite:Grass Block+top|s=Forest|S=Dark Forest|m=BlockSprite:Magenta Glazed Terracotta|M=BlockSprite:Magenta Glazed Terracotta-rot90|e=BlockSprite:Magenta Glazed Terracotta-rot270|z=EntitySprite:zombie|I=ItemSprite:stick |s gI |GSaz |mMme }}
- produces
Undefined prefixes or prefixes assigned to names unknown to the sprite template are replaced by .
See also[edit]
- Minecraft
- {{BiomeSprite}}
- {{BlockSprite}}
- {{EffectSprite}}
- {{EntitySprite}}
- {{EnvSprite}}
- {{ItemSprite}}
- {{InvSprite}}
- {{SchematicSprite}}
- {{SlotSprite}}
- {{AchievementSprite}}
- 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