Template:Key/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(actually everything should be (and is) using the keybinding template)
m (words)
 
Line 2: Line 2:
This template can be used to format key binds. For example ''<nowiki>{{key|ctrl}}</nowiki>'' results in {{key|ctrl}}.
This template can be used to format key binds. For example ''<nowiki>{{key|ctrl}}</nowiki>'' results in {{key|ctrl}}.


Keybindings on content pages should be formatted with [[:Template:Keybinding]], no this template directly.
Keybindings should be formatted with [[:Template:Keybinding]], not this template directly.


== Translations ==
== Translations ==

Latest revision as of 19:20, 4 October 2023

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.