VOOZH about

URL: https://minecraft.wiki/w/Template:Animate

⇱ Template:Animate – Minecraft Wiki


Template:Animate

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
This template uses Module:Animate, a script written in Lua.

This template parses a semi-colon (;) separated list of images and places them in the correct format for them to be animated by the JS element animator.

{{animate
| 1=Semi-colon separated list of images
| 2=The size of the images in px
| link=Custom link when the user clicks the image
| class=Custom class for styling
| s=Which Sprite template to use
}}

|s= is used to specify a sprite template.

  • If it is not specified, actual image links must be used in |1=.
  • If it is specified, sprite ids must be used instead.
  • For example, |s=Item means that the {{ItemSprite}} template will be used.
  • Also, you need to make sure |size= does not end with "px" if you are using a sprite template.

Example

[edit source]
{{animate|Dirt.png;Grass Block.png|100px}}

👁 Image
👁 Image

{{animate|Stone.png;Diamond Ore.png|100px}}

👁 Image
👁 Image

{{animate|s=Item|Copper Helmet;Iron Helmet;Gold Helmet|40}}

👁 ItemSprite copper-helmet.png: Sprite image for copper-helmet in Minecraft
👁 ItemSprite iron-helmet.png: Sprite image for iron-helmet in Minecraft
👁 ItemSprite golden-helmet.png: Sprite image for golden-helmet in Minecraft

See {{Infobox block}} for a real world use for this template.

[view] [edit] [history] [purge]The above documentation is transcluded from Template:Animate/doc.
Retrieved from "https://minecraft.wiki/w/Template:Animate?oldid=1901530"

Navigation menu