Template:Key: Difference between revisions
From Official Barotrauma Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:console|{{#if:{{{console|}}}|{{lc:{{{console}}}}}|{{#if:{{{2|}}}|{{lc:{{{1}}}}}}}}}}}<!-- | <includeonly>{{#vardefine:console|{{#if:{{{console|}}}|{{lc:{{{console}}}}}|{{#if:{{{2|}}}|{{lc:{{{1}}}}}}}}}}}<!-- | ||
-->{{#vardefine:key|{{#switch:{{lc:{{#if:{{{key|}}}|{{{key}}}|{{{2}}}}}}} | -->{{#vardefine:key|{{#switch:{{lc:{{#if:{{{key|}}}|{{{key}}}|{{{2}}}}}}} | ||
| leftstick | | leftstick | ||
Line 76: | Line 76: | ||
|light=_Black_Mouse_ | |light=_Black_Mouse_ | ||
|#default = _White_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 | }}}} {{#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 | The following handles the keyboard keys display | ||
Line 119: | Line 119: | ||
|right = → | |right = → | ||
|#default = {{ucfirst:{{#var:keyboard}}}} | |#default = {{ucfirst:{{#var:keyboard}}}} | ||
}}]]</span> | }}</kbd>]]</span> | ||
}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude> | }}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude> |
Revision as of 17:13, 7 January 2021
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 ⇧ Shift.
For mouse buttons:
{{key | mouse | button}}
Example
Press {{Key|Alt}} and {{Key|f4}} at the same time.
produces:
Press Alt and F4 at the same time.
Themes
Light: Spacebar Dark: Spacebar
Mouse Buttons
Default theme: Light
LeftMiddleRightMouse
Keyboard Keys
Default theme: Dark
Numbers
Letters & Punctuation
ABCDEFGHIJKLMNOPQRSTUVWXYZ
*[]<>-+?"
;\Spacebar~
Special
Alt↓←→↑BkspCaps⌘ CmdCtrlDelEnd↵ EnterEscHomeInsNum lockPage downPage upPrint screen⇧ ShiftTab ↹⊞ Windows
F1F2F3F4F5F6F7F8F9F10F11F12
Alternate Models
The above documentation is transcluded from Template:Key/doc. (edit | history)