• Home
  • Random
  • Log in
  • Settings
  • About Ethan's Workspace
  • Disclaimers
Ethan's Workspace

Template:Switcher

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Switcher
WarningThis template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

This template is used to create a switchable image with caption, for use in infoboxes. Note that this template does not work in the editing preview.

Switcher uses MediaWiki:Gadget-switcher.js which is documented at User:Jackmcbarn/switcher. Apart from {{Switcher}}, the only current use of the gadget may be Template:Location map#User selection of multiple maps.

Parameters

Odd numbered parameters provide the image in wikitext; even numbered parameters provide the captions. Up to 20 images are supported.

Example

{{Switcher
| [[File:Example.png|300px]]
| An example
| [[File:Example image not to be used in article namespace.jpg|300px]]
| A different example
}}

Output:

Error creating thumbnail: An example
File:Example image not to be used in article namespace.jpg A different example

TemplateData

Creates a switchable image with caption for use in infoboxes

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Image 1 wikitext

Example
[[File:Example.png|300px]]
Unbalanced wikitextoptional
22

Image 1 caption

Example
This is just an example.
Stringoptional
33

See {{{1}}} (recursive)

Unbalanced wikitextoptional
44

See {{{2}}} (recursive)

Stringoptional
The above documentation is transcluded from Template:Switcher/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "http://ethans-workspace.com/w/index.php?title=Template:Switcher&oldid=3235"
Last edited on 10 December 2025, at 12:46

Languages

    This page is not available in other languages.

    Ethan's Workspace
    • This page was last edited on 10 December 2025, at 12:46.
    • Privacy policy
    • About Ethan's Workspace
    • Disclaimers
    • Desktop