This is a documentation subpage for Template:Toggle switch. It may contain usage information, categories and other content that is not part of the original template page. |
This template can be used to show toggle on and off switches.
Usage
editThis template shows an on/off toggle, with optional colors.
Parameters
edit1
- The first unnamed parameter is the status of the toggle:
on
oroff
color
- The template supports green, blue, and orange. Green is the default color.
link
- The button can be linked by this parameter.
Examples
editDefault 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