Template:Key: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 98: Line 98:
| y = Y
| y = Y
| z = Z
| z = Z
}}}}[[File:{{#var:key}} Key {{ucfirst:{{{theme|Dark}}}}}.png|x{{{size|28px}}}|{{#var:key}}|link={{{link|Controls Menu#Default Keybindings}}}]]}}</onlyinclude></includeonly>
}}}}[[File:{{#var:key}} Key {{ucfirst:{{{theme|Dark}}}}}.png|x{{{size|28px}}}|<nowiki>{{#var:key}}</nowiki>|link={{{link|Controls Menu#Default Keybindings}}}]]}}</onlyinclude></includeonly>

Revision as of 06:20, 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 {{#var:key}}.

For mouse buttons:

{{key | mouse | button}}

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

Example

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

produces:
Press {{#var:key}} and {{#var:key}} at the same time.

Themes

Light: {{#var:key}} Dark: {{#var:key}}

Mouse Buttons

Default theme: Light
Left MouseMiddle MouseRight Mouse

Keyboard Keys

Default theme: Dark

Numbers

{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}

Letters & Punctuation

{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}
{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}

Special

{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}
{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}

Alternate Models

{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}{{#var:key}}

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