Difference between revisions of "Template:Animated"

From Luanti Wiki
Jump to navigation Jump to search
(Moved doc to /doc subpage)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#invoke:Animated|images}}</includeonly><noinclude>
<div class="animated" style="{{#if: {{{width|}}} | width: {{{width}};|}} {{#if: {{{height|}}} | height: {{{height}}};|}} {{#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: {{{width|}}} | {{{width}} |}}|link=File:{{#explode: {{{1|}}} | , | 0 }}]]</div> |}}<!--
+
<!-- Categories go on the /doc subpage -->
-->{{#if: {{#explode: {{{1|}}} | , | 1 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 1 }}|{{#if: {{{width|}}} | {{{width}} |}}|link=File:{{#explode: {{{1|}}} | , | 1 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 2 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 2 }}|{{#if: {{{width|}}} | {{{width}} |}}|link=File:{{#explode: {{{1|}}} | , | 2 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 3 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 3 }}|{{#if: {{{width|}}} | {{{width}} |}}|link=File:{{#explode: {{{1|}}} | , | 3 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 4 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 4 }}|{{#if: {{{width|}}} | {{{width}} |}}|link=File:{{#explode: {{{1|}}} | , | 4 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 5 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 5 }}|{{#if: {{{width|}}} | {{{width}} |}}|link=File:{{#explode: {{{1|}}} | , | 5 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 6 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 6 }}|{{#if: {{{width|}}} | {{{width}} |}}|link=File:{{#explode: {{{1|}}} | , | 6 }}]]</div> |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 7 }} | <div class="image">[[File:{{#explode: {{{1|}}} | , | 7 }}|{{#if: {{{width|}}} | {{{width}} |}}|link=File:{{#explode: {{{1|}}} | , | 7 }}]]</div> |}}
 
</div>
 
</includeonly>
 
<noinclude>
 
[[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