Difference between revisions of "Template:Key press"

From Zero-K
Jump to navigation Jump to search
(Separate tables to find information more easily at a glance.)
m (Border too thin, make it medium again.)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><kbd style="display:inline-block;border:medium {{{border|{{{2|outset}}}}}} gray;padding:0 .3em;line-height:1em;white-space:nowrap;font-family:sans-serif>{{{key|{{{1|=}}}}}}</kbd></includeonly><noinclude><!-- Do not put any white space, including new line, between the end tag of includeonly and start tag of noinclude, else pages will break.
+
<includeonly><kbd style="display:inline-block;border:medium {{{border|{{{2|outset}}}}}} gray;padding:0 .3em;white-space:nowrap;overflow:hidden;font-family:sans-serif;line-height:1.3em;margin:-.2em auto;vertical-align:text-bottom">{{{key|{{{1|=}}}}}}</kbd></includeonly><noinclude><!-- Do not put any white space, including new line, between the end tag of includeonly and start tag of noinclude, else pages will break.
-->A simple template that makes it easier to see that a keyboard key is involved.
+
-->{{Documentation}}
 
 
==Usage==
 
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|key|border style}}</nowiki></code>
 
* <var>key</var> is the literal name of the key to be pressed. For ''F4'', for example, the syntax is <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|F4}}</nowiki></code>. This results in the following: {{{{BASEPAGENAME}}|F4}}
 
* HTML character entities are allowed. For example, to display the multiplication symbol, this works: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|'''<nowiki>&amp;times;</nowiki>'''<nowiki>}}</nowiki></code> and results in {{{{BASEPAGENAME}}|&times;}}.
 
* To display a pressed key, add <code>inset</code> border style like this: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|F4|inset}}</nowiki></code> and the key will appear to be pressed: {{{{BASEPAGENAME}}|F4|inset}}.
 
* The <var>key</var> and <var>border</var> parameters can be reversed, but then their names need to be specified: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|border=inset|key=F4}}</nowiki></code> will become {{{{BASEPAGENAME}}|border=inset|key=F4}}
 
* Forgetting to specify a key will default to the equals sign: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> becomes {{{{BASEPAGENAME}} }}.
 
 
 
==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.
 
{| 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"|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"
 
! scope="row" style="text-align:left"|Left
 
|
 
;{{{{BASEPAGENAME}}|Left}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Left}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8592;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8592;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8592;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;larr;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8592; Left}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8592; Left}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8592; Left}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;larr; Left}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Left &#8592;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Left &#8592;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Left &amp;#8592;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Left &amp;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}}|&#8593;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8593;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8593;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;uarr;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8593; Up}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8593; Up}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8593; Up}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;uarr; Up}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Up &#8593;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Up &#8593;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Up &amp;#8593;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Up &amp;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}}|&#8594;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8594;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8594;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;rarr;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8594; Right}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8594; Right}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8594; Right}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;rarr; Right}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Right &#8594;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Right &#8594;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Right &amp;#8594;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Right &amp;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}}|&#8595;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8595;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8595;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;darr;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8595; Down}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8595; Down}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8595; Down}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;darr; Down}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Down &#8595;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Down &#8595;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Down &amp;#8595;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Down &amp;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"
 
! scope="row" style="text-align:left"|Shift
 
|
 
;{{{{BASEPAGENAME}}|Shift}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Shift}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8679;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8679;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8679;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8679; Shift}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8679; Shift}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8679; Shift}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Shift &#8679;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Shift &#8679;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Shift &amp;#8679;}}</nowiki></code>
 
 
 
|- style="vertical-align:top"
 
! scope="row" style="text-align:left"|Control
 
|
 
;{{{{BASEPAGENAME}}|Ctrl}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Ctrl}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|^}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|^}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|^ Ctrl}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|^ Ctrl}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Ctrl ^}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Ctrl ^}}</nowiki></code>
 
 
 
|- style="vertical-align:top"
 
! scope="row" style="text-align:left"|Command
 
|
 
;{{{{BASEPAGENAME}}|Command}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Command}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8984;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8984;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8984;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8984; Command}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8984; Command}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8984; Command}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Command &#8984;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Command &#8984;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Command &amp;#8984;}}</nowiki></code>
 
 
 
|- style="vertical-align:top"
 
! scope="row" style="text-align:left"|Option
 
|
 
;{{{{BASEPAGENAME}}|Option}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Option}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8997;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8997;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8997;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8997; Option}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8997; Option}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8997; Option}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Option &#8997;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Option &#8997;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Option &amp;#8997;}}</nowiki></code>
 
 
 
|- style="vertical-align:top"
 
! scope="row" style="text-align:left"|Alt
 
|
 
;{{{{BASEPAGENAME}}|Alt}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Alt}}</nowiki></code>
 
|
 
|
 
|
 
 
 
|- style="vertical-align:top"
 
! scope="row" style="text-align:left"|Alt Graph
 
|
 
;{{{{BASEPAGENAME}}|AltGr}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|AltGr}}</nowiki></code>
 
|
 
|
 
|
 
|}
 
 
 
{| 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"
 
! scope="row" style="text-align:left"|Space
 
|
 
;{{{{BASEPAGENAME}}|Space}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Space}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#9141;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#9141;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#9141;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#9141; Space}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#9141; Space}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#9141; Space}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Space &#9141;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Space &#9141;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Space &amp;#9141;}}</nowiki></code>
 
 
 
|- style="vertical-align:top"
 
! scope="row" style="text-align:left"|Enter
 
|
 
;{{{{BASEPAGENAME}}|Enter}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8629;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8629;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8629;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;crarr;}}</nowiki></code>
 
;{{{{BASEPAGENAME}}|&#8996;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8996;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8996;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8629; Enter}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8629; Enter}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8629; Enter}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;crarr; Enter}}</nowiki></code>
 
;{{{{BASEPAGENAME}}|&#8996; Enter}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8996; Enter}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8996; Enter}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Enter &#8629;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter &#8629;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter &amp;#8629;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter &amp;crarr;}}</nowiki></code>
 
;{{{{BASEPAGENAME}}|Enter &#8996;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter &#8996;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Enter &amp;#8996;}}</nowiki></code>
 
 
 
|- style="vertical-align:top"
 
! scope="row" style="text-align:left"|Tab
 
|
 
;{{{{BASEPAGENAME}}|Tab}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8633;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8633;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8633;}}</nowiki></code>
 
;{{{{BASEPAGENAME}}|&#11134;}} (better, but less compatible)
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#11134;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#11134;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#8633; Tab}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#8633; Tab}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#8633; Tab}}</nowiki></code>
 
;{{{{BASEPAGENAME}}|&#11134; Tab}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#11134; Tab}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#11134; Tab}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Tab &#8633;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab &#8633;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab &amp;#8633;}}</nowiki></code>
 
;{{{{BASEPAGENAME}}|Tab &#11134;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab &#11134;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Tab &amp;#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}}|&#9099;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#9099;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#9099;}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|&#9099; Esc}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&#9099; Esc}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|&amp;#9099; Esc}}</nowiki></code>
 
|
 
;{{{{BASEPAGENAME}}|Esc &#9099;}}
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Esc &#9099;}}</nowiki></code>
 
:<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Esc &amp;#9099;}}</nowiki></code>
 
 
 
|}
 
<!--TO DO: Add ?Super?, ?Menu?, BS, Esc, PrtScr, ScLock, CapsLock, Pause, NumLock, Ins, Del, Home, PgUp, PgDn, ?Home?, ?End?.-->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:44, 9 February 2024

Error creating thumbnail: File missing
Template documentation
[view] [edit] [history] [purge]

A simple template that makes it easier to see that a keyboard key is involved. Use {{key combo}} if two or more keys need to be pressed at the same time instead of this template.

Usage[edit]

{{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|&times;}} 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[edit]

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.

Cursor control
Key Text Symbol Symbol with text Text with symbol
Left
Left
{{Key press|Left}}
{{Key press|←}}
{{Key press|&#8592;}}
{{Key press|&larr;}}
← Left
{{Key press|← Left}}
{{Key press|&#8592; Left}}
{{Key press|&larr; Left}}
Left ←
{{Key press|Left ←}}
{{Key press|Left &#8592;}}
{{Key press|Left &larr;}}
Up
Up
{{Key press|Up}}
{{Key press|↑}}
{{Key press|&#8593;}}
{{Key press|&uarr;}}
↑ Up
{{Key press|↑ Up}}
{{Key press|&#8593; Up}}
{{Key press|&uarr; Up}}
Up ↑
{{Key press|Up ↑}}
{{Key press|Up &#8593;}}
{{Key press|Up &uarr;}}
Right
Right
{{Key press|Right}}
{{Key press|→}}
{{Key press|&#8594;}}
{{Key press|&rarr;}}
→ Right
{{Key press|→ Right}}
{{Key press|&#8594; Right}}
{{Key press|&rarr; Right}}
Right →
{{Key press|Right →}}
{{Key press|Right &#8594;}}
{{Key press|Right &rarr;}}
Down
Down
{{Key press|Down}}
{{Key press|↓}}
{{Key press|&#8595;}}
{{Key press|&darr;}}
↓ Down
{{Key press|↓ Down}}
{{Key press|&#8595; Down}}
{{Key press|&darr; Down}}
Down ↓
{{Key press|Down ↓}}
{{Key press|Down &#8595;}}
{{Key press|Down &darr;}}
Modifier keys
Key Text Symbol Symbol with text Text with symbol
Shift
Shift
{{Key press|Shift}}
{{Key press|⇧}}
{{Key press|&#8679;}}
⇧ Shift
{{Key press|⇧ Shift}}
{{Key press|&#8679; Shift}}
Shift ⇧
{{Key press|Shift ⇧}}
{{Key press|Shift &#8679;}}
Control
Ctrl
{{Key press|Ctrl}}
^
{{Key press|^}}
^ Ctrl
{{Key press|^ Ctrl}}
Ctrl ^
{{Key press|Ctrl ^}}
Command
Command
{{Key press|Command}}
{{Key press|⌘}}
{{Key press|&#8984;}}
⌘ Command
{{Key press|⌘ Command}}
{{Key press|&#8984; Command}}
Command ⌘
{{Key press|Command ⌘}}
{{Key press|Command &#8984;}}
Option
Option
{{Key press|Option}}
{{Key press|⌥}}
{{Key press|&#8997;}}
⌥ Option
{{Key press|⌥ Option}}
{{Key press|&#8997; Option}}
Option ⌥
{{Key press|Option ⌥}}
{{Key press|Option &#8997;}}
Alt
Alt
{{Key press|Alt}}
Alt Graph
AltGr
{{Key press|AltGr}}
Other often-used keys
Key Text Symbol Symbol with text Text with symbol
Space
Space
{{Key press|Space}}
{{Key press|⎵}}
{{Key press|&#9141;}}
⎵ Space
{{Key press|⎵ Space}}
{{Key press|&#9141; Space}}
Space ⎵
{{Key press|Space ⎵}}
{{Key press|Space &#9141;}}
Enter
Enter
{{Key press|Enter}}
{{Key press|↵}}
{{Key press|&#8629;}}
{{Key press|&crarr;}}
{{Key press|⌤}}
{{Key press|&#8996;}}
↵ Enter
{{Key press|↵ Enter}}
{{Key press|&#8629; Enter}}
{{Key press|&crarr; Enter}}
⌤ Enter
{{Key press|⌤ Enter}}
{{Key press|&#8996; Enter}}
Enter ↵
{{Key press|Enter ↵}}
{{Key press|Enter &#8629;}}
{{Key press|Enter &crarr;}}
Enter ⌤
{{Key press|Enter ⌤}}
{{Key press|Enter &#8996;}}
Tab
Tab
{{Key press|Tab}}
{{Key press|↹}}
{{Key press|&#8633;}}
(better, but less compatible)
{{Key press|⭾}}
{{Key press|&#11134;}}
↹ Tab
{{Key press|↹ Tab}}
{{Key press|&#8633; Tab}}
⭾ Tab
{{Key press|⭾ Tab}}
{{Key press|&#11134; Tab}}
Tab ↹
{{Key press|Tab ↹}}
{{Key press|Tab &#8633;}}
Tab ⭾
{{Key press|Tab ⭾}}
{{Key press|Tab &#11134;}}
Escape
Esc
{{Key press|Esc}}
{{Key press|⎋}}
{{Key press|&#9099;}}
⎋ Esc
{{Key press|⎋ Esc}}
{{Key press|&#9099; Esc}}
Esc ⎋
{{Key press|Esc ⎋}}
{{Key press|Esc &#9099;}}