Controls/Control – Template

From Bohemia Interactive Community
< Template:Controls
Revision as of 16:31, 29 June 2022 by Lou Montana (talk | contribs) (Add specific consoles support)
Jump to navigation Jump to search

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)
Examples
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}} MouseLeft Mouse ButtonDouble Left Mouse ButtonMiddle Mouse ButtonRight Mouse Button
{{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+}}
{{Controls/Control|num7}}{{Controls/Control|num8}}{{Controls/Control|num9}}
{{Controls/Control|num4}}{{Controls/Control|num5}}{{Controls/Control|num6}}
{{Controls/Control|num1}}{{Controls/Control|num2}}{{Controls/Control|num3}}
{{Controls/Control|num0}}{{Controls/Control|num.}}{{Controls/Control|numenter}}

NUM /NUM *NUM -NUM +
NUM 7NUM 8NUM 9
NUM 4NUM 5NUM 6
NUM 1NUM 2NUM 3
NUM 0NUM .NUM Enter ↵

{{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}}