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 m (<p> on MediaWiki is just another level) |
||
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 | |||
| {{#switch: {{#var:argnum}} | | {{#switch: {{#var:argnum}} | ||
|1 = <!-- 1st argument is the image size --> | |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><!-- | |||
--> }}<!-- | |||
--> }}<!-- | |||
</span></includeonly><noinclude> | --></span></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Put categories on the documentation page --> | <!-- Put categories on the documentation page --> | ||
</noinclude> | </noinclude> |
Revision as of 22:43, 2 April 2023
[view | | | ]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}} |
File:BTA Icon.png;Cherry Log.png |
{{animated|64px|Lit Trommel.png;Trommel.png}} |
File:Lit Trommel.png;Trommel.png |
[view | | | ]The above documentation is transcluded from Template:Animated/doc.