Jump to content

Template:Keys/doc

From The Petit Planet Wiki
This is the documentation page for Keys.
It contains usage information, categories, and other content not part of the original template page.
This template uses Module:Keys, a script written in Lua.
This template uses CSS found at MediaWiki:Keys.css.

This template can be used to display keystrokes.

Name to file mapping for buttons done in Module:Keys/Symbols.

Syntax

[edit source]

{{Keys|key sequence}}

Examples

[edit source]

{{Keys|Alt|F4}} yields: Alt + F4
{{Keys|2}} yields: 2
{{Keys|LShift}} yields: LShift
{{Keys|ps-r2}} yields: PlayStation R2
{{Keys|ps-r1}} yields: PlayStation R1
{{Keys|ps-c}} yields: PlayStation Circle
{{Keys|xb-a}} yields: Xbox A
{{Keys|xb-x}} yields: Xbox X
{{Keys|xb-y}} yields: Xbox Y

Template Data

[edit source]

Displays keystrokes.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
First Key1

no description

Stringrequired
Second Key2

no description

Stringoptional
Third Key3

no description

Stringoptional
Forth Key4

no description

Stringoptional
Fifth Key5

no description

Stringoptional