Controls/Control – Template
Lou Montana (talk | contribs) m (Add documentation and example) |
Lou Montana (talk | contribs) (Add specific consoles support) |
||
Line 12: | Line 12: | ||
| mouser= {{Icon|mouseR}} | | mouser= {{Icon|mouseR}} | ||
| xbox= {{#switch:{{lc:{{{2}}}}} | |||
|up= <span class="control-gamepad">↟</span> | |||
|down= <span class="control-gamepad">↡</span> | |||
|left= <span class="control-gamepad">↞</span> | |||
|right= <span class="control-gamepad">↠</span> | |||
|a= <span class="control-gamepad xbox-green">⇓</span> | |||
|b= <span class="control-gamepad xbox-red">⇒</span> | |||
|x= <span class="control-gamepad xbox-blue">⇐</span> | |||
|y= <span class="control-gamepad xbox-yellow">⇑</span> | |||
|lb= <span class="control-gamepad">↘</span> | |||
|lt= <span class="control-gamepad">↖</span> | |||
|lsb= <span class="control-gamepad">↺</span> | |||
|rb= <span class="control-gamepad">↙</span> | |||
|rt= <span class="control-gamepad">↗</span> | |||
|rsb= <span class="control-gamepad">↻</span> | |||
|back | |||
|share= <span class="control-gamepad">⇺</span> | |||
|start= <span class="control-gamepad">⇻</span> | |||
|#default= -wrong Xbox key defined-{{TemplateCase||[[Category:Controls template usage error]]}} | |||
}} | |||
| dualshock | |||
| playstation= {{#switch:{{lc:{{{2}}}}} | |||
|up= <span class="control-gamepad">↟</span> | |||
|down= <span class="control-gamepad">↡</span> | |||
|left= <span class="control-gamepad">↞</span> | |||
|right= <span class="control-gamepad">↠</span> | |||
|a | |||
|cross= <span class="control-gamepad dualshock-blue">⇣</span> | |||
|b | |||
|circle= <span class="control-gamepad dualshock-red">⇢</span> | |||
|x | |||
|square= <span class="control-gamepad dualshock-pink">⇠</span> | |||
|y | |||
|triangle= <span class="control-gamepad dualshock-green">⇡</span> | |||
|lb | |||
|l1= <span class="control-gamepad">↰</span> | |||
|lt | |||
|l2= <span class="control-gamepad">↲</span> | |||
|lsb | |||
|l3= <span class="control-gamepad">↺</span> | |||
|rb | |||
|r1= <span class="control-gamepad">↱</span> | |||
|rt | |||
|r2= <span class="control-gamepad">↳</span> | |||
|rsb | |||
|r3= <span class="control-gamepad">↻</span> | |||
|back | |||
|select= <span class="control-gamepad">⇷</span> | |||
|share= <span class="control-gamepad">⇦</span> | |||
|option= <span class="control-gamepad">⇨</span> | |||
|touchpad= <span class="control-gamepad">⇧</span> | |||
|start= <span class="control-gamepad">⇸</span> | |||
|#default= -wrong PlayStation key defined-{{TemplateCase||[[Category:Controls template usage error]]}} | |||
}} | |||
| padup | |||
| paddown | |||
| padleft | |||
| padright | |||
| pada | | pada | ||
| padb | | padb | ||
Line 22: | Line 81: | ||
| padrt | | padrt | ||
| padrsb | | padrsb | ||
| padback | | padback | ||
| padstart= <span class="control-gamepad">{{#switch:{{lc:{{{1}}}}} | |||
|padup= ↟ | |||
| padstart | |paddown= ↡ | ||
|padleft= ↞ | |||
|padright= ↠ | |||
|pada= ↧ | |||
|padb= ↦ | |||
| | |padx= ↤ | ||
| | |pady= ↥ | ||
| | |padlb= ↘ | ||
| | |padlt= ↖ | ||
| | |padlsb= ↺ | ||
| | |padrb= ↙ | ||
| | |padrt= ↗ | ||
| | |padrsb= ↻ | ||
| | |padback= ⇺ | ||
| | |padstart= ⇻ | ||
| | |#default= {{uc:{{#sub:{{{1}}}|3}}}} | ||
| | }}</span> | ||
| | |||
| | |||
| | |||
|#default= | |||
| #default= <span class="control-keyboard-key">{{#switch:{{lc:{{{1}}}}} | | #default= <span class="control-keyboard-key">{{#switch:{{lc:{{{1}}}}} | ||
Line 130: | Line 173: | ||
*** up / down / left / right | *** up / down / left / right | ||
*** pageUp / pageDown | *** pageUp / pageDown | ||
*** control / | *** control / LCtrl | ||
*** | *** RCtrl / RControl | ||
*** | *** RAlt | ||
*** shift | *** shift | ||
*** | *** RShift | ||
*** tabulation | *** tabulation | ||
*** | *** LWin / Windows | ||
*** | *** RWin / RWindows | ||
*** num0..9 / num/ / num* / num- / num+ / num. / numEnter | *** num0..9 / num/ / num* / num- / num+ / num. / numEnter | ||
** anything else for a keyboard key - the first letter will be capitalised (e.g {{hl|abcdEf}} will become {{hl|AbcdEf}}) | ** anything else for a keyboard key - the first letter will be capitalised (e.g {{hl|abcdEf}} will become {{hl|AbcdEf}}) | ||
|example1= <nowiki>{{Controls/Control}}</nowiki> | |example1= <nowiki>{{Controls/Control}}</nowiki> | ||
|result1= {{Controls/Control}} | |result1= {{Controls/Control}} | ||
|example2= <nowiki>{{Controls/Control|ctrl}}</nowiki> | |example2= <nowiki>{{Controls/Control|ctrl}}</nowiki> | ||
|result2= {{Controls/Control|ctrl}} | |result2= {{Controls/Control|ctrl}} | ||
|example3= <nowiki>{{Controls/Control|Ctrl}}</nowiki> | |example3= <nowiki>{{Controls/Control|Ctrl}}</nowiki> | ||
|result3= {{Controls/Control|Ctrl}} | |result3= {{Controls/Control|Ctrl}} | ||
|example4= <nowiki>{{Controls/Control|a}}</nowiki> | |example4= <nowiki>{{Controls/Control|a}}</nowiki> | ||
|result4= {{Controls/Control|a}} | |result4= {{Controls/Control|a}} | ||
|example5= <nowiki>{{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|RMB}}</nowiki> | |example5= <nowiki>{{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|RMB}}</nowiki> | ||
|result5= {{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|RMB}} | |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> | |||
|result6= {{Controls|escape}}{{Controls|enter}}{{Controls|delete}}{{Controls|backspace}}{{Controls|up}}{{Controls|down}}{{Controls|left}}{{Controls|right}}{{Controls|pageup}}{{Controls|pagedown}} | |example6= <nowiki>{{Controls/Control|escape}}{{Controls/Control|enter}}{{Controls/Control|delete}}{{Controls/Control|backspace}}{{Controls/Control|up}}{{Controls/Control|down}}{{Controls/Control|left}}{{Controls/Control|right}}{{Controls/Control|pageup}}{{Controls/Control|pagedown}}</nowiki> | ||
|example7= <nowiki>{{Controls|control}}{{Controls|lctrl}}{{Controls|rctrl}}{{Controls|rcontrol}}{{Controls|ralt}}{{Controls|shift}}{{Controls|rshift}}{{Controls|tabulation}}{{Controls|lwin}}{{Controls|windows}}{{Controls|rwin}}{{Controls|rwindows}}</nowiki> | |result6= {{Controls/Control|escape}}{{Controls/Control|enter}}{{Controls/Control|delete}}{{Controls/Control|backspace}}{{Controls/Control|up}}{{Controls/Control|down}}{{Controls/Control|left}}{{Controls/Control|right}}{{Controls/Control|pageup}}{{Controls/Control|pagedown}} | ||
|result7= {{Controls|control}}{{Controls|lctrl}}{{Controls|rctrl}}{{Controls|rcontrol}}{{Controls|ralt}}{{Controls|shift}}{{Controls|rshift}}{{Controls|tabulation}}{{Controls|lwin}}{{Controls|windows}}{{Controls|rwin}}{{Controls|rwindows}} | |||
|example7= <nowiki>{{Controls/Control|control}}{{Controls/Control|lctrl}}{{Controls/Control|rctrl}}{{Controls/Control|rcontrol}}{{Controls/Control|ralt}}{{Controls/Control|shift}}{{Controls/Control|rshift}}{{Controls/Control|tabulation}}{{Controls/Control|lwin}}{{Controls/Control|windows}}{{Controls/Control|rwin}}{{Controls/Control|rwindows}}</nowiki> | |||
|result7= {{Controls/Control|control}}{{Controls/Control|lctrl}}{{Controls/Control|rctrl}}{{Controls/Control|rcontrol}}{{Controls/Control|ralt}}{{Controls/Control|shift}}{{Controls/Control|rshift}}{{Controls/Control|tabulation}}{{Controls/Control|lwin}}{{Controls/Control|windows}}{{Controls/Control|rwin}}{{Controls/Control|rwindows}} | |||
|example8= <nowiki/> | |example8= <nowiki/> | ||
<nowiki>{{Controls|num/}}{{Controls|num*}}{{Controls|num-}}{{Controls|num+}}</nowiki><br> | <nowiki>{{Controls/Control|num/}}{{Controls/Control|num*}}{{Controls/Control|num-}}{{Controls/Control|num+}}</nowiki><br> | ||
<nowiki>{{Controls|num7}}{{Controls|num8}}{{Controls|num9}}</nowiki><br> | <nowiki>{{Controls/Control|num7}}{{Controls/Control|num8}}{{Controls/Control|num9}}</nowiki><br> | ||
<nowiki>{{Controls|num4}}{{Controls|num5}}{{Controls|num6}}</nowiki><br> | <nowiki>{{Controls/Control|num4}}{{Controls/Control|num5}}{{Controls/Control|num6}}</nowiki><br> | ||
<nowiki>{{Controls|num1}}{{Controls|num2}}{{Controls|num3}}</nowiki><br> | <nowiki>{{Controls/Control|num1}}{{Controls/Control|num2}}{{Controls/Control|num3}}</nowiki><br> | ||
<nowiki>{{Controls|num0}}{{Controls|num.}}{{Controls|numenter}}</nowiki> | <nowiki>{{Controls/Control|num0}}{{Controls/Control|num.}}{{Controls/Control|numenter}}</nowiki> | ||
|result8= <nowiki/> | |result8= <nowiki/> | ||
{{Controls|num/}}{{Controls|num*}}{{Controls|num-}}{{Controls|num+}}<br> | {{Controls/Control|num/}}{{Controls/Control|num*}}{{Controls/Control|num-}}{{Controls/Control|num+}}<br> | ||
{{Controls|num7}}{{Controls|num8}}{{Controls|num9}}<br> | {{Controls/Control|num7}}{{Controls/Control|num8}}{{Controls/Control|num9}}<br> | ||
{{Controls|num4}}{{Controls|num5}}{{Controls|num6}}<br> | {{Controls/Control|num4}}{{Controls/Control|num5}}{{Controls/Control|num6}}<br> | ||
{{Controls|num1}}{{Controls|num2}}{{Controls|num3}}<br> | {{Controls/Control|num1}}{{Controls/Control|num2}}{{Controls/Control|num3}}<br> | ||
{{Controls|num0}}{{Controls|num.}}{{Controls|numenter}} | {{Controls/Control|num0}}{{Controls/Control|num.}}{{Controls/Control|numenter}} | ||
|example9= <nowiki/> | |example9= <nowiki/> | ||
<nowiki>{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}{{Controls|padBack}}{{Controls|padStart}}</nowiki>< | <nowiki>{{Controls/Control|padUp}}{{Controls/Control|padDown}}{{Controls/Control|padLeft}}{{Controls/Control|padRight}} | ||
<nowiki>{{Controls| | {{Controls/Control|padA}}{{Controls/Control|padB}}{{Controls/Control|padX}}{{Controls/Control|padY}} | ||
{{Controls/Control|padBack}}{{Controls/Control|padStart}}</nowiki> | |||
<hr> | |||
<nowiki>{{Controls/Control|xbox|up}}{{Controls/Control|xbox|down}}{{Controls/Control|xbox|left}}{{Controls/Control|xbox|right}} | |||
{{Controls/Control|xbox|A}}{{Controls/Control|xbox|B}}{{Controls/Control|xbox|X}}{{Controls/Control|xbox|Y}} | |||
{{Controls/Control|xbox|LB}}{{Controls/Control|xbox|LT}}{{Controls/Control|xbox|LSB}}{{Controls/Control|xbox|RB}}{{Controls/Control|xbox|RT}}{{Controls/Control|xbox|RSB}} | |||
{{Controls/Control|xbox|Back}}{{Controls/Control|xbox|Start}}</nowiki> | |||
<hr> | |||
<nowiki>{{Controls/Control|dualshock|up}}{{Controls/Control|dualshock|down}}{{Controls/Control|dualshock|left}}{{Controls/Control|dualshock|right}} | |||
{{Controls/Control|dualshock|A}}{{Controls/Control|dualshock|B}}{{Controls/Control|dualshock|X}}{{Controls/Control|dualshock|Y}} | |||
{{Controls/Control|dualshock|LB}}{{Controls/Control|dualshock|LT}}{{Controls/Control|dualshock|LSB}}{{Controls/Control|dualshock|RB}}{{Controls/Control|dualshock|RT}}{{Controls/Control|dualshock|RSB}} | |||
{{Controls/Control|dualshock|Back}}{{Controls/Control|dualshock|Start}}</nowiki> | |||
|result9= <nowiki/> | |result9= <nowiki/> | ||
{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}{{Controls|padBack}}{{Controls|padStart}}< | {{Controls/Control|padUp}}{{Controls/Control|padDown}}{{Controls/Control|padLeft}}{{Controls/Control|padRight}} | ||
{{Controls| | {{Controls/Control|padA}}{{Controls/Control|padB}}{{Controls/Control|padX}}{{Controls/Control|padY}} | ||
{{Controls/Control|padBack}}{{Controls/Control|padStart}} | |||
<hr> | |||
{{Controls/Control|xbox|up}}{{Controls/Control|xbox|down}}{{Controls/Control|xbox|left}}{{Controls/Control|xbox|right}} | |||
{{Controls/Control|xbox|A}}{{Controls/Control|xbox|B}}{{Controls/Control|xbox|X}}{{Controls/Control|xbox|Y}} | |||
{{Controls/Control|xbox|LB}}{{Controls/Control|xbox|LT}}{{Controls/Control|xbox|LSB}}{{Controls/Control|xbox|RB}}{{Controls/Control|xbox|RT}}{{Controls/Control|xbox|RSB}} | |||
{{Controls/Control|xbox|Back}}{{Controls/Control|xbox|Start}} | |||
<hr> | |||
{{Controls/Control|dualshock|up}}{{Controls/Control|dualshock|down}}{{Controls/Control|dualshock|left}}{{Controls/Control|dualshock|right}} | |||
{{Controls/Control|dualshock|A}}{{Controls/Control|dualshock|B}}{{Controls/Control|dualshock|X}}{{Controls/Control|dualshock|Y}} | |||
{{Controls/Control|dualshock|LB}}{{Controls/Control|dualshock|LT}}{{Controls/Control|dualshock|LSB}}{{Controls/Control|dualshock|RB}}{{Controls/Control|dualshock|RT}}{{Controls/Control|dualshock|RSB}} | |||
{{Controls/Control|dualshock|Back}}{{Controls/Control|dualshock|Start}} | |||
}}</noinclude> | }}</noinclude> |
Revision as of 16:31, 29 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
- 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/Control|escape}}{{Controls/Control|enter}}{{Controls/Control|delete}}{{Controls/Control|backspace}}{{Controls/Control|up}}{{Controls/Control|down}}{{Controls/Control|left}}{{Controls/Control|right}}{{Controls/Control|pageup}}{{Controls/Control|pagedown}} | EscEnter ↵Del⟵↑↓←→↟ PgUp↡ PgDown |
{{Controls/Control|control}}{{Controls/Control|lctrl}}{{Controls/Control|rctrl}}{{Controls/Control|rcontrol}}{{Controls/Control|ralt}}{{Controls/Control|shift}}{{Controls/Control|rshift}}{{Controls/Control|tabulation}}{{Controls/Control|lwin}}{{Controls/Control|windows}}{{Controls/Control|rwin}}{{Controls/Control|rwindows}} | CtrlCtrlRCtrlRCtrlAltGr⇧ ShiftRShift ⇧↹ Tab⊞ Win⊞ WinRWin ⊞RWin ⊞ |
{{Controls/Control|num/}}{{Controls/Control|num*}}{{Controls/Control|num-}}{{Controls/Control|num+}} |
NUM /NUM *NUM -NUM + |
{{Controls/Control|padUp}}{{Controls/Control|padDown}}{{Controls/Control|padLeft}}{{Controls/Control|padRight}} {{Controls/Control|padA}}{{Controls/Control|padB}}{{Controls/Control|padX}}{{Controls/Control|padY}} {{Controls/Control|padBack}}{{Controls/Control|padStart}} {{Controls/Control|xbox|up}}{{Controls/Control|xbox|down}}{{Controls/Control|xbox|left}}{{Controls/Control|xbox|right}} {{Controls/Control|xbox|A}}{{Controls/Control|xbox|B}}{{Controls/Control|xbox|X}}{{Controls/Control|xbox|Y}} {{Controls/Control|xbox|LB}}{{Controls/Control|xbox|LT}}{{Controls/Control|xbox|LSB}}{{Controls/Control|xbox|RB}}{{Controls/Control|xbox|RT}}{{Controls/Control|xbox|RSB}} {{Controls/Control|xbox|Back}}{{Controls/Control|xbox|Start}} {{Controls/Control|dualshock|up}}{{Controls/Control|dualshock|down}}{{Controls/Control|dualshock|left}}{{Controls/Control|dualshock|right}} {{Controls/Control|dualshock|A}}{{Controls/Control|dualshock|B}}{{Controls/Control|dualshock|X}}{{Controls/Control|dualshock|Y}} {{Controls/Control|dualshock|LB}}{{Controls/Control|dualshock|LT}}{{Controls/Control|dualshock|LSB}}{{Controls/Control|dualshock|RB}}{{Controls/Control|dualshock|RT}}{{Controls/Control|dualshock|RSB}} {{Controls/Control|dualshock|Back}}{{Controls/Control|dualshock|Start}} |
↟↡↞↠ ↧↦↤↥ ⇺⇻ ↟↡↞↠ ⇓⇒⇐⇑ ↘↖↺↙↗↻ ⇺⇻ ↟↡↞↠ ⇣⇢⇠⇡ ↰↲↺↱↳↻ ⇷⇸ |