Difference between revisions of "Template:KeyCombo"

From Second Life Wiki
Jump to navigation Jump to search
m (New page: {{#if:{{{ctrl|}}}|{{Keypress|Ctrl|{{{2|}}}|title=Control}}+}}{{#if:{{{alt|}}}|{{Keypress|Alt|{{{2|}}}}}+}}{{#if:{{{shift|}}}|{{Keypress|⇧ Shift|{{{2|}}}}}+}}{{Keypress|{{{1}}}|{{{2|}}}|t...)
 
(Old Knowledge Base)
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{{ctrl|}}}|{{Keypress|Ctrl|{{{2|}}}|title=Control}}+}}{{#if:{{{alt|}}}|{{Keypress|Alt|{{{2|}}}}}+}}{{#if:{{{shift|}}}|{{Keypress|⇧ Shift|{{{2|}}}}}+}}{{Keypress|{{{1}}}|{{{2|}}}|title={{{title|}}}}}
<noinclude>For the [[Old Knowledge Base]], this has been succeeded by [[Template:K]].
 
</noinclude><includeonly><onlyinclude>{{#if:{{{ctrl|}}}|{{Keypress|{{#switch:{{#var:lang}}|/de=Strg|Ctrl}}|{{{2|}}}}}-}}{{#if:
 
}}{{#if:{{{cmd|}}}|{{Keypress|⌘ Cmd|{{{2|}}}}}-}}{{#if:
 
}}{{#if:{{{alt|}}}|{{Keypress|Alt|{{{2|}}}}}-}}{{#if:
 
}}{{#if:{{{opt|}}}|{{Keypress|⌥ Alt|{{{2|}}}|title=Option}}-}}{{#if:
 
}}{{#if:{{{shift|}}}|{{Keypress|⇧ {{#switch:{{#var:lang}}|/fr=Maj|Shift}}|{{{2|}}}}}-}}{{#if:
 
}}{{#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=*}}
|}

Latest revision as of 04:44, 28 July 2012

For the Old Knowledge Base, this has been succeeded by Template:K.


Use this template to mark key combination needed for shortcuts in the viewer.

Example

input output
{{KeyCombo|ctrl=*|H}} Ctrl-H
{{KeyCombo|ctrl=*|alt=*|V}} Ctrl-Alt-V
{{KeyCombo|ctrl=*|alt=*|shift=*|H}} Ctrl-Alt-⇧ Shift-H
{{KeyCombo|cmd=*|opt=*|H}} ⌘ Cmd-⌥ Alt-H
{{KeyCombo|tab=*|return=*}} ↹ Tab