Template:Kbd: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
(Created template for styling keyboard-buttons)
(No difference)

Revision as of 14:15, 5 May 2020

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.