Jump to content

Module:Carousel/doc: Difference between revisions

From Wikipedia, the free encyclopedia
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> } for 12 hours between switches
* <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 hour
  • switchsecs=43200 would be every 12 hours
  • switchsecs=86400 would be daily (the default)

Usage

  • {{#invoke:carousel | main | switchsecs = number-of-seconds }}
  • {{#invoke:carousel | main }} for 24 hours between switches