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

Template:Toggle switch

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]

This template can be used to show toggle on and off switches.

Contents

  • 1 Usage
  • 2 Parameters
  • 3 Examples
    • 3.1 Default colors
    • 3.2 Color variations

Usage

edit

This template shows an on/off toggle, with optional colors.

Parameters

edit
1
The first unnamed parameter is the status of the toggle: on or off
color
The template supports green, blue, and orange. Green is the default color.
link
The button can be linked by this parameter.

Examples

edit

Default colors

edit
  • {{Toggle switch|on}} renders as
  • {{Toggle switch|off}} renders as


Color variations

edit
  • {{Toggle switch|on|color=green}} renders as
  • {{Toggle switch|on|color=orange}} renders as
  • {{Toggle switch|on|color=blue}} renders as
The above documentation is transcluded from Template:Toggle switch/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 "https://en.wikipedia.org/w/index.php?title=Template:Toggle_switch&oldid=861002838"