Difference between revisions of "Template:Key press"
Jump to navigation
Jump to search
Debug data:
m (Added missing quote mark.) |
(Larger buttons. Experimental.) |
||
Line 1: | Line 1: | ||
− | <includeonly><kbd style="display:inline-block;border: | + | <includeonly><kbd style="display:inline-block;border:.1em {{{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. |
-->{{Documentation}} | -->{{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 23:43, 9 February 2024
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
{{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 |
|
|
|
|
The above documentation is transcluded from Template:Key press/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 216.73.216.149
Start request GET /mediawiki/index.php?diff=next&oldid=9174&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
ACCEPT-ENCODING: gzip, br, zstd, deflate
ACCEPT: */*
CONNECTION: close[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "216.73.216.149",
"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 #127 (handle id #121) will be used for SqlBagOStuff
[session] SessionBackend "vh6d98ouv6s86mdcmbsfov2k6r9mjfuu" is unsaved, marking dirty in constructor
[session] SessionBackend "vh6d98ouv6s86mdcmbsfov2k6r9mjfuu" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "wikidb229_mw__session", "", "1723874113", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_UserID", "", "1723874113", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_Token", "", "1723874113", "/", "", "", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1723874113", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[localisation] LocalisationCache::isExpired(en): cache for en expired due to GlobalDependency
[localisation] LocalisationCache::recache: got localisation for en from source
[DBQuery] startAtomic: entering level 0 (LCStoreDB::finishWrite)
[DBQuery] endAtomic: leaving level 0 (LCStoreDB::finishWrite)
Title::getRestrictionTypes: applicable restrictions to [[Template:Key press]] are {edit,move}
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:1220:9176 due to pending writes.
[objectcache] Rejected set() for global:NameTableSqlStore:slot_roles:wikidb229-mw_ due to pending writes.
[objectcache] Rejected set() for global:NameTableSqlStore:content_models:wikidb229-mw_ due to pending writes.
[ContentHandler] Created handler for wikitext: WikitextContentHandler
Article::view: showing diff page
DifferenceEngine old '9174' new 'next' rcid ''
[MessageCache] MessageCache using store SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for wikidb229-mw_:messages:en.
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) 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 #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
Parser cache options found.
[objectcache] Rejected set() for wikidb229-mw_:page:10:9e9cf3221a30246219863f1d2366e36cb580debc due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:14:875 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:9e9cf3221a30246219863f1d2366e36cb580debc due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:35:7677 due to pending writes.
[ContentHandler] Created handler for Scribunto: ScribuntoContentHandler
[Scribunto] Scribunto_LuaStandaloneInterpreter::__construct: creating interpreter: ""C:\Projekty\zero-k.info\www\mediawiki\extensions\Scribunto\includes\engines\LuaStandalone/binaries/lua5_1_5_Win64_bin/lua5.1.exe" "C:\Projekty\zero-k.info\www\mediawiki\extensions\Scribunto\includes\engines\LuaStandalone/mw_main.lua" "C:\Projekty\zero-k.info\www\mediawiki\extensions\Scribunto\includes" "0" "8""
[gitinfo] Candidate cacheFile=C:\Projekty\zero-k.info\www\mediawiki/gitinfo.json for C:\Projekty\zero-k.info\www\mediawiki
[gitinfo] Cache incomplete for C:\Projekty\zero-k.info\www\mediawiki
SiteStats::loadAndLazyInit: reading site_stats from replica DB
[objectcache] Rejected set() for wikidb229-mw_:SiteStats:groupcounts:sysop due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:cbb9fa252e60809efa55a7ad83aea5438ef56753 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:28:111 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:ffddc3052f87c9a25aea8bf3e79c82159542527e due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:44:145 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:efb8787f9f3336c697c2c044b56395992077bae4 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:48:155 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:fa8676779b413ac3e6aa0bcebd7c897b6b7bf7a2 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:29:113 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:a5eab41b2fef79a07c070dab7133ea8f27ca1074 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:54:987 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:f0bda9c7650d307d1f03986f0cd9704582f2c663 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:36:7650 due to pending writes.
Title::getRestrictionTypes: applicable restrictions to [[Template:Key press]] are {edit,move}
[objectcache] Rejected set() for wikidb229-mw_:page:10:50f0d3bc47fe7550a62a58a2a76e67b7dc2d5a7e due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:1454:9177 due to pending writes.
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:258b4a2bb9e83f74231969b0800a768b:1)
[objectcache] Rejected set() for wikidb229-mw_:page:10:dd2d76d959659ab5793eccc79cd2dec6f73433e6 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:25:953 due to pending writes.
[Parser] Parser::setOutputFlag: set vary-revision-sha1 flag on 'Template:Key press'; Self transclusion
[objectcache] Rejected set() for wikidb229-mw_:page:828:8549e1b1aceb2e5c2269a654caba518e3dd175fd due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:45:147 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:7d738fdedb98220ef02ddc1f41e139d829ba3d13 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:32:119 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:b7a9bb681260efb750446037475406f5e3877493 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:31:117 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:ee236bbc62daad7ea10e2322c590ce2475c304a5 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:33:121 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:5f54eade16b17f9f0a09f04d39f8ef4c35382188 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:30:115 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:98061b8e7bab40acffe279a02e6e42cbafad6fd5 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:47:151 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:page:828:58115d00d769a7ea74e241b75b95b910e1933a86 due to pending writes.
[objectcache] Rejected set() for global:revision-row-1.29:wikidb229-mw_:46:149 due to pending writes.
[objectcache] Rejected set() for wikidb229-mw_:file:7aa65c3994a86aa0bcbe12d459aa72fa48a105e8 due to pending writes.
[Mime] MimeAnalyzer::loadFiles: loading mime types from C:\Projekty\zero-k.info\www\mediawiki\includes/libs/mime/mime.types
[Mime] MimeAnalyzer::loadFiles: loading mime info from C:\Projekty\zero-k.info\www\mediawiki\includes/libs/mime/mime.info
File::transform: Doing stat for mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/50px-Test_Template_Info-Icon_-_Version_(2).png
TransformationalImageHandler::doTransform: creating 50x22 thumbnail at mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/50px-Test_Template_Info-Icon_-_Version_(2).png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/75px-Test_Template_Info-Icon_-_Version_(2).png
TransformationalImageHandler::doTransform: creating 75x33 thumbnail at mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/75px-Test_Template_Info-Icon_-_Version_(2).png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/100px-Test_Template_Info-Icon_-_Version_(2).png
TransformationalImageHandler::doTransform: creating 100x45 thumbnail at mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/100px-Test_Template_Info-Icon_-_Version_(2).png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
[objectcache] Rejected set() for wikidb229-mw_:interwiki:wikipedia due to pending writes.
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}