Template:Kbd

Revision as of 14:15, 5 May 2020 by Helpful Herbert (talk | contribs) (Created template for styling keyboard-buttons)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

About

Displays a key in a css-styled <kbd> tag, intended use in Keyboard Shortcuts. This template (with its massivly ugly inline-css) will become obsolete as soon as the kbd-styling is globally updated ( https://www.mediawiki.org/wiki/MediaWiki:Gadget-site.css ).

Parameter-Usage

Parameter Default Description
1 Title of the button

Examples

Bare

{{Kbd}}


Normal

{{Kbd|Shift}} + {{Kbd|E}}

Shift + E

In a sentence

Using {{Kbd|Shift}} + {{Kbd|B}} you can put the item in your backpack.

Using Shift + B you can put the item in your backpack.