Controls – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Lou Montana moved page Template:KeyboardShortcut to Template:Controls: name standard)
m (Text replacement - "{{KeyboardShortcut" to "{{Controls")
Line 9: Line 9:
|param4= key4
|param4= key4
|descr4= (Optional) fourth key
|descr4= (Optional) fourth key
|example1= <nowiki>{{KeyboardShortcut}}</nowiki>
|example1= <nowiki>{{Controls}}</nowiki>
|result1= {{KeyboardShortcut}}
|result1= {{Controls}}
|example2= <nowiki>{{KeyboardShortcut|Ctrl}}</nowiki>
|example2= <nowiki>{{Controls|Ctrl}}</nowiki>
|result2= {{KeyboardShortcut|Ctrl}}
|result2= {{Controls|Ctrl}}
|example3= <nowiki>{{KeyboardShortcut|Ctrl|Shift|T}}</nowiki>
|example3= <nowiki>{{Controls|Ctrl|Shift|T}}</nowiki>
|result3= {{KeyboardShortcut|Ctrl|Shift|T}}
|result3= {{Controls|Ctrl|Shift|T}}
|example4= <nowiki>{{KeyboardShortcut|Ctrl|Alt|Shift|T}}</nowiki>
|example4= <nowiki>{{Controls|Ctrl|Alt|Shift|T}}</nowiki>
|result4= {{KeyboardShortcut|Ctrl|Alt|Shift|T}}
|result4= {{Controls|Ctrl|Alt|Shift|T}}
|example5= <nowiki>{{KeyboardShortcut|Ctrl|Alt|Shift|T|U}}</nowiki>
|example5= <nowiki>{{Controls|Ctrl|Alt|Shift|T|U}}</nowiki>
|result5= {{KeyboardShortcut|Ctrl|Alt|Shift|T|U}}
|result5= {{Controls|Ctrl|Alt|Shift|T|U}}
}}</noinclude>
}}</noinclude>

Revision as of 11:48, 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
{{Controls}} -no keys defined-
{{Controls|Ctrl}} Ctrl
{{Controls|Ctrl|Shift|T}} Ctrl + Shift + T
{{Controls|Ctrl|Alt|Shift|T}} Ctrl + Alt + Shift + T
{{Controls|Ctrl|Alt|Shift|T|U}} Ctrl + Alt + Shift + T