19,582
edits
(tweaked vertical positioning of button; add a little to the docs) |
(docs: added note about problem characters and solution) |
||
Line 59: | Line 59: | ||
|{{{1}}} | |{{{1}}} | ||
}}</span></includeonly><noinclude> | }}</span></includeonly><noinclude> | ||
:''If you want to display a larger key onscreen, see [[Template:KeyLarge]].'' | |||
Call this template and pass it a character or string that serves as the label of a keyboard button to see that text printed as a cute little key: {{KeySmall|esc}} | Call this template and pass it a character or string that serves as the label of a keyboard button to see that text printed as a cute little key: {{KeySmall|esc}} | ||
Line 70: | Line 72: | ||
{{Quote|Push the {{KeySmall|~|`}} key to open the developer console.<br>Enter the command <tt>gs_show_ui{{=}}0</tt> to hide the HUD.|size=100%}} | {{Quote|Push the {{KeySmall|~|`}} key to open the developer console.<br>Enter the command <tt>gs_show_ui{{=}}0</tt> to hide the HUD.|size=100%}} | ||
==Known issues== | |||
*It has not been tested with all possible keys on all possible keyboards so some characters may need special tweaking to look good or even be legible. The only special layout created so far is for the tilde key, so this can serve as a model for future special layouts being added to the template code. | |||
*Certain characters may not display unless prefixed with another character; known problem characters are <code>#</code>, <code>*</code>, <code>:</code>, and <code>;</code>. Insert a zero-width non-joiner (<code>&‌zwnj;</code>) before the character to fix the problem. | |||
<code><nowiki>{{KeySmall|#}}</nowiki></code><br> | |||
yields this broken result:<br> | |||
{{KeySmall|#}}<br> | |||
…whereas…<br> | |||
<code><nowiki>{{KeySmall|&‌zwnj;#}}</nowiki></code><br> | |||
yields:<br> | |||
{{KeySmall|‌#}} | |||
[[Category:Basic formatting templates]]</noinclude> | [[Category:Basic formatting templates]]</noinclude> |