User:Jackmcbarn/switcher

Switcher is a gadget that allows switching between pieces of content using radio buttons.

Usage
To enable it on a page, create a container element (div, span, etc.) with the "switcher-container" class. Inside of it, place each element to switch between. Within each child element, add  somewhere (it doesn't matter where). At this point, the switcher will be fully operational. If you want an element other than the first to be shown by default, add  to the switcher-label element.

Example
First content First show link Second content Second show link Third content Third show link First content First show link Second content Second show link Third content Third show link

Testing new features
First content First show link Second content Second show link Third content Third show link First content First show link Second content Second show link Third content Third show link

First content First show link Second content Second show link Third content Third show link First content First show link Second content Second show link Third content Third show link

Code supporting Switcher
Module:Location map supports the Switcher syntax natively. It can be used to switch between multiple maps by calling it normally and separating the different map names with the # symbol. Templates that call Module:Location map, such as most infoboxes, can use this feature the same way.