Template:Key

From PZwiki
Notebook.pngTemplate Documentation

This template creates a button via CSS to represent a key press on a keyboard.

Usage

Parameters

1 Required
The key(s) to be displayed. This can be any text, but it is recommended to use the name of the key, or the key's symbol.
2 - 5
Additional keys to be displayed. These will be displayed in the order they are entered, and will be separated by a plus sign (+).
chain
If this parameter is set, the sign between the keys will be replaced by it.

Examples

WhiskeyHalf.png
This section may be in need of improvement.
Editors are encouraged to add any missing information to the article, while verifying that the article's current content is correct.
  • {{Key|ESC}} -> ESC
  • {{Key|Shift}} -> ⇧ Shift
  • {{Key|Ctrl|Alt|Del}} -> Ctrl+Alt+Del
  • {{Key|Ctrl|Alt|Del|chain= • }} -> Ctrl • Alt • Del

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.

See also

Editors can experiment in this template's sandbox.