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:{{{2|}}}|{{Shortcut/Hotkey| {{{2}}} |lower={{{lower2|}}}}} }}<!-- | + | -->{{if defined:{{{2|}}}|{{Shortcut/Hotkey| {{{2}}} |lower={{{lower2|}}}}} }}<!-- |
− | -->{{if:{{{3|}}}|{{Shortcut/Hotkey| {{{3}}} |lower={{{lower3|}}}}} }}<!-- | + | -->{{if defined:{{{3|}}}|{{Shortcut/Hotkey| {{{3}}} |lower={{{lower3|}}}}} }}<!-- |
− | -->{{if:{{{4|}}}|{{Shortcut/Hotkey| {{{4}}} |lower={{{lower4|}}}}} }}<!-- | + | -->{{if defined:{{{4|}}}|{{Shortcut/Hotkey| {{{4}}} |lower={{{lower4|}}}}} }}<!-- |
− | -->{{if:{{{5|}}}|{{Shortcut/Hotkey| {{{5}}} |lower={{{lower5|}}}}} }}<!-- | + | -->{{if defined:{{{5|}}}|{{Shortcut/Hotkey| {{{5}}} |lower={{{lower5|}}}}} }}<!-- |
− | -->{{if:{{{6|}}}|[[Category:Fixme/Shortcut template]] }}</span></includeonly><!-- | + | -->{{if defined:{{{6|}}}|[[Category:Fixme/Shortcut template]] }}</span></includeonly><!-- |
--><noinclude>{{Documentation}}</noinclude> | --><noinclude>{{Documentation}}</noinclude> |
Revision as of 19:35, 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}}Template:if defined:shiftTemplate:if defined:STemplate:if defined:Template:if defined:Template:if defined:
- {{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}}Template:if defined:altTemplate:if defined:XTemplate:if defined:Template:if defined:Template:if defined:
- {{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}}Template:if defined:altTemplate:if defined:shiftTemplate:if defined:pad3Template:if defined:Template:if defined:
- {{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}}Template:if defined:mmbTemplate:if defined:Template:if defined:Template:if defined:Template:if defined:
- 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}}Template:if defined:aTemplate:if defined:Template:if defined:Template:if defined:Template:if defined:
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