Template:Kbdchart/Documentation


 * Description

This is a 104-key PC keyboard command chart based on Video Game Keyboard Diagrams (LGPLv3, CC BY-SA 3.0) made by Posfan12 at Strategy Wiki. There are three sub-templates, Template:Kbdlegend, Template:Kbdchartleg and Template:Kbdchartkey, used in rendering the chart legend and individual keys.


 * Origin
 * From http://strategywiki.org/w/index.php?title=Template:Kbdchart


 * Dependencies
 * Template:Kbdchartkey
 * Template:Kbdlegend
 * Template:Kbdchartleg

You can find an usage example here.
 * Example

Keys are numbered from 000 to 105, with two of the keys reserved for European keyboards. Each key has five main parameters:
 * Usage


 *   - the background color code for the key.
 *   - text description of the action performed when pressing the key alone.
 *   - text description of the action performed when pressing the key along with the SHIFT key.
 *   - text description of the action performed when pressing the key along with the CTRL key.
 *   - text description of the action performed when pressing the key along with the ALT key.

Legal background color codes are:

Key groupings (which appear in the chart legend) are numbered from 00 to 11. There are two main parameters:


 *   - the background color code for the key grouping.
 *   - the text description of the key grouping (for instance "Combat Controls").

Here's a set of conventions with regard to group colors that works pretty well:


 * red Combat/Actions
 * yel Targeting/Unit selection/Inventory
 * grn Movement/Navigation
 * cyn Communication/Chat
 * blu Camera/Point of view
 * mag Game Interface/Menus

The   parameter causes keyboard numberpad to not be displayed.

Additional notes:
 * Two keys are reserved for European keyboards which will be added later.
 * The ALTGR key on some European keyboards is not currently supported but will be added later.
 * At 96dpi a printed version of the chart should exactly overlay an actual keyboard.
 * Line breaks need to be inserted manually using the HTML  tag.
 * There are some additional parameters hidden away if you dig around a bit.
 * The order in which the keys are numbered are based on their scan codes on typical IBM-compatible keyboards.

I've also uploaded an Excel sheet here to assist you in filling in the template parameters.
 * Reference chart