FANDOM


(Created page with "<onlyinclude>;Legend <div> <div style="float:left;">{{kbdchartkey|posflw=relative}}</div> <div style="float:left;margin-left:1em;">{{ #if:{{{0lgt|}}}|{{kbdchartleg|{{{0lgb...")
 
(increase to 12 parameters)
Line 12: Line 12:
 
#if:{{{7lgt|}}}|{{kbdchartleg|{{{7lgb|}}}|{{{7lgt|}}}}}}}{{
 
#if:{{{7lgt|}}}|{{kbdchartleg|{{{7lgb|}}}|{{{7lgt|}}}}}}}{{
 
#if:{{{8lgt|}}}|{{kbdchartleg|{{{8lgb|}}}|{{{8lgt|}}}}}}}{{
 
#if:{{{8lgt|}}}|{{kbdchartleg|{{{8lgb|}}}|{{{8lgt|}}}}}}}{{
#if:{{{9lgt|}}}|{{kbdchartleg|{{{9lgb|}}}|{{{9lgt|}}}}}}}
+
#if:{{{9lgt|}}}|{{kbdchartleg|{{{9lgb|}}}|{{{9lgt|}}}}}}}{{
  +
#if:{{{10lgt|}}}|{{kbdchartleg|{{{10lgb|}}}|{{{10lgt|}}}}}}}{{
  +
#if:{{{11lgt|}}}|{{kbdchartleg|{{{11lgb|}}}|{{{11lgt|}}}}}}}
 
</div><div style="clear:both;"></div>
 
</div><div style="clear:both;"></div>
 
</div></onlyinclude>
 
</div></onlyinclude>

Revision as of 18:49, December 15, 2016

Legend
Cap key
Caption
Shift
Ctrl
Alt
Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Kbdlegend]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.

Uses Template:kbdchartleg as a sub-template.

Origin
From http://strategywiki.org/w/index.php?title=Template:Kbdlegend
Groupings

Key groupings are numbered from 00 to 11. There are two main parameters:

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

Legal background color codes are:

  • red
  • yel
  • grn
  • cyn
  • blu
  • mag
  • wht
  • gry
  • blk
  • org
  • olv
  • brn

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 Controls/Menus

Reference chart

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

KeyCode
...
Legend 0
Legend 1
Legend 2
Legend 3
Legend 4
Legend 5
Legend 6
Legend 7
Legend 8
Legend 9
Legend 10
Legend 11
...
{{kbdlegend
|00lgb= |00lgt= 
|01lgb= |01lgt= 
|02lgb= |02lgt= 
|03lgb= |03lgt= 
|04lgb= |04lgt= 
|05lgb= |05lgt= 
|06lgb= |06lgt= 
|07lgb= |07lgt= 
|08lgb= |08lgt= 
|09lgb= |09lgt= 
|10lgb= |10lgt= 
|11lgb= |11lgt= 
}}
Community content is available under CC-BY-SA unless otherwise noted.