Template:Animate: Difference between revisions

From TerraFirmaCraft Plus Wiki
Jump to navigation Jump to search
Kittychanley (talk | contribs)
No edit summary
 
Aliceingame (talk | contribs)
No edit summary
 
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><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>
{{/doc}}
{{doc}}
[[Category:Image templates]]
[[Category:Image templates]]

Latest revision as of 23:44, 16 May 2014

Template documentation (for the above template, sometimes hidden or invisible)

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.png|100px}}


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


Visit Template:Animate/doc to edit this text! (How does this work?)