Template:Key/doc
Jump to navigation
Jump to search
| This page has been suggested for recoding. Reason: It'd be really nice if the template actually supported the console options it claims too, specifically the ones added by Console edition and steam deck too.. You can help RimWorld Wiki by improving it. |
When used, this template displays game controls, supporting both keyboard keys and controller buttons.
- This template's display is styled using the
.keysDarkand.keysLightclasses located in MediaWiki:Common.css.
Usage[edit]
- Note: For a summary of possible console, key, and button values, see Template:Key/library.
Keyboard[edit]
{{key | keyboard = keyboard key | keyboardvariant = dark or light }}
- The
keyboardparameter is the keyboard key to be pressed. - The
keyboardvariantparameter is the graphic style and is not required - the template defaults todark, rendering a white key with black text. Enterdarkfor dark wikis, orlightfor light wikis.
Controller[edit]
{{key | console = console type | key = controller button | size = optional size }}
- The
consoleparameter is used to state which console the key belongs to. The parameter is not case-sensitive. See Template:Key/library for possible values. - The
buttonparameter is the button to be pressed, such as "A" or "Cross". Note that this template uses the registered trademark names, i.e. "cross" instead of "X" for Playstation buttons, but the template has alternative spellings and entries included. See Template:Key/library for possible values. - The
sizeparameter is optional, and sizes the button image. If this parameter is not entered, the default image size is 50px.
Examples[edit]
Keyboard[edit]
The keyboardvariant parameter does not usually need to be entered explicitly. A default is generally set during a wiki's spinup. The parameter is used here to illustrate the two available versions.
{{key
| keyboard = caps lock
| keyboardvariant = dark
}}
Or for light wikis:
{{key
| keyboard = caps lock
| keyboardvariant = light
}}
Keyboard keys can be entered in shorthand like this: ⇪ Caps Lock
{{key|caps lock}}