Template:Shortcut

An example here: {{#replace:CTRL + A|Cmd|⌘}}. The idea is to represent shortcuts. This has a box round it just as kbrd does, but the colour is purple rather than white. If we want different colours we can, e.g. {{#replace:CTRL + A|Cmd|⌘}} gives the old darker purple we used to have before we added the box. The feature now also supports showing the Mac symbol for command.

More Examples

Standard example

{{shortcut|Ctrl + Alt + Z}}

{{#replace:Ctrl + Alt + Z|Cmd|⌘}}


Example using Cmd

{{shortcut|Cmd + Z}}

{{#replace:Cmd + Z|Cmd|⌘}}


If the text is empty, then the format box is omitted too.

ABC{{shortcut|}}DEF

ABCDEF


Example with a different colour.

{{shortcut|Ctrl + Alt + Z|a0c0a0}}

{{#replace:Ctrl + Alt + Z|Cmd|⌘}}