Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 20:57, 3 April 2021 by imported>Fadyblok240 (safesubst)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

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 es:Plantilla:Animación ja:テンプレート:Animate ko:틀:Animate nl:Sjabloon:Animate pt:Predefinição:Animate ru:Шаблон:Анимация uk:Шаблон:Анімація

zh:Template:Animate
The above text is transcluded from Template:MC/Animate/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Animate/doc. (View all subpages of this page.)