Controls/Control

From Bohemia Interactive Community
< Controls
Revision as of 13:24, 20 December 2021 by Lou Montana (talk | contribs) (Template creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Displays a keyboard key or a mouse icon — used by {{Controls}}. It also adds the page to the Controls template usage error category on usage error.

This template is used on these pages.

Usage

{{Controls/Control|control}}

  • control: can be one of (case-insensitive for mouse icons):
    • mouseL or LMB
    • mouseL2 or LMB2
    • mouseR or RMB
    • mouseM or MMB
    • anything else for a keyboard key - the first letter will be capitalised (e.g ctrL will become CtrL)
Examples
Code Result
{{Controls/Control}} -no key defined-
{{Controls/Control|ctrl}} Ctrl
{{Controls/Control|Ctrl}} Ctrl
{{Controls/Control|a}} A
{{Controls/Control|LMB}} Left Mouse Button