Template:KeySmall

From OniGalore
Revision as of 20:47, 16 May 2025 by Iritscen (talk | contribs) (added ability to show two-symbol keys)

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: esc


You can also print two-symbol keys by passing in a second parameter with the second character: !
1
@
2
#
3
$
4
%
5
^
6
&
7
*
8
(
9
)
0


The button is carefully designed to remain in line with text on the same line:

Push the ~
`
key to open the developer console.


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.


If you want to display a larger key onscreen, see Template:KeyLarge.