Difference between revisions of "Template:Key press"
Jump to navigation
Jump to search
Debug data:
(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 16: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 |
|
|
|
|
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 3.17.74.181
Start request GET /mediawiki/index.php?diff=prev&oldid=6695&title=Template%3AKey_press
HTTP HEADERS:
CONTENT-TYPE:
CONTENT-LENGTH: 0
USER-AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HOST: zero-k.info
COOKIE: wikidb229_mw__session=voauu4psb49h6vpbc255kahhfj5rd47u
ACCEPT-ENCODING: gzip, br, zstd, deflate
ACCEPT: */*
CONNECTION: close[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[session] Session "voauu4psb49h6vpbc255kahhfj5rd47u" requested without UserID cookie
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "3.17.74.181",
"UserAgent": "Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
Title::getRestrictionTypes: applicable restrictions to [[Template:Key press]] are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
Article::view: showing diff page
DifferenceEngine old '6695' new 'prev' rcid ''
[MessageCache] MessageCache using store SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for wikidb229-mw_:messages:en.
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
ParserFactory: using preprocessor: Preprocessor_Hash
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
DifferenceEngine old '0' new '0' rcid '0'
WikiPage::getParserOutput: using parser cache: no
[caches] parser: SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #126 (handle id #120) will be used for SqlBagOStuff
Parser cache options found.
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:37a980a44dc18ec57483fbd5a3c4e649:0)
[Parser] Parser::setOutputFlag: set vary-revision-sha1 flag on 'Template:Key press'; Self transclusion
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:37a980a44dc18ec57483fbd5a3c4e649:1)
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:37a980a44dc18ec57483fbd5a3c4e649:0)
MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: session changes committed
MediaWiki::preOutputCommit: LBFactory shutdown completed
Title::getRestrictionTypes: applicable restrictions to [[Template:Key press]] are {edit,move}