Difference between revisions of "Template:Key press"

From War Thunder Wiki
Jump to: navigation, search
(add key press template (stylesheet could be exported to a .css file by admins?))
 
(Added to category, fixed the usage of the doc template)
 
Line 10: Line 10:
 
-->{{#if:{{{10|}}}|{{{chain ninth|{{{chain|+}}}}}}{{key press/core|{{{10}}}}}}}<!--
 
-->{{#if:{{{10|}}}|{{{chain ninth|{{{chain|+}}}}}}{{key press/core|{{{10}}}}}}}<!--
 
-->{{#if:{{{11|}}}|[[Category:Wikipedia keypress template parameter needs fixing]]}}</includeonly><noinclude>
 
-->{{#if:{{{11|}}}|[[Category:Wikipedia keypress template parameter needs fixing]]}}</includeonly><noinclude>
{{documentation}}
+
[[Category:Templates]]
<!-- add category and language links to the /doc sub-page, not here -->
+
{{doc}}
 
</noinclude>
 
</noinclude>

Latest revision as of 08:23, 7 July 2024

Key press templates allows for documenting in-game controls. Up to 10 keys can be provided as parameters.

Msg-info.png The template supports a long list of supported keys (see: Template:Key press/core source code) and will default to the custom text if needed, but it doesn't have the built-in icons for left mouse button, scroll, moving on horizontal or vertical axis, and a number of other icons that are built-in the War Thunder Controls menu.
Code Result
{{key press|E}}
E
{{key press|Space}}
Space
{{key press|tab}}
Tab ↹
{{key press|up}}
{{key press|cmd|opt|C}}
⌘ Cmd+⌥ Opt+C
{{key press|Shift|A}} / {{key press|Shift|D}}
⇧ Shift+A / ⇧ Shift+D
{{key press|custom text}} vs <code>code</code>
custom text vs code