Template:Animated: Difference between revisions

From BTA-Mirror
imported>Ttv pedro270707
m (<p> on MediaWiki is just another level)
imported>Ttv pedro270707
mNo edit summary
Line 1: Line 1:
<includeonly><span style="{{#if: {{{display|}}} | display: {{{display|}}} | }}" class="animated"><!--
<includeonly><span style="{{#if: {{{display|}}} | display: {{{display|}}} | }}" class="animated"><!--
--> {{#fornumargs: argnum | argval
--> {{#arraydefine:images|{{{2|}}}|;}}<!--
| {{#switch: {{#var:argnum}}
--> <span style="display: inline-block;"><!--
|1 = <!-- 1st argument is the image size --><!--
--> [[File:{{#arrayindex:images|0}}{{#if:{{{1|}}} | {{!}}{{{1|}}} | }}{{#if:{{{link|}}} | {{!}}{{{link|}}} | }}]]<!--
--> |2 = <span style="display: inline-block;">[[File:{{#var:argval}}|{{{1|}}}{{#if:{{{link|}}}|{{!}}link={{{link|}}}|}}]]</span><!--
--> </span><!--
--> |#default = <span style="display: none;">[[File:{{#var:argval}}|{{{1|}}}{{#if:{{{link|}}}|{{!}}link={{{link|}}}|}}]]</span><!--
--> {{#arrayslice:no-display-images|images|1|}}<!--
--> }}<!--
--> {{#arrayprint:no-display-images||@image@|<!--
--> <span style="display: none;"><!--
--> [[File:@image@{{#if:{{{1|}}} | {{!}}{{{1|}}} | }}{{#if:{{{link|}}} | {{!}}{{{link|}}} | }}]]<!--
--> </span><!--
--> }}<!--
--> }}<!--
--></span></includeonly><noinclude>
--></span></includeonly><noinclude>

Revision as of 23:09, 2 April 2023

[view | edit | history | purge]Documentation

This template allows for an easy creation of cycling images.

Arguments

Argument Note
1 Sets the size of the images. Leave blank for default size.
2 Sets the images.
display Sets the display of the container.

Usage

Code Result
{{animated|32px|BTA Icon.png;Cherry Log.png}}
{{animated|64px|Lit Trommel.png;Trommel.png}}
[view | edit | history | purge]The above documentation is transcluded from Template:Animated/doc.