Template:Key/doc

This template is to illustrate a keyboard key in a distinct manner. This can save redundancy of saying "hit the spacebar" or "hit the E Key", and rather just show the key in an obvious manner. Note that this template and this doc are based heavily on Wikipedia:Template:Key press.

Keystroke combinations
To illustrate keystroke combinations, just use extra parameters:

This template currently handles up to 10 key name parameters, which should be more than enough to accommodate for any possible combination of simultaneous keystrokes.

When you feed several key names to this template, it adds a "+" (or whatever the contents of the optional chain parameter) with no spaces around. This means it won't line wrap. But when you show key combinations for instance in a table then that might cause too wide items. Then instead manually build the key combination with spaces around the "+" so it can line wrap:

Key symbols
Some key names have a fitting Unicode character. This template automatically adds such "icons" to the following key names among others (see also Arrows exception below). There are no characters for the Windows key and Menu key. Besides, the Windows logo is trademarked. So this template shows approximate characters for them in the following way:

Wiki markup characters
Some wiki markup character, like the pipe symbol, the semicolon and the equals sign, need to be entered using an HTML entity &amp;#124;, &amp;#59;, &amp;#61; respectively:

Most markup characters also have aliases: