Difference between revisions of "Template:Key press"
Jump to navigation
Jump to search
(Added tab key, removed wrong arrow (for Shift).) |
(Separate tables to find information more easily at a glance.) |
||
Line 13: | Line 13: | ||
For ease of use and consistency throughout pages, the code for some common multi-letter keys is provided here, ready to be copied and pasted into articles. Symbols rely on UTF-8 support by the browser and a font that contains the glyph, so for best compatibility, the text-only version of the code can be recommended for use in most articles. Not every key has a corresponding symbol. | For ease of use and consistency throughout pages, the code for some common multi-letter keys is provided here, ready to be copied and pasted into articles. Symbols rely on UTF-8 support by the browser and a font that contains the glyph, so for best compatibility, the text-only version of the code can be recommended for use in most articles. Not every key has a corresponding symbol. | ||
{| class="wikitable sortable" style="margin-left:auto; margin-right:auto" | {| class="wikitable sortable" style="margin-left:auto; margin-right:auto" | ||
− | |+ | + | |+Cursor control |
! scope="col" style="background-color:#069"|Key | ! scope="col" style="background-color:#069"|Key | ||
! scope="col" style="background-color:#069"|Text | ! scope="col" style="background-color:#069"|Text | ||
Line 20: | Line 20: | ||
! scope="col" style="background-color:#069"|Text with symbol | ! scope="col" style="background-color:#069"|Text with symbol | ||
+ | |- style="vertical-align:top" | ||
+ | ! scope="row" style="text-align:left"|Left | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Left}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Left}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|←}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|←}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8592;}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&larr;}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|← Left}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|← Left}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8592; Left}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&larr; Left}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Left ←}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Left ←}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Left &#8592;}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Left &larr;}}</nowiki></code> | ||
+ | |||
+ | |- style="vertical-align:top" | ||
+ | ! scope="row" style="text-align:left"|Up | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Up}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Up}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|↑}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|↑}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8593;}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&uarr;}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|↑ Up}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|↑ Up}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8593; Up}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&uarr; Up}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Up ↑}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Up ↑}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Up &#8593;}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Up &uarr;}}</nowiki></code> | ||
+ | |||
+ | |- style="vertical-align:top" | ||
+ | ! scope="row" style="text-align:left"|Right | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Right}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Right}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|→}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|→}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8594;}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&rarr;}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|→ Right}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|→ Right}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8594; Right}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&rarr; Right}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Right →}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Right →}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Right &#8594;}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Right &rarr;}}</nowiki></code> | ||
+ | |||
+ | |- style="vertical-align:top" | ||
+ | ! scope="row" style="text-align:left"|Down | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Down}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Down}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|↓}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|↓}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8595;}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&darr;}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|↓ Down}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|↓ Down}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8595; Down}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&darr; Down}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Down ↓}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Down ↓}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Down &#8595;}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Down &darr;}}</nowiki></code> | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable sortable" style="margin-left:auto; margin-right:auto" | ||
+ | |+Modifier keys | ||
+ | ! scope="col" style="background-color:#069"|Key | ||
+ | ! scope="col" style="background-color:#069"|Text | ||
+ | ! scope="col" style="background-color:#069"|Symbol | ||
+ | ! scope="col" style="background-color:#069"|Symbol with text | ||
+ | ! scope="col" style="background-color:#069"|Text with symbol | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
! scope="row" style="text-align:left"|Shift | ! scope="row" style="text-align:left"|Shift | ||
Line 106: | Line 199: | ||
| | | | ||
| | | | ||
+ | |} | ||
+ | |||
+ | {| class="wikitable sortable" style="margin-left:auto; margin-right:auto" | ||
+ | |+Other often-used keys | ||
+ | ! scope="col" style="background-color:#069"|Key | ||
+ | ! scope="col" style="background-color:#069"|Text | ||
+ | ! scope="col" style="background-color:#069"|Symbol | ||
+ | ! scope="col" style="background-color:#069"|Symbol with text | ||
+ | ! scope="col" style="background-color:#069"|Text with symbol | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
Line 154: | Line 256: | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter ⌤}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter ⌤}}</nowiki></code> | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter &#8996;}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter &#8996;}}</nowiki></code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
Line 245: | Line 263: | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab}}</nowiki></code> | ||
| | | | ||
− | ;{{{{BASEPAGENAME}}|⭾}} | + | ;{{{{BASEPAGENAME}}|↹}} |
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|↹}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8633;}}</nowiki></code> | ||
+ | ;{{{{BASEPAGENAME}}|⭾}} (better, but less compatible) | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|⭾}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|⭾}}</nowiki></code> | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#11134;}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#11134;}}</nowiki></code> | ||
| | | | ||
+ | ;{{{{BASEPAGENAME}}|↹ Tab}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|↹ Tab}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8633; Tab}}</nowiki></code> | ||
;{{{{BASEPAGENAME}}|⭾ Tab}} | ;{{{{BASEPAGENAME}}|⭾ Tab}} | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|⭾ Tab}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|⭾ Tab}}</nowiki></code> | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#11134; Tab}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#11134; Tab}}</nowiki></code> | ||
| | | | ||
+ | ;{{{{BASEPAGENAME}}|Tab ↹}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab ↹}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab &#8633;}}</nowiki></code> | ||
;{{{{BASEPAGENAME}}|Tab ⭾}} | ;{{{{BASEPAGENAME}}|Tab ⭾}} | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab ⭾}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab ⭾}}</nowiki></code> | ||
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab &#11134;}}</nowiki></code> | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab &#11134;}}</nowiki></code> | ||
+ | |||
+ | |- style="vertical-align:top" | ||
+ | ! scope="row" style="text-align:left"|Escape | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Esc}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Esc}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|⎋}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|⎋}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#9099;}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|⎋ Esc}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|⎋ Esc}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#9099; Esc}}</nowiki></code> | ||
+ | | | ||
+ | ;{{{{BASEPAGENAME}}|Esc ⎋}} | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Esc ⎋}}</nowiki></code> | ||
+ | :<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Esc &#9099;}}</nowiki></code> | ||
|} | |} | ||
<!--TO DO: Add ?Super?, ?Menu?, BS, Esc, PrtScr, ScLock, CapsLock, Pause, NumLock, Ins, Del, Home, PgUp, PgDn, ?Home?, ?End?.--> | <!--TO DO: Add ?Super?, ?Menu?, BS, Esc, PrtScr, ScLock, CapsLock, Pause, NumLock, Ins, Del, Home, PgUp, PgDn, ?Home?, ?End?.--> | ||
</noinclude> | </noinclude> |
Revision as of 15:06, 16 June 2020
A simple template that makes it easier to see that a keyboard key is involved.
Usage
{{Key press|key|border style}}
- key is the literal name of the key to be pressed. For F4, for example, the syntax is
{{Key press|F4}}
. This results in the following: F4 - HTML character entities are allowed. For example, to display the multiplication symbol, this works:
{{Key press|×}}
and results in ×. - To display a pressed key, add
inset
border style like this:{{Key press|F4|inset}}
and the key will appear to be pressed: F4. - The key and border parameters can be reversed, but then their names need to be specified:
{{Key press|border=inset|key=F4}}
will become F4 - Forgetting to specify a key will default to the equals sign:
{{Key press}}
becomes =.
Common keys
For ease of use and consistency throughout pages, the code for some common multi-letter keys is provided here, ready to be copied and pasted into articles. Symbols rely on UTF-8 support by the browser and a font that contains the glyph, so for best compatibility, the text-only version of the code can be recommended for use in most articles. Not every key has a corresponding symbol.
Key | Text | Symbol | Symbol with text | Text with symbol |
---|---|---|---|---|
Left |
|
|
|
|
Up |
|
|
|
|
Right |
|
|
|
|
Down |
|
|
|
|
Key | Text | Symbol | Symbol with text | Text with symbol |
---|---|---|---|---|
Shift |
|
|
|
|
Control |
|
|
|
|
Command |
|
|
|
|
Option |
|
|
|
|
Alt |
|
|||
Alt Graph |
|
Key | Text | Symbol | Symbol with text | Text with symbol |
---|---|---|---|---|
Space |
|
|
|
|
Enter |
|
|
|
|
Tab |
|
|
|
|
Escape |
|
|
|
|