Difference between revisions of "Template:Key press"
From LFS Manual
Jump to navigationJump to searchm |
m (test LMB) |
||
Line 82: | Line 82: | ||
{{key press|Win}} | {{key press|Win}} | ||
{{key press|Menu}} | {{key press|Menu}} | ||
+ | |||
+ | |||
+ | Mouse buttons: | ||
+ | <pre> | ||
+ | {{key press|LMB}} | ||
+ | </pre> | ||
+ | Renders as: | ||
+ | {{key press|LMB}} | ||
</noinclude> | </noinclude> |
Revision as of 10:50, 7 January 2022
Template documentation
This template allows you to illustrate keyboard keystrokes or a combination of multiple simultaneous keystrokes.
Examples
For keystroke combinations, just use extra parameters:
{{key press|Ctrl|Shift|F}}
Renders as: Ctrl + ⇧ Shift + F
To illustrate keystrokes where all keys do not need to be pressed simultaneously, set "chain=" to omit multiple plus signs.
{{key press|Alt|0}}{{key press|1|7|7|chain=}}
Renders as: Alt + 0177
Special characters need to be entered as HTML entities:
{{key press||}} {{key press|;}} {{key press|=}}
Renders as: | ; =
or with aliases:
{{key press|pipe}} {{key press|semicolon}} {{key press|equals}} {{key press|colon}} {{key press|asterisk}} {{key press|hash}}
Renders as: | ; = : * #
Key symbols:
{{key press|Shift}} {{key press|Tab}} {{key press|Enter}} {{key press|Option}} {{key press|Opt}} {{key press|Command}} {{key press|Cmd}} {{key press|Caps Lock}} {{key press|Up}} {{key press|Down}} {{key press|Left}} {{key press|Right}} {{key press|Win}} {{key press|Menu}}
Renders as: ⇧ Shift Tab ↹ ↵ Enter ⌥ Option ⌥ Opt ⌘ Command ⌘ Cmd ⇪ Caps Lock ↑ ↓ ← → ⊞ Win ≣ Menu
Mouse buttons:
{{key press|LMB}}
Renders as: LMB