Difference between revisions of "Template:Animated"

From Minetest Wiki
Jump to navigation Jump to search
(Moved doc to /doc subpage)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#invoke:Animated|images}}</includeonly><noinclude>
<div class="animated" style="{{#if: {{{size|}}} | width: {{{size}}}; height: {{{size}}};|}} {{#if: {{{background|}}} | background-color: {{{background}}};|}} {{#if: {{{border|}}} | border: {{{border}}};|}} {{#if: {{{padding|}}} | padding: {{{padding}}};|}}">
+
{{Documentation}}
{{#if: {{#explode: {{{1|}}} | , | 0 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 0 }}|{{#if: {{{size|}}} | {{{size}}} |}}|link=File:{{#explode: {{{1|}}} | , | 0 }}]]</div> |}}<!--
+
<!-- Categories go on the /doc subpage -->
-->{{#if: {{#explode: {{{1|}}} | , | 1 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 1 }}|{{#if: {{{size|}}} | {{{size}}} |}}|link=File:{{#explode: {{{1|}}} | , | 1 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 2 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 2 }}|{{#if: {{{size|}}} | {{{size}}} |}}|link=File:{{#explode: {{{1|}}} | , | 2 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 3 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 3 }}|{{#if: {{{size|}}} | {{{size}}} |}}|link=File:{{#explode: {{{1|}}} | , | 3 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 4 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 4 }}|{{#if: {{{size|}}} | {{{size}}} |}}|link=File:{{#explode: {{{1|}}} | , | 4 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 5 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 5 }}|{{#if: {{{size|}}} | {{{size}}} |}}|link=File:{{#explode: {{{1|}}} | , | 5 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 6 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 6 }}|{{#if: {{{size|}}} | {{{size}}} |}}|link=File:{{#explode: {{{1|}}} | , | 6 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 7 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 7 }}|{{#if: {{{size|}}} | {{{size}}} |}}|link=File:{{#explode: {{{1|}}} | , | 7 }}]]</div> |}}
 
</div>
 
</includeonly>
 
<noinclude>
 
<pre>{{Animated|Tree.png, Jungletree.png, Pine Tree.png|size=64px}}</pre>
 
{{Animated|Tree.png, Jungletree.png, Pine Tree.png|size=64px}}
 
[[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