Template:Dipswitch

Description
This template enabled a quick drawing of a dipswitch block with up to 20 switches.

Parameters
This template takes the following parameters. The ones in bold are mandatory.  notes the default value where applicable.
 * sw0 - specifies the orientation of switch 0
 * sw2 - specifies the orientation of switch 1
 * sw19 - specifies the orientation of switch 19
 * size - specifies the pixel size of the switch (50)
 * size - specifies the pixel size of the switch (50)

Example
To embed a dipswitch with the orientation 0-1-1-0-1 in your page, add

And it will render like this

{{#if:|{| border="1"
 * -|}}

{{#if:{{{1}}}||0}}

{{#if:||6}} {{#if:{{{1}}}}|{{!}}}|}}