Template:Kbd/doc: Difference between revisions
Template page
More actions
Content deleted Content added
imported>76561198018895007 Created page with ";Description :This template is used to style a word as a Keyboard shortcut. ;Syntax and Parameters :Type {{t|kbd|word>}} to have the keyboard styling added to the word. : For..." |
imported>76561198124805551 m Fix a typo |
||
Line 3: | Line 3: | ||
;Syntax and Parameters |
;Syntax and Parameters |
||
:Type {{t|kbd|word>}} to have the keyboard styling added to the word. |
:Type {{t|kbd|word>}} to have the keyboard styling added to the word. |
||
: For a combination of multiple keys, do not include the combination separator (typically <code>+</code). Instead, wrap each key in the {{t|kbd}} template. See the examples below. |
: For a combination of multiple keys, do not include the combination separator (typically <code>+</code>). Instead, wrap each key in the {{t|kbd}} template. See the examples below. |
||
;Example |
;Example |
||
: This code: <code><nowiki>{{kbd|Esc}}</nowiki></code> |
: This code: <code><nowiki>{{kbd|Esc}}</nowiki></code> |
Latest revision as of 07:19, 1 February 2021
- Description
- This template is used to style a word as a Keyboard shortcut.
- Syntax and Parameters
- Type {{kbd|<word>>}} to have the keyboard styling added to the word.
- For a combination of multiple keys, do not include the combination separator (typically
+
). Instead, wrap each key in the {{kbd}} template. See the examples below. - Example
- This code:
{{kbd|Esc}}
- Produces: Esc
- For multiple-key combinations, use like so:
{{kbd|Shift}} + {{kbd|Tab}}
- Producing: Shift + Tab