Difference between revisions of "Template:Key combo"
Jump to navigation
Jump to search
(Created page with "{{key press|{{{1|Ctrl}}}}}{{#switch: {{{style|loose}}} |loose= {{#if:{{{2|}}}| + {{key press|{{{2}}}}}}}{{#if:{{{3|}}}| + {{key press|{{{3}}}}}}}{{#if:{{{4|4}}}...") |
m (Added a standard reminder for editors not to mess with white space between the include and noinclude tags.) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{key press|{{{1|Ctrl}}}}}{{#switch: {{{style|loose}}} | + | <includeonly>{{nowrap|{{key press|{{{1|Ctrl}}}}}{{#switch: {{{style|loose}}} |
|loose= | |loose= | ||
{{#if:{{{2|}}}| | {{#if:{{{2|}}}| | ||
+ {{key press|{{{2}}}}}}}{{#if:{{{3|}}}| | + {{key press|{{{2}}}}}}}{{#if:{{{3|}}}| | ||
− | + {{key press|{{{3}}}}}}}{{#if:{{{4| | + | + {{key press|{{{3}}}}}}}{{#if:{{{4|}}}| |
+ {{key press|{{{4}}}}}}}{{#if:{{{5|}}}| | + {{key press|{{{4}}}}}}}{{#if:{{{5|}}}| | ||
+ {{key press|{{{5}}}}}}}{{#if:{{{6|}}}| | + {{key press|{{{5}}}}}}}{{#if:{{{6|}}}| | ||
Line 35: | Line 35: | ||
 {{key press|{{{5}}}}}}}{{#if:{{{6|}}}| |  {{key press|{{{5}}}}}}}{{#if:{{{6|}}}| | ||
 {{key press|{{{6}}}}}}} |  {{key press|{{{6}}}}}}} | ||
− | }}<noinclude> | + | }}}}</includeonly><noinclude><!-- Do not put any white space, including new line, between the end tag of includeonly and start tag of noinclude, else pages will break. |
− | {{Documentation}} | + | -->{{Documentation}} |
</noinclude> | </noinclude> |
Latest revision as of 18:25, 5 February 2024
Key combo is an easy to use template for whenever a key combination needs to be specified in an article. Like {{key press}}, it makes it easier to see that keyboard is involved. The difference is that this template should be used whenever there needs to be more than one key pressed at the same time. Several display styles are available, but the default should be used in most cases for consistency throughout the wiki. This way, changing the default in the template will change the style everywhere.
Examples
Desired result | What you type in your article |
---|---|
Ctrl + Alt + Delete | {{Key combo|Ctrl|Alt|Delete}}
|
Ctrl - Alt - Delete | {{Key combo|Ctrl|Alt|Delete|style=dashloose}}
|
Ctrl+Alt+Delete | {{Key combo|Ctrl|Alt|Delete|style=tight}}
|
Ctrl-Alt-Delete | {{Key combo|Ctrl|Alt|Delete|style=dash}}
|
Ctrl Alt Delete | {{Key combo|Ctrl|Alt|Delete|style=}}
|
The above documentation is transcluded from Template:Key combo/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |