<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3ACarousel%2Fdoc</id>
	<title>Module:Carousel/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3ACarousel%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:Carousel/doc&amp;action=history"/>
	<updated>2026-04-10T14:07:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:Carousel/doc&amp;diff=12206&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;&lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --&gt; Carousel returns one of a list of image fil...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:Carousel/doc&amp;diff=12206&amp;oldid=prev"/>
		<updated>2020-10-18T17:38:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikipedia:Wikidata&lt;/a&gt;) --&amp;gt; Carousel returns one of a list of image fil...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
Carousel returns one of a list of image filenames.&lt;br /&gt;
&lt;br /&gt;
The index of the one chosen increments every &amp;#039;switchsecs&amp;#039;,&lt;br /&gt;
which is a parameter giving the number of seconds between switches.&lt;br /&gt;
* &amp;lt;code&amp;gt;switchsecs=3600&amp;lt;/code&amp;gt; would switch every hour&lt;br /&gt;
* &amp;lt;code&amp;gt;switchsecs=43200&amp;lt;/code&amp;gt; would be every 12 hours&lt;br /&gt;
* &amp;lt;code&amp;gt;switchsecs=86400&amp;lt;/code&amp;gt; would be daily (the default)&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Generic:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:carousel | main | name = name-of-data-module | switchsecs = number-of-seconds }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Examples:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:carousel | main }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for 24 hours between switches using default list&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:carousel | main | switchsecs = 10}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for 10 sec between switches using default list&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:carousel | main | name= | switchsecs = 1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; 1 sec between switches using default list&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:carousel | main | name=Komodobish | switchsecs = 5}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; 5 sec using Komodobish&amp;#039;s list&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:carousel | main | name=54129 | switchsecs = 43200}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; 12 hours using Serial Number 54129&amp;#039;s list&lt;br /&gt;
&lt;br /&gt;
The image lists are at [[Special:PrefixIndex/Module:Carousel/]], e.g. [[Module:Carousel/Komodobish]] for &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;name=Komodobish&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Typically it will be used with standard image syntax:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File:{{#invoke:carousel | main | name=Komodobish | switchsecs = 5}} | upright=1.25 | center | thumb | message goes here]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → [[File:{{#invoke:carousel|main|name=Komodobish|switchsecs=5}}|upright=1.25|center|thumb|message goes here]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>