Difference between revisions of "Template:KeyCombo"
Jump to navigation
Jump to search
m |
(some documentation) |
||
Line 1: | Line 1: | ||
{{{{#if:{{{ctrl|}}}|Keypress/Ctrl{{#ifexist:Template:Keypress/Ctrl{{#var:lang}}|{{#var:lang}}}}|/dev/null}}|}}{{#if:{{{ctrl|}}}|+}}{{{{#if:{{{cmd|}}}|Keypress|/dev/null}}|⌘ Cmd|{{{2|}}}}}{{#if:{{{cmd|}}}|+}}{{{{#if:{{{alt|}}}|Keypress|/dev/null}}|Alt|{{{2|}}}}}{{#if:{{{alt|}}}|+}}{{{{#if:{{{opt|}}}|Keypress|/dev/null}}|⌥ Alt|{{{2|}}}|title=Option}}{{#if:{{{opt|}}}|+}}{{{{#if:{{{shift|}}}|Keypress|/dev/null}}|⇧ Shift|{{{2|}}}}}{{#if:{{{shift|}}}|+}}{{#if:{{{tab|}}}|{{Keypress|↹ Tab|{{{2|}}}|title=Tabulator}}|{{#if:{{{return|}}}|{{Keypress|↵ Return|{{{2|}}}|title=Return}}|{{Keypress|{{{1}}}|{{{2|}}}|title={{{title|}}}}}}}}} | <includeonly><onlyinclude>{{{{#if:{{{ctrl|}}}|Keypress/Ctrl{{#ifexist:Template:Keypress/Ctrl{{#var:lang}}|{{#var:lang}}}}|/dev/null}}|}}{{#if:{{{ctrl|}}}|+}}{{{{#if:{{{cmd|}}}|Keypress|/dev/null}}|⌘ Cmd|{{{2|}}}}}{{#if:{{{cmd|}}}|+}}{{{{#if:{{{alt|}}}|Keypress|/dev/null}}|Alt|{{{2|}}}}}{{#if:{{{alt|}}}|+}}{{{{#if:{{{opt|}}}|Keypress|/dev/null}}|⌥ Alt|{{{2|}}}|title=Option}}{{#if:{{{opt|}}}|+}}{{{{#if:{{{shift|}}}|Keypress|/dev/null}}|⇧ Shift|{{{2|}}}}}{{#if:{{{shift|}}}|+}}{{#if:{{{tab|}}}|{{Keypress|↹ Tab|{{{2|}}}|title=Tabulator}}|{{#if:{{{return|}}}|{{Keypress|↵ Return|{{{2|}}}|title=Return}}|{{Keypress|{{{1}}}|{{{2|}}}|title={{{title|}}}}}}}}}</onlyinclude></includeonly> | ||
Use this template to mark key combination needed for shortcuts in the viewer. | |||
== Example == | |||
{|style={{prettytable}} | |||
!input | |||
!output | |||
|- | |||
|<nowiki>{{KeyCombo|ctrl=*|H}}</nowiki> | |||
|{{KeyCombo|ctrl=*|H}} | |||
|- | |||
|<nowiki>{{KeyCombo|ctrl=*|alt=*|V}}</nowiki> | |||
|{{KeyCombo|ctrl=*|alt=*|V}} | |||
|- | |||
|<nowiki>{{KeyCombo|ctrl=*|alt=*|shift=*|H}}</nowiki> | |||
|{{KeyCombo|ctrl=*|alt=*|shift=*|H}} | |||
|- | |||
|<nowiki>{{KeyCombo|cmd=*|opt=*|H}}</nowiki> | |||
|{{KeyCombo|cmd=*|opt=*|H}} | |||
|- | |||
|<nowiki>{{KeyCombo|tab=*|return=*}}</nowiki> | |||
|{{KeyCombo|tab=*}} | |||
|} |
Revision as of 16:42, 29 January 2009
Use this template to mark key combination needed for shortcuts in the viewer.
Example
input | output |
---|---|
{{KeyCombo|ctrl=*|H}} | Ctrl+Template:KeyCombo/dev/nullTemplate:KeyCombo/dev/nullTemplate:KeyCombo/dev/nullTemplate:KeyCombo/dev/nullH |
{{KeyCombo|ctrl=*|alt=*|V}} | Ctrl+Template:KeyCombo/dev/nullAlt+Template:KeyCombo/dev/nullTemplate:KeyCombo/dev/nullV |
{{KeyCombo|ctrl=*|alt=*|shift=*|H}} | Ctrl+Template:KeyCombo/dev/nullAlt+Template:KeyCombo/dev/null⇧ Shift+H |
{{KeyCombo|cmd=*|opt=*|H}} | Template:KeyCombo/dev/null⌘ Cmd+Template:KeyCombo/dev/null⌥ Alt+Template:KeyCombo/dev/nullH |
{{KeyCombo|tab=*|return=*}} | Template:KeyCombo/dev/nullTemplate:KeyCombo/dev/nullTemplate:KeyCombo/dev/nullTemplate:KeyCombo/dev/nullTemplate:KeyCombo/dev/null↹ Tab |