Template:Kbd/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {{tl|kbd}} creates small textboxes in the likeness of computer keys (the abbreviation ''kbd'' stands for "keyboard"). It is desig...") |
(Corr.) |
||
| Line 43: | Line 43: | ||
* {{tl|keystroke}}: the same basic function, but more versatile. | * {{tl|keystroke}}: the same basic function, but more versatile. | ||
<includeonly> | <includeonly> | ||
[[Category: | <!-- Categories here, please --> | ||
[[Category:Software help templates|Keys]] | |||
[[Category:Computer keys]] | |||
</includeonly> | </includeonly> | ||
Latest revision as of 20:59, 3 December 2014
Usage
{{kbd}} creates small textboxes in the likeness of computer keys (the abbreviation kbd stands for "keyboard"). It is designed to be used for depicting keyboard shortcuts and other keystrokes, and is suitable for use in e.g. help documents.
Parameter
There is only one parameter, which is unnamed (below called 1).
Custom text
1: Custom key name
This parameter is used for entering the key name. Since it is unnamed, no parameter name needs to be entered.
Usage:
{{kbd|key name}}
Examples
Single keys
| Case | What you type | What you see | Notes |
|---|---|---|---|
| Letter: a | {{kbd|A}} |
A | |
| Symbol: up arrow | {{kbd|↑}} |
↑ | Use HTML entities for characters not available on your keyboard |
| Letter: sharp S | {{kbd|ß}} |
ß |
Keystroke combinations
To create keystroke combinations, enter one template call per key, and separate them with a plus sign (or whatever the practice for your locale is).
| Case | What you type | What you see | Notes |
|---|---|---|---|
| Two keys | {{kbd|Alt}}+{{kbd|P}} |
Alt+P | |
| Three keys | {{kbd|Ctrl}}+{{kbd|Alt}}+{{kbd|Del}} |
Ctrl+Alt+Del |
See also
- {{keystroke}}: the same basic function, but more versatile.