Jump to content

Template:Toggle switch/doc

From Wikipedia, the free encyclopedia

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

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