Difference between revisions of "Template:Key press"
From Hydrogenaudio Knowledgebase
(Added documentation and additional key options.) |
m (Added secondary key press variable.) |
||
Line 8: | Line 8: | ||
| Right = → | | Right = → | ||
| {{{1}}} | | {{{1}}} | ||
− | }}</span><noinclude> | + | }}</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;">{{{2}}}</span>|}}<noinclude> |
==Documentation== | ==Documentation== | ||
This is the {{tl|key press}} template, primarily designed to illustrate keys and keystrokes on a computer keyboard. | This is the {{tl|key press}} template, primarily designed to illustrate keys and keystrokes on a computer keyboard. | ||
Line 16: | Line 16: | ||
{{code|<nowiki>{{key press|A}}</nowiki>}} → {{key press|A}} | {{code|<nowiki>{{key press|A}}</nowiki>}} → {{key press|A}} | ||
− | + | {{code|<nowiki>{{key press|Ctrl|A}}</nowiki>}} → {{key press|Crtl|A}} | |
===Key symbols=== | ===Key symbols=== |
Revision as of 18:12, 17 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. 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}}
→ →