Template:Key press/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) m Text replacement - "[[WP:" to "[[Wikipedia:WP:" |
Caleb Cooper (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
Line 4:
{{Redirect|Template:Key|map key templates|Category:Legend templates}}
{{Lua|Module:Key}}
{{used in system
{{high-use}}
__NOTOC__
This is the {{tl|key press}} template primarily designed to illustrate keys and keystrokes on a [[Wikipedia:computer keyboard|computer keyboard]]. With additional parameters, a single template can even illustrate a combination of multiple ''simultaneous'' keystrokes. A sequence of keystrokes, on the other hand, need to be demonstrated with separate templates.
Example
Line 23:
: {{tc|key press|Ctrl|Alt|Del|5=chain= + }} → {{key press|Ctrl|Alt|Del|chain= + }}
To illustrate sequences where all keys do not need to be pressed simultaneously, the plus signs can be omitted by setting ''chain=''. For example, in most Windows systems in North America and Western Europe, [[Wikipedia:Alt code|Alt code]]s can be used to insert the [[Wikipedia:plus-minus sign|plus-minus sign]] (±) by holding down the {{key press|Alt}} key while typing <code>0177</code> with the [[Wikipedia:numeric keypad|numeric keypad]]:
: {{tc|key press|Alt|0}}{{tlc|key press|1|7|7|chain{{=}}}} → {{key press|Alt|0}}{{key press|1|7|7|chain=}}
Line 31:
===Wikilinks===
If there is an article about the key you can [[Wikipedia:WP:wikilink|wikilink]] the key's name like any other wiki text. Like this:
* {{tc|key press|<nowiki>[[Wikipedia:Alt key|Alt]]</nowiki>}} → {{key press|[[Wikipedia:Alt key|Alt]]}}
If you are wikilinking the keys, please ensure that you are piping to the correct page (e.g. <code><nowiki>[[Wikipedia:Control key|Ctrl]]</nowiki></code> instead of <code><nowiki>[[Wikipedia:Ctrl|]]</nowiki></code>, which leads to a [[Wikipedia:WP:Disambiguation page|disambiguation page]]).
===Wiki markup characters===
Some wiki markup characters, like the [[Wikipedia:pipe symbol|pipe symbol]], the [[Wikipedia:semicolon|semicolon]] and the [[Wikipedia:equals sign|equals sign]], need to be entered using the {{tlx|!}}, {{tlx|;}} and {{tlx|{{=}}}} templates or as an [[Wikipedia:HTML entity]] &#124;, &#59;, &#61; respectively:
* {{tc|key press|{{tc|pipe}}}} → {{key press|{{pipe}}}}
* {{tc|key press|&#124;}} → {{key press||}}
Line 58:
===Key symbols===
Some key names have a fitting [[Wikipedia:Unicode|Unicode]] character. This template automatically adds such "icons" to the following key names among others.
* {{tc|key press|Shift}} → {{key press|Shift}}
* {{tc|key press|Tab}} → {{key press|Tab}}
Line 73:
[[File:AltGr Win Menu Ctrl key.jpg|thumb|200px|Windows key and Menu key]]
[[File:Ctl wndws alt.jpg|thumb|200px|Old-style Windows key]]
There are no characters for the [[Wikipedia:Windows key|Windows key]] and [[Wikipedia:Menu key|Menu key]]. So this template shows approximate characters for them, namely the {{sc2|SQUARED PLUS}} and {{sc2|STRICTLY EQUIVALENT TO}} from the [[Wikipedia:Mathematical Operators|Mathematical Operators]] Unicode block:
* {{tc|key press|Win}} → {{key press|Win}}
* {{tc|key press|Menu}} → {{key press|Menu}}
Line 185:
[[Category:Software templates]]
[[Category:Computer keys|τ]]
}}</includeonly>
| |||