Template:Animated: Difference between revisions
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"><!-- | ||
--> {{#arraydefine:images|{{{2|}}}|;}}<!-- | |||
--> <span style="display: inline-block;"><!-- | |||
--> [[File:{{#arrayindex:images|0}}{{#if:{{{1|}}} | {{!}}{{{1|}}} | }}{{#if:{{{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 | | | ]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 | | | ]The above documentation is transcluded from Template:Animated/doc.