Template:Key: Difference between revisions
From Official Barotrauma Wiki
Jade Harley (talk | contribs) mNo edit summary |
Jade Harley (talk | contribs) 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
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.