Minecraft Wiki
Minecraft Wiki
(safesubst)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
  +
<includeonly>{{ {{{|safesubst:}}}#invoke:animate|animate}}</includeonly><noinclude>
<includeonly><div class="animated"><!-- Animated, up to 16 frames
 
  +
{{documentation}}
--><div class="active">{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; }} }}</div><!-- 1st frame
 
  +
<!-- Put categories/interwiki on the documentation page -->
 
  +
</noinclude>
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 1 }} }}</div><!-- 2nd frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 2 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 2 }} }}</div> }}<!-- 3rd frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 3 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 3 }} }}</div> }}<!-- 4th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 4 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 4 }} }}</div> }}<!-- 5th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 5 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 5 }} }}</div> }}<!-- 6th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 6 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 6 }} }}</div> }}<!-- 7th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 7 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 7 }} }}</div> }}<!-- 8th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 8 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 8 }} }}</div> }}<!-- 9th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 9 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 9 }} }}</div> }}<!-- 10th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 10 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 10 }} }}</div> }}<!-- 11th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 11 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 11 }} }}</div> }}<!-- 12th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 12 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 12 }} }}</div> }}<!-- 13th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 13 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 13 }} }}</div> }}<!-- 14th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 14 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 14 }} }}</div> }}<!-- 15th frame
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 15 }} |<!--
 
--><div>{{#replace: {{#replace: {{{return}}} | {2} | {{{2}}} }} | {1} | {{#explode: {{{1}}} | ; | 15 }} }}</div> }}<!-- 16th frame
 
 
 
-->{{#if: {{#explode: {{{1}}} | ; | 16 }} | [[Category:Too many frames]] }}<!-- More frames than supported
 
--></div></includeonly><noinclude>
 
{{/doc}}
 
 
[[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.