Template:Key/doc

When used, this template displays game controls, supporting both keyboard keys and controller buttons.
 * Images used by this template are hosted at http://commons.gamepedia.com.
 * This template's display is styled using the  and   classes located in MediaWiki:Common.css.

Usage

 * Note: For a summary of possible console, key, and button values, see Template:Key/library.

Keyboard
 


 * The  parameter is the keyboard key to be pressed.
 * The  parameter is the graphic style and is not required - the template defaults to , rendering a white key with black text. Enter   for dark wikis, or   for light wikis.

Controller
 


 * The  parameter is used to state which console the key belongs to. The parameter is not case-sensitive. See Template:Key/library for possible values.
 * The  parameter 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  parameter is optional, and sizes the button image. If this parameter is not entered, the default image size is 50px.

Keyboard
The  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.



Or for light wikis:



Keyboard keys can be entered in shorthand like this:



Controller


Change the default colour
The default colour for the keyboard and mouse is suitable for dark-skinned wikis. To change the default settings so it fits for a light-skinned wiki, without having to use  each time, you can search for and change these sections in the template:

Search for: ...and change it to:

Search for: ...and change keysDark at the end of the line to.