Minecraft Wiki
Minecraft Wiki
(Use frame loader.)
(safesubst)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><span class="animated" data-imgs="{{{1}}}" {{#if: {{{2|}}} | data-img-size="{{{2}}}" }}><span class="active">[[File:{{#explode: {{{1}}} | ; }}{{#if: {{{2|}}} | {{!}}{{{2}}} }}]]</span></span></includeonly><noinclude>
+
<includeonly>{{ {{{|safesubst:}}}#invoke:animate|animate}}</includeonly><noinclude>
{{/doc}}
+
{{documentation}}
  +
<!-- Put categories/interwiki on the documentation page -->
 
  +
</noinclude>
[[Category:Templates]]
 

Latest revision as of 20:57, 3 April 2021

[view | edit | history | purge]Documentation
Lua logo.png
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.

Usage

{{animate
| Semi-colon separated list of images
| The size of the images in px
}}

Example

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

Dirt JE2 BE2.pngGrass Block JE7 BE6.png

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

Stone JE4 BE3.pngDiamond Ore JE5 BE5.png

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

[view | edit | history | purge]The above documentation is transcluded from Template:Animate/doc.