User:Jade Harley/Sandbox04: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude>
{{doc}}[[Category:Templates]]
<includeonly>{{#vardefine:inputmethod|{{#switch:{{lc:{{{1|}}}}}|controller=controller|mouse=mouse|#default=keyboard}}}}<!--
<onlyinclude>{{#vardefine:inputmethod|{{#switch:{{lc:{{{input|{{{1}}}}}}}}|mouse=mouse|#default=keyboard}}}}<!--
-->{{#vardefine:button|{{#switch:{{#var:inputmethod}}
-->{{#vardefine:button|{{#switch:{{#var:inputmethod}}
| controller={{#switch:{{lc:{{{key|{{{2}}}}}}}}
<!-- Mouse Buttons -->
| leftstick | left stick | left thumbstick | lstick = Left Stick
| mouse = {{#switch:{{lc:{{{key|{{{2}}}}}}}}
| rightstick | right stick | right thumbstick | rstick = Right Stick
| primary | one | 1 | left | l = Left
| left trigger | lt = LT
| secondary | two | 2 | right | r = Right
| left bumper | lb = LB
| three | 3 | middle | m = Middle
| right trigger | rt = RT
| four | 4 = Four
| right bumper | rb = RB
| five | 5 = Five
| left d-pad | left dpad | l = Left
| scroll up | up = Up
| right d-pad | right dpad | r = Right
| scroll down | down = Down
| up d-pad | up dpad | u = Up
| scroll | scroll wheel = Scroll
}}
| #default = {{ucfirst:{{{key|{{{2}}}}}}}}}}
}}}}
<!-- Keyboard Keys -->
 
| keyboard = {{#switch:{{lc:{{{key|{{{2}}}}}}}}
 
| caps lock = ⇪ Caps Lock
 
| shift = ⇧ Shift
{{#vardefine:console|{{#if:{{{console|}}}|{{lc:{{{console}}}}}|{{#if:{{{2|}}}|{{lc:{{{1}}}}}}}}}}}<!--
| lshift | left shift = Left Shift
-->{{#vardefine:key|{{#switch:{{lc:{{#if:{{{key|}}}|{{{key}}}|{{{2}}}}}}}
| rshift | right shift = ⇧ Right Shift
| leftstick
| return = ↵ Return
| left stick
| enter = ↵ Enter
| left thumbstick
| escape | esc = Esc
| lstick = Left Stick
| control | ctrl = Ctrl
| rightstick
| left control | lctrl | left ctrl = Left Ctrl
| right stick
| right control | rctrl | right ctrl = Right Ctrl
| right thumbstick
| alt = Alt
| rstick = Right Stick
| lalt | left alt = Left Alt
| left trigger
| ralt | right alt = Right Alt
| lt = LT
| cmd = ⌘ Cmd
| left bumper
| command = ⌘ Command
| lb = LB
| opt | option = ⌥ Option
| right trigger
| tab = Tab ↹
| rt = RT
| backspace = ← Backspace
| right bumper
| space = Spacebar
| rb = RB
| super = ⊞ Super
| left d-pad
| menu = Menu
| left dpad
| windows = ⊞ Windows
| l = Left
| up =
| right d-pad
| down = ↓
| right dpad
| left =
| r = Right
| right =
| up d-pad
| #default = {{ucfirst:{{{key|{{{1|{{{2}}}}}}}}}}}}}
| up dpad
}}}}<!-- Time to actually display stuff:
| u = Up
-->{{#switch:{{#var:inputmethod}}
| down d-pad
| mouse = [[File:Keyboard Black Mouse {{#var:button}}.png|{{{size|20px}}}|alt={{#var:button}}|link={{{link|Controls Menu#Default Keybindings}}}]]
| down dpad
| keyboard = <span class="key">[[Controls Menu#Default Keybindings|<kbd class="keysLight">{{#var:button}}</kbd>]]</span>
| d = Down
}}</onlyinclude>
| d-pad
| dpad = Dpad
| m = Menu
| o = Circle
| touchpad = Touch Pad
| lmb
| left click = Left
| rmb
| right click = Right
| #default = {{ucfirst:{{#if:{{{key|}}}|{{{key}}}|{{{2}}}}}}}
}}}}<!--
-->{{#vardefine:keyboard|{{lc:{{#if:{{{keyboard|}}}|{{{keyboard}}}|{{#if:{{{2|}}}||{{{1|}}}}}}}}}}}<!--
 
-->{{#if: {{#var:console}} | [[File:{{#switch: {{#var:console}}
|playstation 3
|ps3=PS3
|ps
|playstation
|playstation 4
|ps4=PS4
|psmove
|move=PSMove
|xbox360
|360=360
|gesture=Gesture
|keyboard
|mouse=Keyboard
|oculus=Oculus
|remote=Remote
|steam=Steam
|switch=Switch
|vita=Vita
|vive=Vive
|wii=Wii
|wiiu=WiiU
|xbox
|xbox one
|xboxone
|xbone
|xbox1=XboxOne
|ouya=Ouya
|undefined}}<!--
 
-->{{#ifeq:{{#var:console}}|mouse|{{#switch: {{lc:{{{variant}}}}}
|dark=_White_Mouse_
|light=_Black_Mouse_
|#default = _White_Mouse_
}}}} {{#var:key}}.png|alt={{#var:key}}|{{{size|20px}}}|{{{link|Controls}}}|{{#var:key}}]] }}<!--the above depends on the presence of keyname.png, and only affects console keys, so it doesn't matter for now. Leaving it for future purposes
 
The following handles the keyboard keys display
 
-->{{#if: {{#var:keyboard}} | <span class="key">[[Controls_Menu|<kbd class="{{#switch: {{lc:{{{keyboardvariant}}}}} |dark=keysDark|light=keysLight|keysLight}}"><!--
 
-->{{#switch:{{#var:keyboard}}
 
<!--Standard keyboard values-->
|caps lock = ⇪ Caps Lock
|shift = ⇧ Shift
|lshift
|left shift = ⇧ Left Shift
|rshift
|right shift = ⇧ Right Shift
|return = ↵ Return
|enter = ↵ Enter
|esc = Esc
|ctrl = Ctrl
|lctrl
|left ctrl = Left Ctrl
|rctrl
|right ctrl = Right Ctrl
|alt = Alt
|lalt
|left alt = Left Alt
|ralt
|right alt = Right Alt
|cmd = ⌘ Cmd
|command = ⌘ Command
|opt
|option = ⌥ Option
|tab = Tab ↹
|backspace = ← Backspace
|space = Spacebar
|super = ⊞ Super
|menu = ≣ Menu
|windows = ⊞ Windows
|up = ↑
|down = ↓
|left = ←
|right = →
|#default = {{ucfirst:{{#var:keyboard}}}}
}}</kbd>]]</span>
}}</includeonly>

Revision as of 01:51, 13 July 2022