Difference between revisions of "Template:Key combo"

From Zero-K
Jump to navigation Jump to search
m
(Keep 'em together on one line.)
Line 1: Line 1:
{{key press|{{{1|Ctrl}}}}}{{#switch: {{{style|loose}}}
+
{{nowrap|{{key press|{{{1|Ctrl}}}}}{{#switch: {{{style|loose}}}
 
|loose=
 
|loose=
 
  {{#if:{{{2|}}}|
 
  {{#if:{{{2|}}}|
Line 35: Line 35:
 
   {{key press|{{{5}}}}}}}{{#if:{{{6|}}}|
 
   {{key press|{{{5}}}}}}}{{#if:{{{6|}}}|
 
   {{key press|{{{6}}}}}}}
 
   {{key press|{{{6}}}}}}}
}}<noinclude>
+
}}}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 17:19, 5 February 2024

Ctrl

Template documentation[view] [edit] [history] [purge]

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

Usage
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=}}