Template:Key: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 8: Line 8:
| secondary | two | 2 | right | r = Right
| secondary | two | 2 | right | r = Right
| #default = Simple
| #default = Simple
}}}}[[File:Mouse_{{#var:button}}_Key_{{#var:theme}}.png|x{{{size|28px}}}|alt= {{#ifeq:{{#var:button}}|Simple||{{#var:button}}}}|link={{{link|Controls Menu#Default Keybindings}}}]]}}<!--
}}}}[[File:Mouse_{{#var:button}}_Key_{{#var:theme}}.png|x{{{size|28px}}}|alt ={{#ifeq:{{#var:button}}|Simple||{{#var:button}}}}|link={{{link|Controls Menu#Default Keybindings}}}]]}}<!--


Keyboard Keys:
Keyboard Keys:
Line 98: Line 98:
| y = Y
| y = Y
| z = Z
| z = Z
}}}}[[File:{{#var:key}}_Key_{{#var:theme}}.png|x{{{size|28px}}}|alt= {{#var:key}}|link={{{link|Controls Menu#Default Keybindings}}}]]}}</onlyinclude></includeonly>
}}}}[[File:{{#var:key}}_Key_{{#var:theme}}.png|x{{{size|28px}}}|alt ={{#var:key}}|link={{{link|Controls Menu#Default Keybindings}}}]]}}</onlyinclude></includeonly>

Revision as of 04:19, 13 July 2022

Documentation

When used, this template displays game controls, supporting both keyboard keys and controller buttons. Images will need to be added for the latter.

Those keys are also links to the Controls page, although this can be changed to another page by editing the relevant link in Template:Key.

Usage

{{key | button}}

  • button is the keyboard key to be pressed. Some key inputs, such as Shift or Tab will automatically add symbols or other formatting. Any other inputs will be output as they are with the first letter capitalized.
  • These keys are not case sensitive, so shift and Shift will both give alt =Shift.

For mouse buttons:

{{key | mouse | button}}

  • left, middle, right and none are accepted, giving respectively: alt =Left, alt =Middle, alt =Right and alt =

Example

Press {{Key|Alt}} and {{Key|f4}} at the same time.

produces:
Press alt =Alt and alt =F4 at the same time.

Themes

Light: alt =Space Dark: alt =Space

Mouse Buttons

Default theme: Light
alt =Leftalt =Middlealt =Rightalt =

Keyboard Keys

Default theme: Dark

Numbers

alt =0alt =1alt =2alt =3alt =4alt =5alt =6alt =7alt =8alt =9

Letters & Punctuation

alt =Aalt =Balt =Calt =Dalt =Ealt =Falt =Galt =Halt =Ialt =Jalt =Kalt =Lalt =Malt =Nalt =Oalt =Palt =Qalt =Ralt =Salt =Talt =Ualt =Valt =Walt =Xalt =Yalt =Z
alt =Asteriskalt =Bracket_Leftalt =Bracket_Rightalt =Mark_Leftalt =Mark_Rightalt =Minusalt =Plusalt =Questionalt =Quotealt =Semicolonalt =Slashalt =Spacealt =Tilda

Special

alt =Altalt =Arrow_Downalt =Arrow_Leftalt =Arrow_Rightalt =Arrow_Upalt =Backspacealt =Caps_Lockalt =Commandalt =Ctrlalt =Delalt =Endalt =Enteralt =Escalt =Homealt =Insertalt =Num_Lockalt =Page_Downalt =Page_Upalt =Print_Screenalt =Shiftalt =Tabalt =Win
alt =F1alt =F2alt =F3alt =F4alt =F5alt =F6alt =F7alt =F8alt =F9alt =F10alt =F11alt =F12

Alternate Models

alt =Backspace_Altalt =Enter_Altalt =Enter_Tallalt =Plus_Tallalt =Shift_Alt

Credit to "Nicolae 'Xelu' Berbece" of "Those Awesome Guys" for key images.