Controls – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add error auto-category)
m (Lou Montana moved page Template:KeyboardShortcut to Template:Controls: name standard)
(No difference)

Revision as of 11:46, 20 December 2021

Shows a key-styled keyboard shortcut. It also adds the page to the KeyboardShortcut template usage error category on usage error.

This template is used on these pages.

Usage

{{Controls|key1|key2|key3|key4}}

  • key1: first key
  • key2: (Optional) second key
  • key3: (Optional) third key
  • key4: (Optional) fourth key
Examples
Code Result
{{KeyboardShortcut}} -no keys defined-
{{KeyboardShortcut|Ctrl}} Ctrl
{{KeyboardShortcut|Ctrl|Shift|T}} Ctrl + Shift + T
{{KeyboardShortcut|Ctrl|Alt|Shift|T}} Ctrl + Alt + Shift + T
{{KeyboardShortcut|Ctrl|Alt|Shift|T|U}} Ctrl + Alt + Shift + T