Controls – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add Template:Doc/Template usage)
m (Fix parameters)
Line 9: Line 9:
|param4= key4
|param4= key4
|descr4= (Optional) fourth key
|descr4= (Optional) fourth key
|param5= key5
|descr5= (Optional) fifth key
|example1= <nowiki>{{KeyboardShortcut}}</nowiki>
|example1= <nowiki>{{KeyboardShortcut}}</nowiki>
|result1= {{KeyboardShortcut}}
|result1= {{KeyboardShortcut}}

Revision as of 17:57, 24 January 2021

Shows a key-styled keyboard shortcut.

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