Template:Keys

From Aether Project Wiki
(Redirected from Template:Key)
Jump to navigation Jump to search
[view | edit | history | purge]Documentation
Shortcut
Lua logo.svg
This template uses Module:Keys, with data stored in Module:Keys/Symbols.
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.

[view | edit | history | purge]The above documentation is transcluded from Template:Keys/doc.