Template:ImageCycle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
DokkeFyxen (talk | contribs) mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><span id="{{{customID|image}}}" style="display: none;">{{{images|[[File:Arcade_DC6A_Circuit_Board_Right_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Left_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]]}}}</span><span id="{{{customID|image}}}_cycle" data-speed="{{{speed|1.0}}}"></span><span id="cycleScript" data-id="{{{customID|image}}}"></span></includeonly> | ||
<span id="{{{customID|image}}}" style="display: none;">{{{images|[[File:Arcade_DC6A_Circuit_Board_Right_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Left_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]]}}}</span><span id="{{{customID|image}}}_cycle" data-speed="{{{speed|1.0}}}"></span>< | |||
<noinclude> | <noinclude> | ||
{{ImageCycle|images=[[File:Arcade_DC6A_Circuit_Board_Right_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Left_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]]|speed=1.5|customID= | {{ImageCycle|images=[[File:Arcade_DC6A_Circuit_Board_Right_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Left_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]]|speed=1|customID=arcadeCircuitBoard1}}{{ImageCycle|images=[[File:Arcade_DC6A_Circuit_Board_Right_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Front_Render.png|128px]][[File:Arcade_DC6A_Circuit_Board_Left_Render.png|128px]]|speed=1.5|customID=arcadeCircuitBoard2}} | ||
Cycles between images listed in the image field, at the specified speed in seconds. | Cycles between images listed in the image field, at the specified speed in seconds. | ||
[[Special:WhatLinksHere/Template:ImageCycle|Pages that use this template]] | |||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{ImageCycle|images=[[File:Image_1.png]][[File:Image_2.png]][[File:Image_3.png]]|speed=1.5|customID=yourCycle}}</pre> | {{ImageCycle|images=[[File:Image_1.png]][[File:Image_2.png]][[File:Image_3.png]]|speed=1.5|customID=yourCycle}}</pre> | ||
[[Category: | images - list of images | ||
speed - how long until it cycles to the next image (seconds) | |||
customID - if multiple cycles are needed per page, each needs a different id to work | |||
[[Category:Image templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 16:43, 10 June 2024
Cycles between images listed in the image field, at the specified speed in seconds.
Usage
{{ImageCycle|images=[[File:Image_1.png]][[File:Image_2.png]][[File:Image_3.png]]|speed=1.5|customID=yourCycle}}
images - list of images
speed - how long until it cycles to the next image (seconds)
customID - if multiple cycles are needed per page, each needs a different id to work