Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Documentation header Template: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.

Usage

{{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
}}

Template:P is used to specify a sprite template.

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

Example

{{animate|Dirt.png;Grass Block.png|100px}}

Template:Animate

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

Template:Animate

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

Template:Animate

See Template:Tl for a real world use for this template.


de:Vorlage:Animation/Dokumentation es:Plantilla:Animación/doc ja:テンプレート:Animate/doc ko:틀:Animate/doc nl:Sjabloon:Animate/doc pt:Predefinição:Animate/doc ru:Шаблон:Анимация/док uk:Шаблон:Анімація/док zh:Template:Animate/doc