Template:Key: Difference between revisions
From Official Barotrauma Wiki
Jade Harley (talk | contribs) mNo edit summary |
mNo edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{doc}}[[Category:Templates]] Credit to "Nicolae 'Xelu' Berbece" of "Those Awesome Guys" for key images. | {{doc}}[[Category:Templates]] Credit to "Nicolae 'Xelu' Berbece" of "Those Awesome Guys" for key images. | ||
<includeonly><onlyinclude>{{#vardefine:inputmethod|{{#switch:{{lc:{{{1}}}}}|mouse=mouse|#default=keyboard | <includeonly><onlyinclude>{{#vardefine:inputmethod|{{#switch:{{lc:{{{1}}}}}|mouse=mouse|#default=keyboard}}}}<!-- | ||
Mouse Buttons: | Mouse Buttons: | ||
Line 8: | Line 8: | ||
| secondary | two | 2 | right | r = Right | | secondary | two | 2 | right | r = Right | ||
| #default = Simple | | #default = Simple | ||
}}}}[[File: | }}}}[[File:Mouse {{#var:button}} Key {{ucfirst:{{{theme|Light}}}}}.png|x{{{size|28px}}}|{{#ifeq:{{#var:button}}|Simple||{{#var:button}} Mouse}}|link={{{link|Controls Menu#Default Keybindings}}}]]}}<!-- | ||
Keyboard Keys: | Keyboard Keys: | ||
Line 27: | Line 27: | ||
| a = A | | a = A | ||
| alt | left alt | lalt | right alt | ralt = Alt | | alt | left alt | lalt | right alt | ralt = Alt | ||
| down = | | down = Arrow Down | ||
| left = | | left = Arrow Left | ||
| right = | | right = Arrow Right | ||
| up = | | up = Arrow Up | ||
| asterisk | * = Asterisk | | asterisk | * = Asterisk | ||
| b = B | | b = B | ||
| backspace | bksp = Backspace{{#if:{{{alt|}}}|_Alt}} | | backspace | bksp = Backspace{{#if:{{{alt|}}}|_Alt}} | ||
| [ | left bracket | lbracket = | | [ | left bracket | lbracket = Bracket Left | ||
| ] | right bracket | rbracket = | | ] | right bracket | rbracket = Bracket Right | ||
| c = C | | c = C | ||
| caps lock | caps = | | caps lock | caps = Caps Lock | ||
| com | cmd | command = Command | | com | cmd | command = Command | ||
| ctrl | left ctrl | lctrl | right ctrl | rctrl = Ctrl | | control | ctrl | left control | left ctrl | lctrl | right control | right ctrl | rctrl = Ctrl | ||
| d = D | | d = D | ||
| del | delete = Del | | del | delete = Del | ||
Line 59: | Line 59: | ||
| f11 = F11 | | f11 = F11 | ||
| f12 = F12 | | f12 = F12 | ||
| fn | function = Function | |||
| g = G | | g = G | ||
| h = H | | h = H | ||
Line 68: | Line 69: | ||
| l = L | | l = L | ||
| m = M | | m = M | ||
| < | mark left | less than | less | lt = | | < | mark left | less than | less | lt = Mark Left | ||
| > | mark right | greater than | greater | gt = | | > | mark right | greater than | greater | gt = Mark Right | ||
| - | minus = Minus | | - | minus = Minus | ||
| n = N | | n = N | ||
| num lock = | | num lock = Num Lock | ||
| o = O | | o = O | ||
| p = P | | p = P | ||
Line 78: | Line 79: | ||
| page up | pg up | pgup = Page_Up | | page up | pg up | pgup = Page_Up | ||
| + | plus = Plus{{#if:{{{tall|}}}|_Tall}} | | + | plus = Plus{{#if:{{{tall|}}}|_Tall}} | ||
| print screen | print | prt scrn | prtscrn = | | print screen | print | prt scrn | prtscrn = Print Screen | ||
| q = Q | | q = Q | ||
| ? | question | question mark = Question | | ? | question | question mark = Question | ||
Line 98: | Line 99: | ||
| y = Y | | y = Y | ||
| z = Z | | z = Z | ||
}}}}[[File:{{#var:key}} | }}}}[[File:{{#var:key}} Key {{ucfirst:{{{theme|Dark}}}}}.png|x{{{size|28px}}}|{{#var:key}}|link={{{link|Controls Menu#Default Keybindings}}}]]}}</onlyinclude></includeonly> |
Latest revision as of 19:59, 16 November 2023
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 .
For mouse buttons:
{{key | mouse | button}}
Example
Press {{Key|Alt}} and {{Key|f4}} at the same time.
produces:
Press and at the same time.
Themes
Mouse Buttons
Keyboard Keys
Default theme: Dark
Numbers
Letters & Punctuation
Special
Alternate Models
The above documentation is transcluded from Template:Key/doc. (edit | history)
Credit to "Nicolae 'Xelu' Berbece" of "Those Awesome Guys" for key images.