Controls/Control – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix) |
Lou Montana (talk | contribs) m (Fix example) |
||
Line 86: | Line 86: | ||
|example4= <nowiki>{{Controls/Control|a}}</nowiki> | |example4= <nowiki>{{Controls/Control|a}}</nowiki> | ||
|result4= {{Controls/Control|a}} | |result4= {{Controls/Control|a}} | ||
|example5= <nowiki>{{Controls/Control| | |example5= <nowiki>{{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|RMB}}</nowiki> | ||
|result5= {{Controls/Control|LMB}} | |result5= {{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|RMB}} | ||
|example6= <nowiki>{{Controls|escape}}{{Controls|enter}}{{Controls|delete}}{{Controls|backspace}}{{Controls|up}}{{Controls|down}}{{Controls|left}}{{Controls|right}}{{Controls|pageup}}{{Controls|pagedown}}</nowiki> | |example6= <nowiki>{{Controls|escape}}{{Controls|enter}}{{Controls|delete}}{{Controls|backspace}}{{Controls|up}}{{Controls|down}}{{Controls|left}}{{Controls|right}}{{Controls|pageup}}{{Controls|pagedown}}</nowiki> | ||
|result6= {{Controls|escape}}{{Controls|enter}}{{Controls|delete}}{{Controls|backspace}}{{Controls|up}}{{Controls|down}}{{Controls|left}}{{Controls|right}}{{Controls|pageup}}{{Controls|pagedown}} | |result6= {{Controls|escape}}{{Controls|enter}}{{Controls|delete}}{{Controls|backspace}}{{Controls|up}}{{Controls|down}}{{Controls|left}}{{Controls|right}}{{Controls|pageup}}{{Controls|pagedown}} |
Revision as of 13:42, 17 June 2022
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
- 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 ctrL will become CtrL)
- 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|num0}}{{Controls|num1}}{{Controls|num2}}{{Controls|num3}}{{Controls|num4}}{{Controls|num5}}{{Controls|num6}}{{Controls|num7}}{{Controls|num8}}{{Controls|num9}}{{Controls|num9}}{{Controls|num/}}{{Controls|num*}}{{Controls|num-}}{{Controls|num+}}{{Controls|num.}}{{Controls|numenter}} | NUM 0NUM 1NUM 2NUM 3NUM 4NUM 5NUM 6NUM 7NUM 8NUM 9NUM 9NUM /NUM *NUM -NUM +NUM .NUM Enter ↵ |