Template:Key press: Difference between revisions

From Hydrogenaudio Knowledgebase
(Initial template creation, based on template from Wikipedia.)
 
(Added documentation and additional key options.)
Line 2: Line 2:
| Enter = ↵ Enter
| Enter = ↵ Enter
| Shift = ⇧ Shift
| Shift = ⇧ Shift
| Tab = Tab ↹
| Up = ↑
| Down = ↓
| Left = ←
| Right = →
| {{{1}}}
| {{{1}}}
}}</span>
}}</span><noinclude>
==Documentation==
This is the {{tl|key press}} template, primarily designed to illustrate keys and keystrokes on a computer keyboard.
 
Example:
 
{{code|<nowiki>{{key press|A}}</nowiki>}} → {{key press|A}}
 
Unlike the Wikipedia version of this template, multiple keys, e.g. {{code|<nowiki>{{key press|Ctrl|P}}</nowiki>}}, have not yet been implemented.
 
===Key symbols===
 
Some key names have a fitting Unicode character. This template automatically adds such "icons" to the following key names:
 
: {{code|<nowiki>{{key press|Enter}}</nowiki>}} → {{key press|Enter}}
: {{code|<nowiki>{{key press|Shift}}</nowiki>}} → {{key press|Shift}}
: {{code|<nowiki>{{key press|Tab}}</nowiki>}} → {{key press|Tab}}
: {{code|<nowiki>{{key press|Up}}</nowiki>}} → {{key press|Up}}
: {{code|<nowiki>{{key press|Down}}</nowiki>}} → {{key press|Down}}
: {{code|<nowiki>{{key press|Left}}</nowiki>}} → {{key press|Left}}
: {{code|<nowiki>{{key press|Right}}</nowiki>}} → {{key press|Right}}
[[Category:Templates]]
</noinclude>

Revision as of 18:32, 16 October 2018

{{{1}}}

Documentation

This is the {{key press}} template, primarily designed to illustrate keys and keystrokes on a computer keyboard.

Example:

{{key press|A}}A

Unlike the Wikipedia version of this template, multiple keys, e.g. {{key press|Ctrl|P}}, have not yet been implemented.

Key symbols

Some key names have a fitting Unicode character. This template automatically adds such "icons" to the following key names:

{{key press|Enter}}↵ Enter
{{key press|Shift}}⇧ Shift
{{key press|Tab}}Tab ↹
{{key press|Up}}
{{key press|Down}}
{{key press|Left}}
{{key press|Right}}