Template:Key: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (the long key names can now be translated)
(category)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<kbd class="keyboard-key nowrap">{{#switch: {{{1}}}
<includeonly><kbd class="keyboard-key nowrap">{{#switch: {{{1}}}
  | alt = {{Translation|ALT}}
  | alt = {{Translation|ALT}}
  | shift = {{Translation|SHIFT}}
  | shift = {{Translation|SHIFT}}
Line 8: Line 8:
  | mwd = {{Translation|Mouse wheel down}}
  | mwd = {{Translation|Mouse wheel down}}
  | tab = {{Translation|TAB}}
  | tab = {{Translation|TAB}}
  | numplus = {{Translation|PAD +}}
  | numplus = {{Translation|Numpad +}}
  | numminus = {{Translation|PAD -}}
  | numminus = {{Translation|Numpad -}}
  | esc = {{Translation|ESC}}
  | esc = {{Translation|ESC}}
  | ctrl = {{Translation|CTRL}}
  | ctrl = {{Translation|CTRL}}
Line 15: Line 15:
  | enter = {{Translation|ENTER}}
  | enter = {{Translation|ENTER}}
  | grave = {{Translation|GRAVE}}
  | grave = {{Translation|GRAVE}}
| cmd = {{Translation|Command}}
  | {{{1}}}
  | {{{1}}}
}}</kbd>
}}</kbd></includeonly><noinclude>
{{Documentation}}
[[Category:Formatting templates‎]]
</noinclude>

Latest revision as of 12:35, 27 August 2023

[View] [Edit] [Page history]

Documentation

Usage

This template can be used to format key binds. For example {{key|ctrl}} results in CTRL.

Keybindings should be formatted with Template:Keybinding, not this template directly.

Translations

This template supports translations for the following keys:

alt = {{Translation|ALT}}
shift = {{Translation|SHIFT}}
rmb = {{Translation|Right mouse button}}
lmb = {{Translation|Left mouse button}}
mmb = {{Translation|Middle mouse button}}
mwu = {{Translation|Mouse wheel up}}
mwd = {{Translation|Mouse wheel down}}
tab = {{Translation|TAB}}
numplus = {{Translation|Numpad +}}
numminus = {{Translation|Numpad -}}
esc = {{Translation|ESC}}
ctrl = {{Translation|CTRL}}
space = {{Translation|SPACE}}
enter = {{Translation|ENTER}}
grave = {{Translation|GRAVE}}
cmd = {{Translation|Command}}
For example {{key|ctrl}} on a German page would result in STRG.
List of all templates