Controls/Control – Template
Lou Montana (talk | contribs) m (Add documentation and example) |
Lou Montana (talk | contribs) (Add Caps Lock formatting) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
| rmb | | rmb | ||
| mouser= {{Icon|mouseR}} | | mouser= {{Icon|mouseR}} | ||
| msw | |||
| mousesw= {{Icon|mouseSW}} | |||
| mswu | |||
| mouseswu= {{Icon|mouseSWU}} | |||
| mswd | |||
| mouseswd= {{Icon|mouseSWD}} | |||
| 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> | |||
|joymove= <span class="control-gamepad">⇳</span> | |||
|joyup= <span class="control-gamepad">⇈</span> | |||
|joyupright= <span class="control-gamepad">⇗</span> | |||
|joyright= <span class="control-gamepad">⇉</span> | |||
|joydownright= <span class="control-gamepad">⇘</span> | |||
|joydown= <span class="control-gamepad">⇊</span> | |||
|joydownleft= <span class="control-gamepad">⇙</span> | |||
|joyleft= <span class="control-gamepad">⇇</span> | |||
|joyupleft= <span class="control-gamepad">⇖</span> | |||
|joyupdown= <span class="control-gamepad">⇕</span> | |||
|joyleftright= <span class="control-gamepad">⇔</span> | |||
|ljoymove= <span class="control-gamepad">⇱</span> | |||
|ljoyup= <span class="control-gamepad">↾</span> | |||
|ljoyright= <span class="control-gamepad">⇀</span> | |||
|ljoydown= <span class="control-gamepad">⇂</span> | |||
|ljoyleft= <span class="control-gamepad">↼</span> | |||
|ljoyupdown= <span class="control-gamepad">⇅</span> | |||
|ljoyleftright= <span class="control-gamepad">⇄</span> | |||
|rjoymove= <span class="control-gamepad">⇲</span> | |||
|rjoyup= <span class="control-gamepad">↿</span> | |||
|rjoyright= <span class="control-gamepad">⇁</span> | |||
|rjoydown= <span class="control-gamepad">⇃</span> | |||
|rjoyleft= <span class="control-gamepad">↽</span> | |||
|rjoyupdown= <span class="control-gamepad">⇵</span> | |||
|rjoyleftright= <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]]}} | |||
}} | |||
| 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> | |||
|joymove= <span class="control-gamepad">⇳</span> | |||
|joyup= <span class="control-gamepad">⇈</span> | |||
|joyupright= <span class="control-gamepad">⇗</span> | |||
|joyright= <span class="control-gamepad">⇉</span> | |||
|joydownright= <span class="control-gamepad">⇘</span> | |||
|joydown= <span class="control-gamepad">⇊</span> | |||
|joydownleft= <span class="control-gamepad">⇙</span> | |||
|joyleft= <span class="control-gamepad">⇇</span> | |||
|joyupleft= <span class="control-gamepad">⇖</span> | |||
|joyupdown= <span class="control-gamepad">⇕</span> | |||
|joyleftright= <span class="control-gamepad">⇔</span> | |||
|ljoymove= <span class="control-gamepad">⇱</span> | |||
|ljoyup= <span class="control-gamepad">↾</span> | |||
|ljoyright= <span class="control-gamepad">⇀</span> | |||
|ljoydown= <span class="control-gamepad">⇂</span> | |||
|ljoyleft= <span class="control-gamepad">↼</span> | |||
|ljoyupdown= <span class="control-gamepad">⇅</span> | |||
|ljoyleftright= <span class="control-gamepad">⇄</span> | |||
|rjoymove= <span class="control-gamepad">⇲</span> | |||
|rjoyup= <span class="control-gamepad">↿</span> | |||
|rjoyright= <span class="control-gamepad">⇁</span> | |||
|rjoydown= <span class="control-gamepad">⇃</span> | |||
|rjoyleft= <span class="control-gamepad">↽</span> | |||
|rjoyupdown= <span class="control-gamepad">⇵</span> | |||
|rjoyleftright= <span class="control-gamepad">⇆</span> | |||
|a | |||
|cross= <span class="control-gamepad playstation-blue">⇣</span> | |||
|b | |||
|circle= <span class="control-gamepad playstation-red">⇢</span> | |||
|x | |||
|square= <span class="control-gamepad playstation-pink">⇠</span> | |||
|y | |||
|triangle= <span class="control-gamepad playstation-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> | |||
|options= <span class="control-gamepad">⇨</span> | |||
|touchpad= <span class="control-gamepad">⇧</span> | |||
|start= <span class="control-gamepad">⇸</span> | |||
|share= <span class="control-gamepad">⇦</span> | |||
|#default= -wrong PlayStation key defined-{{TemplateCase||[[Category:Controls template usage error]]}} | |||
}} | |||
| padup | |||
| paddown | |||
| padleft | |||
| padright | |||
| padjoymove | |||
| padjoyup | |||
| padjoyupright | |||
| padjoyright | |||
| padjoydownright | |||
| padjoydown | |||
| padjoydownleft | |||
| padjoyleft | |||
| padjoyupleft | |||
| padjoyupdown | |||
| padjoyleftright | |||
| padljoymove | |||
| padljoyup | |||
| padljoyright | |||
| padljoydown | |||
| padljoyleft | |||
| padljoyupdown | |||
| padljoyleftright | |||
| padrjoymove | |||
| padrjoyup | |||
| padrjoyright | |||
| padrjoydown | |||
| padrjoyleft | |||
| padrjoyupdown | |||
| padrjoyleftright | |||
| pada | | pada | ||
| padb | | padb | ||
Line 22: | Line 170: | ||
| padrt | | padrt | ||
| padrsb | | padrsb | ||
| padback | |||
| padstart= <span class="control-gamepad">{{#switch:{{lc:{{{1}}}}} | |||
|padup= ↟ | |||
|paddown= ↡ | |||
|padleft= ↞ | |||
|padright= ↠ | |||
|padjoymove = ⇳ | |||
|padjoyup = ⇈ | |||
|padjoyupright = ⇗ | |||
|padjoyright = ⇉ | |||
|padjoydownright = ⇘ | |||
|padjoydown = ⇊ | |||
|padjoydownleft = ⇙ | |||
|padjoyleft = ⇇ | |||
|padjoyupleft = ⇖ | |||
|padjoyupdown = ⇕ | |||
|padjoyleftright = ⇔ | |||
| | |padljoymove = ⇱ | ||
| | |padljoyup = ↾ | ||
| | |padljoyright = ⇀ | ||
| | |padljoydown = ⇂ | ||
| | |padljoyleft = ↼ | ||
| | |padljoyupdown = ⇅ | ||
| | |padljoyleftright = ⇄ | ||
| | |||
| | |padrjoymove = ⇲ | ||
| | |padrjoyup = ↿ | ||
| | |padrjoyright = ⇁ | ||
| | |padrjoydown = ⇃ | ||
|padrjoyleft = ↽ | |||
|padrjoyupdown = ⇵ | |||
|padrjoyleftright = ⇆ | |||
|pada= ↧ | |||
|padb= ↦ | |||
|padx= ↤ | |||
|pady= ↥ | |||
|padlb= ↜ | |||
|pada= | |padlt= ↚ | ||
|padb= | |padlsb= ↺ | ||
|padx= | |padrb= ↝ | ||
|pady= | |padrt= ↛ | ||
| | |padrsb= ↻ | ||
| | |padback= ⇺ | ||
| | |padstart= ⇻ | ||
| | |#default= {{uc:{{#sub:{{{1}}}|3}}}} | ||
| | }}</span> | ||
| | |||
| | |||
| | |||
|#default= | |||
| #default= < | | #default= <kbd>{{#switch:{{lc:{{{1}}}}} | ||
|escape= Esc | |escape= Esc | ||
|enter= Enter ↵ | |enter= Enter ↵ | ||
Line 70: | Line 231: | ||
|pageup= ↟ PgUp | |pageup= ↟ PgUp | ||
|pagedown= ↡ PgDown | |pagedown= ↡ PgDown | ||
|control | |ctrl | ||
|control | |||
|lctrl= Ctrl | |lctrl= Ctrl | ||
|rctrl | |rctrl | ||
|rcontrol= RCtrl | |rcontrol= RCtrl | ||
|ralt= AltGr | |ralt= AltGr | ||
|shift= ⇧ Shift | |shift | ||
|lshift= ⇧ Shift | |||
|rshift= RShift ⇧ | |rshift= RShift ⇧ | ||
|caps | |||
|capslock | |||
|caps lock= 🔒CapsLock <!-- ideally use caps lock --> | |||
|tab | |||
|tabulation= ↹ Tab | |tabulation= ↹ Tab | ||
|win | |win | ||
Line 100: | Line 267: | ||
|numenter= NUM Enter ↵ | |numenter= NUM Enter ↵ | ||
|#default= {{ucFirst:{{{1}}}}} | |#default= {{ucFirst:{{{1}}}}} | ||
}}</ | }}</kbd> | ||
}} | }} | ||
|-no key defined-{{TemplateCase||[[Category:Controls template usage error]]}} | |-no key defined-{{TemplateCase||[[Category:Controls template usage error]]}} | ||
}}</includeonly><noinclude>{{Doc/Template | }}</includeonly><noinclude>{{Doc/Template | ||
|descr= Displays a keyboard key or a mouse icon — used by {{Template|Controls}}. It also adds the page to the [[:Category:Controls template usage error|Controls template usage error]] category on usage error. | |descr= Displays a keyboard key or a mouse icon — used by {{Template|Controls}}. It also adds the page to the [[:Category:Controls template usage error|Controls template usage error]] category on usage error. | ||
{{Feature|informative| | |||
Gamepad icons use '''PromptFont''', a very nice font made under the {{Link|https://scripts.sil.org/cms/scripts/page.php?id{{=}}OFL|SIL Open Font Licence}}.<br> | |||
Find it at {{Link|https://shinmera.github.io/promptfont/}}. | |||
}} | |||
|param1= control | |param1= control | ||
|descr1= can be one of: | |descr1= can be one of: | ||
Line 113: | Line 285: | ||
*** mouseR or RMB | *** mouseR or RMB | ||
*** mouseM or MMB | *** mouseM or MMB | ||
** | *** mouseSW or MSW | ||
*** | *** mouseSWU or MSWU | ||
*** mouseSWD or MSWD | |||
** generic pad buttons: | |||
*** padUp / padDown / padLeft / padRight | *** padUp / padDown / padLeft / padRight | ||
*** | *** padJoyUp / padJoyUpRight / padJoyRight / padJoyDownRight / padJoyDown / padJoyDownLeft / padJoyLeft / padJoyUpLeft | ||
**** padA / padB / padX / padY | *** padLjoyUp / padLjoyUpRight / padLjoyRight / padLjoyDownRight / padLjoyDown / padLjoyDownLeft / padLjoyLeft / padLjoyUpLeft | ||
*** padRjoyUp / padRjoyUpRight / padRjoyRight / padRjoyDownRight / padRjoyDown / padRjoyDownLeft / padRjoyLeft / padRjoyUpLeft | |||
*** padA / padB / padX / padY | |||
**** | *** padLB / padLT / padLSB | ||
*** | *** padRB / padRT / padRSB | ||
**** | *** padBack / padStart | ||
**** | ** Xbox- && PlayStation-specific: | ||
**** | *** joyUp / joyUpRight / joyRight / joyDownRight / joyDown / joyDownLeft / joyLeft / joyUpLeft | ||
**** | *** LjoyUp / LjoyUpRight / LjoyRight / LjoyDownRight / LjoyDown / LjoyDownLeft / LjoyLeft / LjoyUpLeft | ||
*** RjoyUp / RjoyUpRight / RjoyRight / RjoyDownRight / RjoyDown / RjoyDownLeft / RjoyLeft / RjoyUpLeft | |||
** Xbox-specific with {{hl|Xbox}} as first parameter: | |||
*** A / B / X / Y | |||
*** LB / LT / LSB | |||
*** RB / RT / RSB | |||
*** Back / Start | |||
** PlayStation-specific with {{hl|PlayStation}} as first parameter: | |||
*** Cross / Circle / Square / Triangle (also supports A / B / X / Y) | |||
*** L1 / L2 / L3 (also supports LB / LT / LSB) | |||
*** R1 / R2 / R3 (also supports RB / RT / RSB) | |||
*** Select / Start (also supports Back) | |||
*** Options / Touchpad / Share | |||
** pre-formatted key: | ** pre-formatted key: | ||
*** escape / enter / delete / backspace | *** escape / enter / delete / backspace | ||
*** up / down / left / right | *** up / down / left / right | ||
*** pageUp / pageDown | *** pageUp / pageDown | ||
*** control / | *** ctrl / control / LCtrl | ||
*** | *** RCtrl / RControl | ||
*** | *** RAlt | ||
*** shift | *** shift / LShift | ||
*** | *** RShift | ||
*** tabulation | *** caps lock / capslock / caps | ||
*** | *** tab / 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> | |||
|result5= {{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|RMB}} | |example5= <nowiki>{{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|MSW}}{{Controls/Control|MSWU}}{{Controls/Control|MSWD}}{{Controls/Control|RMB}}</nowiki> | ||
|example6= <nowiki>{{Controls|escape}}{{Controls|enter}}{{Controls|delete}}{{Controls|backspace}}{{Controls|up}}{{Controls|down}}{{Controls|left}}{{Controls|right}}{{Controls|pageup}}{{Controls|pagedown}}</nowiki> | |result5= {{Controls/Control|mouse}}{{Controls/Control|LMB}}{{Controls/Control|LMB2}}{{Controls/Control|MMB}}{{Controls/Control|MSW}}{{Controls/Control|MSWU}}{{Controls/Control|MSWD}}{{Controls/Control|RMB}} | ||
|result6= {{Controls|escape}}{{Controls|enter}}{{Controls|delete}}{{Controls|backspace}}{{Controls|up}}{{Controls|down}}{{Controls|left}}{{Controls|right}}{{Controls|pageup}}{{Controls|pagedown}} | |||
|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> | |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> | ||
|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}} | |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}} | ||
|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|caps lock}}{{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|caps lock}}{{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><br> | <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|padLB}}{{Controls/Control|padLT}}{{Controls/Control|padLSB}}{{Controls/Control|padRB}}{{Controls/Control|padRT}}{{Controls/Control|padRSB}} | |||
{{Controls/Control|padBack}}{{Controls/Control|padStart}}</nowiki><br> | |||
<nowiki>{{Controls/Control|padjoymove}}{{Controls/Control|padjoyupdown}}{{Controls/Control|padjoyleftright}} | |||
{{Controls/Control|padjoyup}}{{Controls/Control|padjoyupright}}{{Controls/Control|padjoyright}}{{Controls/Control|padjoydownright}}{{Controls/Control|padjoydown}} | |||
{{Controls/Control|padjoydownleft}}{{Controls/Control|padjoyleft}}{{Controls/Control|padjoyupleft}} | |||
{{Controls/Control|padljoymove}}{{Controls/Control|padljoyupdown}}{{Controls/Control|padljoyleftright}} | |||
{{Controls/Control|padljoyup}}{{Controls/Control|padljoyright}}{{Controls/Control|padljoydown}}{{Controls/Control|padljoyleft}} | |||
{{Controls/Control|padrjoymove}}{{Controls/Control|padrjoyupdown}}{{Controls/Control|padrjoyleftright}} | |||
{{Controls/Control|padrjoyup}}{{Controls/Control|padrjoyright}}{{Controls/Control|padrjoydown}}{{Controls/Control|padrjoyleft}}</nowiki> | |||
|result9= <nowiki/> | |result9= <nowiki/> | ||
{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}{{Controls|padBack}}{{Controls|padStart}}<br> | {{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|padLB}}{{Controls/Control|padLT}}{{Controls/Control|padLSB}}{{Controls/Control|padRB}}{{Controls/Control|padRT}}{{Controls/Control|padRSB}} | |||
{{Controls/Control|padBack}}{{Controls/Control|padStart}}<br> | |||
{{Controls/Control|padjoymove}}{{Controls/Control|padjoyupdown}}{{Controls/Control|padjoyleftright}} | |||
{{Controls/Control|padjoyup}}{{Controls/Control|padjoyupright}}{{Controls/Control|padjoyright}}{{Controls/Control|padjoydownright}}{{Controls/Control|padjoydown}} | |||
{{Controls/Control|padjoydownleft}}{{Controls/Control|padjoyleft}}{{Controls/Control|padjoyupleft}} | |||
{{Controls/Control|padljoymove}}{{Controls/Control|padljoyupdown}}{{Controls/Control|padljoyleftright}} | |||
{{Controls/Control|padljoyup}}{{Controls/Control|padljoyright}}{{Controls/Control|padljoydown}}{{Controls/Control|padljoyleft}} | |||
{{Controls/Control|padrjoymove}}{{Controls/Control|padrjoyupdown}}{{Controls/Control|padrjoyleftright}} | |||
{{Controls/Control|padrjoyup}}{{Controls/Control|padrjoyright}}{{Controls/Control|padrjoydown}}{{Controls/Control|padrjoyleft}} | |||
|example10= <nowiki/> | |||
<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|playstation|up}}{{Controls/Control|playstation|down}}{{Controls/Control|playstation|left}}{{Controls/Control|playstation|right}} | |||
{{Controls/Control|playstation|A}}{{Controls/Control|playstation|B}}{{Controls/Control|playstation|X}}{{Controls/Control|playstation|Y}} | |||
{{Controls/Control|playstation|LB}}{{Controls/Control|playstation|LT}}{{Controls/Control|playstation|LSB}}{{Controls/Control|playstation|RB}}{{Controls/Control|playstation|RT}}{{Controls/Control|playstation|RSB}} | |||
{{Controls/Control|playstation|Back}}{{Controls/Control|playstation|Start}}</nowiki><br> | |||
<nowiki>{{Controls/Control|playstation|Options}}{{Controls/Control|playstation|Touchpad}}{{Controls/Control|playstation|Share}}</nowiki> | |||
|result10= <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}} | |||
<hr> | |||
{{Controls/Control|playstation|up}}{{Controls/Control|playstation|down}}{{Controls/Control|playstation|left}}{{Controls/Control|playstation|right}} | |||
{{Controls/Control|playstation|A}}{{Controls/Control|playstation|B}}{{Controls/Control|playstation|X}}{{Controls/Control|playstation|Y}} | |||
{{Controls/Control|playstation|LB}}{{Controls/Control|playstation|LT}}{{Controls/Control|playstation|LSB}}{{Controls/Control|playstation|RB}}{{Controls/Control|playstation|RT}}{{Controls/Control|playstation|RSB}} | |||
{{Controls/Control|playstation|Back}}{{Controls/Control|playstation|Start}}<br> | |||
{{Controls/Control|playstation|Options}}{{Controls/Control|playstation|Touchpad}}{{Controls/Control|playstation|Share}} | |||
}}</noinclude> | }}</noinclude> |
Latest revision as of 19:29, 29 March 2024
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
- mouseSW or MSW
- mouseSWU or MSWU
- mouseSWD or MSWD
- generic pad buttons:
- padUp / padDown / padLeft / padRight
- padJoyUp / padJoyUpRight / padJoyRight / padJoyDownRight / padJoyDown / padJoyDownLeft / padJoyLeft / padJoyUpLeft
- padLjoyUp / padLjoyUpRight / padLjoyRight / padLjoyDownRight / padLjoyDown / padLjoyDownLeft / padLjoyLeft / padLjoyUpLeft
- padRjoyUp / padRjoyUpRight / padRjoyRight / padRjoyDownRight / padRjoyDown / padRjoyDownLeft / padRjoyLeft / padRjoyUpLeft
- padA / padB / padX / padY
- padLB / padLT / padLSB
- padRB / padRT / padRSB
- padBack / padStart
- Xbox- && PlayStation-specific:
- joyUp / joyUpRight / joyRight / joyDownRight / joyDown / joyDownLeft / joyLeft / joyUpLeft
- LjoyUp / LjoyUpRight / LjoyRight / LjoyDownRight / LjoyDown / LjoyDownLeft / LjoyLeft / LjoyUpLeft
- RjoyUp / RjoyUpRight / RjoyRight / RjoyDownRight / RjoyDown / RjoyDownLeft / RjoyLeft / RjoyUpLeft
- Xbox-specific with Xbox as first parameter:
- A / B / X / Y
- LB / LT / LSB
- RB / RT / RSB
- Back / Start
- PlayStation-specific with PlayStation as first parameter:
- Cross / Circle / Square / Triangle (also supports A / B / X / Y)
- L1 / L2 / L3 (also supports LB / LT / LSB)
- R1 / R2 / R3 (also supports RB / RT / RSB)
- Select / Start (also supports Back)
- Options / Touchpad / Share
- pre-formatted key:
- escape / enter / delete / backspace
- up / down / left / right
- pageUp / pageDown
- ctrl / control / LCtrl
- RCtrl / RControl
- RAlt
- shift / LShift
- RShift
- caps lock / capslock / caps
- tab / 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|MSW}}{{Controls/Control|MSWU}}{{Controls/Control|MSWD}}{{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|caps lock}}{{Controls/Control|tabulation}}{{Controls/Control|lwin}}{{Controls/Control|windows}}{{Controls/Control|rwin}}{{Controls/Control|rwindows}} | CtrlCtrlRCtrlRCtrlAltGr⇧ ShiftRShift ⇧🔒CapsLock↹ 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|padLB}}{{Controls/Control|padLT}}{{Controls/Control|padLSB}}{{Controls/Control|padRB}}{{Controls/Control|padRT}}{{Controls/Control|padRSB}}
{{Controls/Control|padBack}}{{Controls/Control|padStart}} {{Controls/Control|padjoymove}}{{Controls/Control|padjoyupdown}}{{Controls/Control|padjoyleftright}} {{Controls/Control|padjoyup}}{{Controls/Control|padjoyupright}}{{Controls/Control|padjoyright}}{{Controls/Control|padjoydownright}}{{Controls/Control|padjoydown}} {{Controls/Control|padjoydownleft}}{{Controls/Control|padjoyleft}}{{Controls/Control|padjoyupleft}} {{Controls/Control|padljoymove}}{{Controls/Control|padljoyupdown}}{{Controls/Control|padljoyleftright}} {{Controls/Control|padljoyup}}{{Controls/Control|padljoyright}}{{Controls/Control|padljoydown}}{{Controls/Control|padljoyleft}} {{Controls/Control|padrjoymove}}{{Controls/Control|padrjoyupdown}}{{Controls/Control|padrjoyleftright}} {{Controls/Control|padrjoyup}}{{Controls/Control|padrjoyright}}{{Controls/Control|padrjoydown}}{{Controls/Control|padrjoyleft}} |
↟↡↞↠
↧↦↤↥
↜↚↺↝↛↻
⇺⇻ ⇳⇕⇔ ⇈⇗⇉⇘⇊ ⇙⇇⇖ ⇱⇅⇄ ↾⇀⇂↼ ⇲⇵⇆ ↿⇁⇃↽ |
{{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|playstation|up}}{{Controls/Control|playstation|down}}{{Controls/Control|playstation|left}}{{Controls/Control|playstation|right}}
{{Controls/Control|playstation|A}}{{Controls/Control|playstation|B}}{{Controls/Control|playstation|X}}{{Controls/Control|playstation|Y}}
{{Controls/Control|playstation|LB}}{{Controls/Control|playstation|LT}}{{Controls/Control|playstation|LSB}}{{Controls/Control|playstation|RB}}{{Controls/Control|playstation|RT}}{{Controls/Control|playstation|RSB}}
{{Controls/Control|playstation|Back}}{{Controls/Control|playstation|Start}} |
↟↡↞↠ ⇓⇒⇐⇑ ↘↖↺↙↗↻ ⇺⇻ ↟↡↞↠
⇣⇢⇠⇡
↰↲↺↱↳↻
⇷⇸ |