Template:Key press: Difference between revisions

From Hydrogenaudio Knowledgebase
m (Added "Win" key.)
m (Added "font-weight: normal" to CSS.)
Line 1: Line 1:
<span style="background-color: #f9f9f9; background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); border: 1px solid #aaa; border-radius: 0.2em; box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); padding: 0.1em 0.3em; font-size: 0.85em;">{{#switch:{{{1}}}
<span style="background-color: #f9f9f9; background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); border: 1px solid #aaa; border-radius: 0.2em; box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); padding: 0.1em 0.3em; font-size: 0.85em; font-weight: normal;">{{#switch:{{{1}}}
| Enter = ↵ Enter
| Enter = ↵ Enter
| Shift = ⇧ Shift
| Shift = ⇧ Shift
Line 9: Line 9:
| Right = →
| Right = →
| {{{1}}}
| {{{1}}}
}}</span>{{#if:{{{2|}}}|+<span style="background-color: #f9f9f9; background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); border: 1px solid #aaa; border-radius: 0.2em; box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); padding: 0.1em 0.3em; font-size: 0.85em;">{{#switch:{{{2}}}
}}</span>{{#if:{{{2|}}}|+<span style="background-color: #f9f9f9; background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); border: 1px solid #aaa; border-radius: 0.2em; box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); padding: 0.1em 0.3em; font-size: 0.85em; font-weight: normal;">{{#switch:{{{2}}}
| Enter = ↵ Enter
| Enter = ↵ Enter
| Shift = ⇧ Shift
| Shift = ⇧ Shift

Revision as of 17:01, 22 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

{{key press|Ctrl|A}}Crtl+A

Key symbols

Some key names have a fitting Unicode character (or a close approximation thereof). 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|Win}}⊞ Win
{{key press|Up}}
{{key press|Down}}
{{key press|Left}}
{{key press|Right}}