Template:Keys/doc

This template displays game controls. It supports both keyboard keys and controller buttons.
 * The images used by this template are hosted remotely on https://commons.gamepedia.com.
 * This template's display is styled using the  and   classes found in MediaWiki:Common.css.

Usage

 * Note: For a summary of possible outputs, see Template:Keys/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. If you are stating a graphic parameter, you must use   instead of   for the first parameter.

Controller
 


 * The  parameter is used to state which console the key belongs to. The parameter is not case-sensitive. See Template:Keys/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:Keys/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
