Template:Kbd: Difference between revisions

Template page
w:c:strategywiki>DrBob
m (Cleanup)
w:c:strategywiki>DrBob
m (Cleanup)
Line 1: Line 1:
<span class="keyboard_button">{{Switch|{{{1}}}|case: up=↑|case: down=↓|case: left=←|case: right=→|default={{{1}}}}}</span><noinclude>
<span class="keyboard_button">{{#switch:{{{1}}}|up=↑|down=↓|left=←|right=→|{{{1}}}}}</span><noinclude>


A template for making keyboard keys, typically for PCs.
A template for making keyboard keys, typically for PCs.

Revision as of 00:03, 11 March 2007

{{{1}}}

A template for making keyboard keys, typically for PCs.

Usage

Here are some examples of usage of this template. Letters must always be in upper-case, and special keys must be as shown:

  • {{kbd|A}}: A
  • {{kbd|Space}}: Space
  • {{kbd|Enter}}: Enter
  • {{kbd|Esc}}: Esc
  • {{kbd|Ctrl}}: Ctrl
  • {{kbd|+}}: +
  • {{kbd|up}}:
  • {{kbd|down}}:
  • {{kbd|left}}:
  • {{kbd|right}}:

etc.