Controls – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Fix description) |
Lou Montana (talk | contribs) m (Add Template:Doc/Template usage) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|<span class="keyboard">{{{1}}}</span>{{#if:{{{2|}}}| + <span class="keyboard">{{{2}}}</span>{{#if:{{{3|}}}| + <span class="keyboard">{{{3}}}</span>{{#if:{{{4|}}}| + <span class="keyboard">{{{4}}}</span>|}}|}}|}}|-no keys defined-}}</includeonly><noinclude> | <includeonly>{{#if:{{{1|}}}|<span class="keyboard">{{{1}}}</span>{{#if:{{{2|}}}| + <span class="keyboard">{{{2}}}</span>{{#if:{{{3|}}}| + <span class="keyboard">{{{3}}}</span>{{#if:{{{4|}}}| + <span class="keyboard">{{{4}}}</span>|}}|}}|}}|-no keys defined-}}</includeonly><noinclude>{{Doc/Template | ||
== | |descr= Shows a key-styled keyboard shortcut. | ||
|param1= key1 | |||
|descr1= first key | |||
|param2= key2 | |||
| | |descr2= (Optional) second key | ||
|param3= key3 | |||
|descr3= (Optional) third key | |||
| | |param4= key4 | ||
| | |descr4= (Optional) fourth key | ||
| | |param5= key5 | ||
| | |descr5= (Optional) fifth key | ||
| <nowiki>{{KeyboardShortcut | |example1= <nowiki>{{KeyboardShortcut}}</nowiki> | ||
| {{KeyboardShortcut | |result1= {{KeyboardShortcut}} | ||
| | |example2= <nowiki>{{KeyboardShortcut|Ctrl}}</nowiki> | ||
|result2= {{KeyboardShortcut|Ctrl}} | |||
| {{KeyboardShortcut|Ctrl | |example3= <nowiki>{{KeyboardShortcut|Ctrl|Shift|T}}</nowiki> | ||
| | |result3= {{KeyboardShortcut|Ctrl|Shift|T}} | ||
|example4= <nowiki>{{KeyboardShortcut|Ctrl|Alt|Shift|T}}</nowiki> | |||
| {{KeyboardShortcut|Ctrl|Shift|T}} | |result4= {{KeyboardShortcut|Ctrl|Alt|Shift|T}} | ||
| | |example5= <nowiki>{{KeyboardShortcut|Ctrl|Alt|Shift|T|U}}</nowiki> | ||
|result5= {{KeyboardShortcut|Ctrl|Alt|Shift|T|U}} | |||
| {{KeyboardShortcut|Ctrl|Alt|Shift|T}} | }}</noinclude> | ||
| | |||
| {{KeyboardShortcut|Ctrl|Alt| | |||
</noinclude> |
Revision as of 17:56, 24 January 2021
Shows a key-styled keyboard shortcut.
This template is used on these pages.
Usage
{{Controls|key1|key2|key3|key4|key5}}
- key1: first key
- key2: (Optional) second key
- key3: (Optional) third key
- key4: (Optional) fourth key
- key5: (Optional) fifth key
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 |