Module:Carousel/doc: Difference between revisions
Appearance
Content deleted Content added
documentation |
fix |
||
Line 10: | Line 10: | ||
== Usage == |
== Usage == |
||
* <code><nowiki>{{#invoke:carousel | main | switchsecs = number-of-seconds }}</nowiki></code> |
* <code><nowiki>{{#invoke:carousel | main | switchsecs = number-of-seconds }}</nowiki></code> |
||
* <code><nowiki>{{#invoke:carousel | main }</nowiki></code> |
* <code><nowiki>{{#invoke:carousel | main }}</nowiki></code> for 24 hours between switches |
||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
Revision as of 14:30, 22 January 2018
Carousel returns one of a list of image filenames.
The index of the one chosen increments every 'switchsecs', which is a parameter giving the number of seconds between switches.
switchsecs=3600
would switch every hourswitchsecs=43200
would be every 12 hoursswitchsecs=86400
would be daily (the default)
Usage
{{#invoke:carousel | main | switchsecs = number-of-seconds }}
{{#invoke:carousel | main }}
for 24 hours between switches