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
Long: Short:


 * 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.
 * In the short version, the key to be pressed is an unnamed first and only parameter. The default color scheme will be used. This will be the most commonly used form of the template for keyboard.

Controller
Long: Short:


 * 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.
 * In the short version, the console type will be the first unnamed parameter and the button will be the second. Size may be given as normal if desired. This will be the most commonly used form of the template for consoles.

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


And in shorthand:



Shorthand without size:



Changing the default color
The default color 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.