• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Switcher

  • Template
  • Talk
  • Language
  • Watch
  • Change
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

change

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

Example

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

Output:

An example
A different example

TemplateData

change

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 (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://simple.wikipedia.org/w/index.php?title=Template:Switcher&oldid=10595342"
Last edited on 27 October 2025, at 08:56

Languages

    • العربية
    • الدارجة
    • অসমীয়া
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • Batak Toba
    • Bikol Central
    • Български
    • भोजपुरी
    • Banjar
    • বাংলা
    • Batak Mandailing
    • Буряад
    • Català
    • کوردی
    • Čeština
    • Cymraeg
    • English
    • Español
    • Euskara
    • فارسی
    • Français
    • ગુજરાતી
    • Gaelg
    • हिन्दी
    • Hrvatski
    • Հայերեն
    • Bahasa Indonesia
    • Ilokano
    • Italiano
    • 日本語
    • Jawa
    • ქართული
    • Kumoring
    • 한국어
    • Kurdî
    • Ladin
    • Lietuvių
    • मैथिली
    • Minangkabau
    • Македонски
    • മലയാളം
    • Монгол
    • मराठी
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • नेपाली
    • Nederlands
    • Norsk bokmål
    • ਪੰਜਾਬੀ
    • پښتو
    • Português
    • Русиньскый
    • Scots
    • سنڌي
    • တႆး
    • සිංහල
    • Slovenščina
    • Soomaaliga
    • Shqip
    • Српски / srpski
    • Sunda
    • Kiswahili
    • தமிழ்
    • తెలుగు
    • ไทย
    • Tagalog
    • Türkçe
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Vèneto
    • Tiếng Việt
    • Yorùbá
    • 閩南語 / Bân-lâm-gí
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last changed on 27 October 2025, at 08:56.
    • Page was rendered with Parsoid.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop view