Template:Kbd: Difference between revisions

Template page
w:c:strategywiki>Najzere
m (padding up and down arrows)
w:c:strategywiki>Sigma 7
(semi-colon fix)
Line 1: Line 1:
<span class="keyboard_button">{{#switch:{{{1}}}|up=&nbsp;↑&nbsp;|down=&nbsp;↓&nbsp;|left=←|right=→|{{{1}}}}}</span><noinclude>
<span class="keyboard_button">{{#switch:{{{1}}}|up=&nbsp;↑&nbsp;|down=&nbsp;↓&nbsp;|left=←|right=→|;=<nowiki>;</nowiki>|
{{{1}}}}}</span><noinclude>
{{Documentation}}
{{Documentation}}


[[Category:Controller button templates|K]]</noinclude>
[[Category:Controller button templates|K]]</noinclude>

Revision as of 22:51, 15 May 2019

{{{1}}} This page has been transcluded from Template:Kbd/Documentation.


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.

When using "=" you must put <nowiki> tags around it.

See Also