Keypress
{{{1}}}

Contents

Description

keypress renders a keyboard key and/or hotkey combination to better communicate the subject within a sentance. While enforcing a consistent appearance.
It also looks nice.

Usage

{{keypress/core|n1|n2|n3|n4|n5|6}}

n1-5

are optionally the key name(s).

6

is optionally the alternative seperator string to use instead of '+'

{{keypress/core}} can be transcluded directly to use these other options:

back

is optionally the key colour

font

is optionally the CSS font-style and font-variant, in that order.

Note: This has been made to use similar syntax to the wikipedia.org version, and is limited to five keys per combination.

Example

result code
Ctrl+Alt+Delete {{en/Keypress|ctrl|alt|delete}}
Ctrl + Alt + Delete {{en/Keypress|ctrl|alt|delete|6= + }}
Alt+F4 BkSp ← Backspace {{en/Keypress/core|alt|back=red}}+{{en/Keypress|f4|bksp|backspace||| }}
/File/en/Notice.png
Note
This template uses {{core}} to avoid repeating code.

external link

[1] (David Göthberg,Edokter,SMcCandish,et all.) from which this was adapted.