Template:Animate/doc: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
imported>Kittymmeow
No edit summary
imported>Kittymmeow
 
Line 15: Line 15:


== Example ==
== Example ==
<pre style="max-width: 446px">{{animate|Dirt.png;Grass Block.png|100px}}</pre>
<pre style="max-width: 446px">{{animate|Gunslinger-InGame.png;Gunslinger-3Color.png|100px}}</pre>
{{animate|Dirt.png;Grass Block.png|100px}}
{{animate|Gunslinger-InGame.png;Gunslinger-3Color.png|100px}}
 
<pre style="max-width: 446px">{{animate|Stone.png;Diamond Ore.png|100px}}</pre>
{{animate|Stone.png;Diamond Ore.png|100px}}


<includeonly>
<includeonly>

Latest revision as of 14:03, 23 May 2019

Template-info.png Documentation

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.

Uses Module:Animate

Adapted from Minecraft Wiki.

Usage

{{animate
| Semi-colon separated list of images
| The size of the images in px
}}

Example

{{animate|Gunslinger-InGame.png;Gunslinger-3Color.png|100px}}

Gunslinger-InGame.pngGunslinger-3Color.png