Template:Animated: Difference between revisions

From BTA-Mirror
imported>Ttv pedro270707
(Created page with "<includeonly><span style="{{#if: {{{display|}}} | display:{{{display|}}} | }}" class="animated"> {{#fornumargs: argnum | argval | {{#switch: {{#var:argnum}} |1 = <!-- 1st argument is the image size --> |2 = <span style="display: inline-block;">[[File:{{#var:argval}}|{{{1|}}}{{#if:{{{link|}}}|{{!}}link={{{link|}}}|}}]]</span> |#default = <span style="display: none;">[[File:{{#var:argval}}|{{{1|}}}{{#if:{{{link|}}}|{{!}}link={{{link|}}}|}}]]</span> }} }} </s...")
imported>Ttv pedro270707
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
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;"><!--
</span></includeonly><noinclude>
--> [[File:@image@{{#if:{{{1|}}} | {{!}}{{{1|}}} | }}{{#if:{{{link|}}} | {{!}}{{{link|}}} | }}]]<!--
--> </span><!--
--> }}<!--
--></span></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Put categories on the documentation page -->
<!-- Put categories on the documentation page -->
</noinclude>
</noinclude>

Latest revision as of 23:09, 2 April 2023

[view | edit | history | purge]Documentation

This template allows for an easy creation of cycling images.

Arguments[edit source]

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[edit source]

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.