Controls/Control – Template
Displays a keyboard key or a mouse icon — used by {{Controls}}. It also adds the page to the Controls template usage error category on usage error.
This template is used on these pages.
Usage
{{Controls/Control|control}}
- control: can be one of:
- mouse icon (case-insensitive):
- mouse
- mouseL or LMB
- mouseL2 or LMB2
- mouseR or RMB
- mouseM or MMB
- pad button:
- padStart
- padUp / padDown / padLeft / padRight
- XBox-specific:
- padA / padB / padX / padY
- padLB / padLT / padLSB
- padRB / padRT / padRSB
- padBack
- PlayStation-specific:
- padCross / padCircle / padSquare / padTriangle
- padL1 / padL2 / padL3
- padR1 / padR2 / padR3
- padSelect
- pre-formatted key:
- escape / enter / delete / backspace
- up / down / left / right
- pageUp / pageDown
- control / lCtrl
- rCtrl / rControl
- rAlt
- shift
- rShift
- tabulation
- lWin / windows
- rWin / rwindows
- num0..9 / num/ / num* / num- / num+ / num. / numEnter
- anything else for a keyboard key - the first letter will be capitalised (e.g abcdEf will become AbcdEf)
- mouse icon (case-insensitive):
Code | Result |
---|---|
{{Controls/Control}} | -no key defined- |
{{Controls/Control|ctrl}} | Ctrl |
{{Controls/Control|Ctrl}} | Ctrl |
{{Controls/Control|a}} | A |
{{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|RMB}} | |
{{Controls|escape}}{{Controls|enter}}{{Controls|delete}}{{Controls|backspace}}{{Controls|up}}{{Controls|down}}{{Controls|left}}{{Controls|right}}{{Controls|pageup}}{{Controls|pagedown}} | EscEnter ↵Del⟵↑↓←→↟ PgUp↡ PgDown |
{{Controls|control}}{{Controls|lctrl}}{{Controls|rctrl}}{{Controls|rcontrol}}{{Controls|ralt}}{{Controls|shift}}{{Controls|rshift}}{{Controls|tabulation}}{{Controls|lwin}}{{Controls|windows}}{{Controls|rwin}}{{Controls|rwindows}} | CtrlCtrlRCtrlRCtrlAltGr⇧ ShiftRShift ⇧↹ Tab⊞ Win⊞ WinRWin ⊞RWin ⊞ |
{{Controls|num/}}{{Controls|num*}}{{Controls|num-}}{{Controls|num+}} |
NUM /NUM *NUM -NUM + |
{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}{{Controls|padBack}}{{Controls|padStart}} |
ABXYbackstart |