Difference between revisions of "Template:Shortcut"
m |
m |
||
Line 1: | Line 1: | ||
<includeonly><span class="hotkeybg"><!-- | <includeonly><span class="hotkeybg"><!-- | ||
-->{{Shortcut/Hotkey|{{{1}}} |lower={{{lower1|}}}}}<!-- | -->{{Shortcut/Hotkey|{{{1}}} |lower={{{lower1|}}}}}<!-- | ||
− | -->{{if defined: | + | -->{{{if defined:2|{{Shortcut/Hotkey| {{{2}}} |lower={{{lower2|}}}}} }}}<!-- |
− | -->{{if defined: | + | -->{{{if defined:3|{{Shortcut/Hotkey| {{{3}}} |lower={{{lower3|}}}}} }}}<!-- |
− | -->{{if defined: | + | -->{{{if defined:4|{{Shortcut/Hotkey| {{{4}}} |lower={{{lower4|}}}}} }}}<!-- |
− | -->{{if defined: | + | -->{{{if defined:5|{{Shortcut/Hotkey| {{{5}}} |lower={{{lower5|}}}}} }}}<!-- |
− | -->{{if defined: | + | -->{{{if defined:6|[[Category:Fixme/Shortcut template]]}}}</span></includeonly><!-- |
--><noinclude>{{Documentation}}</noinclude> | --><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 19:38, 26 October 2019
Put a sequence of up to 5 keys to show a shortcut:
{{Shortcut|<key1>|<key2>|...|...}}
Examples
- {{Shortcut|cmd|shift|S}} returns {{#switch:cmd
|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:cmd | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Cmd}}{{#switch:shift |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Shift}} {{#switch:s |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:s | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |S}} {{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{4}}}}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{5}}}}}
- {{Shortcut|ctrl|alt|X}} returns {{#switch:ctrl
|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:ctrl | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Ctrl}}{{#switch:alt |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:alt | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Alt}} {{#switch:x |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:x | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |X}} {{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{4}}}}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{5}}}}}
- {{Shortcut|ctrl|alt|shift|pad3}} returns {{#switch:ctrl
|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:ctrl | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Ctrl}}{{#switch:alt |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:alt | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Alt}} {{#switch:shift |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Shift}} {{#switch:pad3 |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:pad3 | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Pad3}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{5}}}}}
- {{Shortcut|shift|mmb}} returns {{#switch:shift
|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Shift}}{{#switch:mmb |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:mmb | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Mmb}} {{#switch:{{{3}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{3}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{3}}}}} {{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{4}}}}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{5}}}}}
- to join a shortcut and a menu (see Template:Menu):
- {{Shortcut|shift|a}}{{Menu|type=popup|Add|Mesh|Cube}} returns {{#switch:shift
|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |Shift}}{{#switch:a |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:a | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |A}} {{#switch:{{{3}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{3}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{3}}}}} {{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{4}}}}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB | mmb =MMB | rmb =RMB | wheelup =WheelUp | wheeldown =WheelDown | wheel =Wheel |}} |{{{5}}}}}
Mouse hotkeys
You can use the symbols below:
(icons from the Tango Desktop Project)
Keyboard hotkeys
Apart from using normal letters and words, you can use the symbols below:
wikitext | you get |
---|---|
{{Shortcut/Keypress|alt}} | Alt |
{{Shortcut/Keypress|backspace}} | Backspace |
{{Shortcut/Keypress|cmd}} | Cmd |
{{Shortcut/Keypress|ctrl}} | Ctrl |
{{Shortcut/Keypress|enter}} | Enter |
{{Shortcut/Keypress|end}} | End |
{{Shortcut/Keypress|esc}} | Esc |
{{Shortcut/Keypress|home}} | Home |
{{Shortcut/Keypress|opt}} | Opt |
{{Shortcut/Keypress|shift}} | Shift |
{{Shortcut/Keypress|tab}} | Tab |
{{Shortcut/Keypress|space}} | Space |
{{Shortcut/Keypress|left}} | Left |
{{Shortcut/Keypress|right}} | Right |
{{Shortcut/Keypress|up}} | Up |
{{Shortcut/Keypress|down}} | Down |
{{Shortcut/Keypress|pgup}} | Pgup |
{{Shortcut/Keypress|pgdown}} | Pgdown |
{{Shortcut/Keypress|pad.}} | Pad. |
{{Shortcut/Keypress|pad0}} | Pad0 |
{{Shortcut/Keypress|pad1}} | Pad1 |
{{Shortcut/Keypress|pad2}} | Pad2 |
{{Shortcut/Keypress|pad3}} | Pad3 |
{{Shortcut/Keypress|pad4}} | Pad4 |
{{Shortcut/Keypress|pad5}} | Pad5 |
{{Shortcut/Keypress|pad6}} | Pad6 |
{{Shortcut/Keypress|pad7}} | Pad7 |
{{Shortcut/Keypress|pad8}} | Pad8 |
{{Shortcut/Keypress|pad9}} | Pad9 |
{{Shortcut/Keypress|pad+}} | Pad+ |
{{Shortcut/Keypress|pad-}} | Pad- |
{{Shortcut/Keypress|pad*}} | Pad* |
{{Shortcut/Keypress|pad/}} | Pad/ |
{{Shortcut/Keypress|pad-enter}} | Pad-enter |
See also: Template:Button and Template:Menu