Template:Keys/doc
Jump to navigation
Jump to search
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information
Shortcut
This template uses Module:Keys, with data stored in Module:Keys/Symbols.
These scripts are written in Lua.
These scripts are written in Lua.
This template is designed to illustrate keys and keystrokes on a keyboard. It can be used to show single keystrokes, combination keystrokes and a keystroke sequence.
Usage
To show combination keystrokes, place pluses between each key.
{{keys|Alt+P}}
produces Alt + P{{keys|Ctrl+Alt+Del}}
produces Ctrl + Alt + Del
To show a keystroke sequence, use separate parameters. This can be combined with combination keystrokes.
{{keys|A|B|C|D}}
produces ABCD{{keys|Alt+0|1|7|7}}
produces Alt + 0177{{keys|Alt+|0|1|7|7}}
produces Alt + 0177
Pluses on their own will be displayed as a key.
{{keys|1|+|2}}
produces 1+2{{keys|1+|+|+2}}
produces 1 + + + 2
Supported Named/Symbol shortcuts
Arrow keys
- {{key|up}}
- ↑
- {{key|down}}
- ↓
- {{key|left}}
- ←
- {{key|right}}
- →
Other common keys
- {{key|shift}}
- ⇧ Shift
- {{key|lshift}}
- ⇧ Left Shift
- {{key|rshift}}
- ⇧ Right Shift
- {{key|enter}}
- ↵ Enter
- {{key|tab}}
- Tab ↹
- {{key|backspace}}
- ← Backspace
Mac-only keys
- {{key|cmd}}
- ⌘ Cmd
- {{key|command}}
- ⌘ Command
- {{key|opt}}
- ⌥ Opt
Non-Mac keys
- {{key|super}}
- ⊞ Super (also called “windows” Key)
- {{key|menu}}
- ≣ Menu
All other text used in this template will be used verbatim.