Controls/Control – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix PlayStation icons size)
m (Add documentation and example)
Line 33: Line 33:
| padr2
| padr2
| padr3
| padr3
| padback
| padselect


| padback
| padstart
| padstart
| padup
| padup
Line 49: Line 50:
|padtriangle= <span class="control-pad-green"><span style="font-size: 1.33em; position: relative; top: .1em">&#9651;</span></span>
|padtriangle= <span class="control-pad-green"><span style="font-size: 1.33em; position: relative; top: .1em">&#9651;</span></span>
|padback= <span class="control-pad-white">back</span>
|padback= <span class="control-pad-white">back</span>
|padstart= <span class="control-pad-white">start/span>
|padselect= <span class="control-pad-white">select</span>
|padstart= <span class="control-pad-white">start</span>
|padup= <span class="control-pad">&uarr;</span>
|padup= <span class="control-pad">&uarr;</span>
|paddown= <span class="control-pad">&darr;</span>
|paddown= <span class="control-pad">&darr;</span>
Line 111: Line 113:
*** mouseR or RMB
*** mouseR or RMB
*** mouseM or MMB
*** 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:
** pre-formatted key:
*** escape / enter / delete / backspace
*** escape / enter / delete / backspace
*** up / down / left / right
*** up / down / left / right
*** pageup / pagedown
*** pageUp / pageDown
*** control / lctrl
*** control / lCtrl
*** rctrl / rcontrol
*** rCtrl / rControl
*** ralt
*** rAlt
*** shift
*** shift
*** rshift
*** rShift
*** tabulation
*** tabulation
*** lwin / windows
*** lWin / windows
*** rwin / rwindows
*** 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|ctrL}} will become {{hl|CtrL}})
** 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}}
Line 153: Line 168:


|example9= <nowiki/>
|example9= <nowiki/>
<nowiki>{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}</nowiki><br>
<nowiki>{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}{{Controls|padBack}}{{Controls|padStart}}</nowiki><br>
<nowiki>{{Controls|padcross}}{{Controls|padcircle}}{{Controls|padsquare}}{{Controls|padtriangle}}</nowiki>
<nowiki>{{Controls|padcross}}{{Controls|padcircle}}{{Controls|padsquare}}{{Controls|padtriangle}}{{Controls|padSelect}}{{Controls|padStart}}</nowiki>
|result9= <nowiki/>
|result9= <nowiki/>
{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}<br>
{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}{{Controls|padBack}}{{Controls|padStart}}<br>
{{Controls|padcross}}{{Controls|padcircle}}{{Controls|padsquare}}{{Controls|padtriangle}}<br>
{{Controls|padcross}}{{Controls|padcircle}}{{Controls|padsquare}}{{Controls|padtriangle}}{{Controls|padSelect}}{{Controls|padStart}}


}}</noinclude>
}}</noinclude>

Revision as of 13:02, 28 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)
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|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+}}
{{Controls|num7}}{{Controls|num8}}{{Controls|num9}}
{{Controls|num4}}{{Controls|num5}}{{Controls|num6}}
{{Controls|num1}}{{Controls|num2}}{{Controls|num3}}
{{Controls|num0}}{{Controls|num.}}{{Controls|numenter}}

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

{{Controls|padA}}{{Controls|padB}}{{Controls|padX}}{{Controls|padY}}{{Controls|padBack}}{{Controls|padStart}}
{{Controls|padcross}}{{Controls|padcircle}}{{Controls|padsquare}}{{Controls|padtriangle}}{{Controls|padSelect}}{{Controls|padStart}}

ABXYbackstart
selectstart