Difference between revisions of "Template:Animated"

From Minetest Wiki
Jump to navigation Jump to search
m
(Moved doc to /doc subpage)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="animated" style="{{#if: {{{2|}}} | width: {{{2}}}; height: {{{2}}};|}} {{#if: {{{background|}}} | background-color: {{{background}}};|}} {{#if: {{{border|}}} | border: {{{border}}};|}} {{#if: {{{padding|}}} | padding: {{{padding}}};|}}">
+
<includeonly>{{#invoke:Animated|images}}</includeonly><noinclude>
{{#if: {{#explode: {{{1|}}} | , | 0 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 0 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 0 }}]]</div> |}}<!--
+
{{Documentation}}
-->{{#if: {{#explode: {{{1|}}} | , | 1 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 1 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 1 }}]]</div> |}}<!--
+
<!-- Categories go on the /doc subpage -->
-->{{#if: {{#explode: {{{1|}}} | , | 2 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 2 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 2 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 3 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 3 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 3 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 4 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 4 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 4 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 5 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 5 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 5 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 6 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 6 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 6 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 7 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 7 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 7 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 8 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 8 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 8 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 9 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 9 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 9 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 10 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 10 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 10 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 11 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 11 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 11 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 12 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 12 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 12 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 13 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 13 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 13 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 14 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 14 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 14 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 15 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 15 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 15 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 16 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 16 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 16 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 17 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 17 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 17 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 18 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 18 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 18 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 19 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 19 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 19 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 20 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 20 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 20 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 21 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 21 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 21 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 22 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 22 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 22 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 23 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 23 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 23 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 24 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 24 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 24 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 25 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 25 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 25 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 26 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 26 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 26 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 27 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 27 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 27 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 28 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 28 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 28 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 29 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 29 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 29 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 30 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 30 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 30 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 31 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 31 }}|{{#if: {{{2|}}} | {{{2}}} |}}|link=File:{{#explode: {{{1|}}} | , | 31 }}]]</div> |}}
 
</div></includeonly><noinclude>
 
<pre>{{Animated|Tree.png, Jungletree.png, Pine Tree.png|64px|background=#888|border=1px solid #333}}</pre>
 
{{Animated|Tree.png, Jungletree.png, Pine Tree.png|64px|background=#888|border=1px solid #333}}
 
[[Category:Templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 06:19, 10 May 2017

Documentation icon.png Documentation[view] [edit] [history] [purge]
Languages Language: English
Lua logo.png This template uses Module:Animated, a script written in Lua.
Please see wikipedia:Wikipedia:Lua and mw:Extension:Scribunto to learn more.

Example

{{Animated|Tree.png, Jungletree.png, Pine Tree.png|64px|background=#888|border=1px solid #333}}
Tree.png
Jungle Tree.png
Pine Tree.png