¡Tenemos Twitter!  
Únete a nuestro servidor de Discord

Plantilla:Animate

De Minecraft Wiki
Saltar a: navegación, buscar
Documentación

This template parses a semi-colon (;) separated list of items and places them in the correct format for them to be animated by the JS element animator.

Currently, only 1 animated parameter and 16 frames are supported. However, more can be added when needed.

Notes

  • This template does not resolve empty parameters, and will stop at the first empty frame it finds.
  • Templates with variables will not work properly in the return value, as the template is parsed before it is sent to this template.

Usage

{{animate
| Semi-colon separated list
|return= The value returned for each frame of the animation
         {1} is replaced by the above parameter
}}

Examples

{{animate|Dirt.png;Grass.png|return=[[File:{1}|100px]]}}
Tierra.png
Grass.png


{{animate
|This;text;is;animated!
|return=<span style="padding: 0.5em; border: 2px solid grey; background: #F9F9F9">{1}</span>
}}
This
text
is
animated!


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

La documentación anterior se ha incluido desde Plantilla:Animate/doc.