Template:Shortcut

From POV-Wiki
Jump to navigation Jump to search

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 Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Cmd}}{{#switch:shift |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Shift}} {{#switch:s |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:s | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |S}} {{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{4}}}}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{5}}}}}

  • {{Shortcut|ctrl|alt|X}} returns {{#switch:ctrl

|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:ctrl | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Ctrl}}{{#switch:alt |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:alt | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Alt}} {{#switch:x |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:x | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |X}} {{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{4}}}}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{5}}}}}

  • {{Shortcut|ctrl|alt|shift|pad3}} returns {{#switch:ctrl

|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:ctrl | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Ctrl}}{{#switch:alt |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:alt | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Alt}} {{#switch:shift |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Shift}} {{#switch:pad3 |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:pad3 | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Pad3}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{5}}}}}

  • {{Shortcut|shift|mmb}} returns {{#switch:shift

|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Shift}}{{#switch:mmb |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:mmb | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Mmb}} {{#switch:{{{3}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{3}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{3}}}}} {{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{4}}}}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{5}}}}}

{{Shortcut|shift|a}}{{Menu|type=popup|Add|Mesh|Cube}} returns {{#switch:shift

|lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:shift | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |Shift}}{{#switch:a |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:a | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |A}} {{#switch:{{{3}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{3}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{3}}}}} {{#switch:{{{4}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{4}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{4}}}}} {{#switch:{{{5}}} |lmb|mmb|rmb|wheelup|wheeldown|wheel={{#switch:{{{5}}} | lmb =LMB Template-LMB.png | mmb =MMB Template-MMB.png | rmb =RMB Template-RMB.png | wheelup =WheelUp Template-MWUP.png | wheeldown =WheelDown Template-MWD.png | wheel =Wheel Template-MW.png |}} |{{{5}}}}}Add

Mouse hotkeys

You can use the symbols below:


wikitext you get
{{Shortcut/Mouse|lmb}} {{#switch:lmb lmb =LMB Template-LMB.png mmb =MMB Template-MMB.png rmb =RMB Template-RMB.png wheelup =WheelUp Template-MWUP.png wheeldown =WheelDown Template-MWD.png wheel =Wheel Template-MW.png }}
{{Shortcut/Mouse|mmb}} {{#switch:mmb lmb =LMB Template-LMB.png mmb =MMB Template-MMB.png rmb =RMB Template-RMB.png wheelup =WheelUp Template-MWUP.png wheeldown =WheelDown Template-MWD.png wheel =Wheel Template-MW.png }}
{{Shortcut/Mouse|rmb}} {{#switch:rmb lmb =LMB Template-LMB.png mmb =MMB Template-MMB.png rmb =RMB Template-RMB.png wheelup =WheelUp Template-MWUP.png wheeldown =WheelDown Template-MWD.png wheel =Wheel Template-MW.png }}
{{Shortcut/Mouse|wheelup}} {{#switch:wheelup lmb =LMB Template-LMB.png mmb =MMB Template-MMB.png rmb =RMB Template-RMB.png wheelup =WheelUp Template-MWUP.png wheeldown =WheelDown Template-MWD.png wheel =Wheel Template-MW.png }}
{{Shortcut/Mouse|wheeldown}} {{#switch:wheeldown lmb =LMB Template-LMB.png mmb =MMB Template-MMB.png rmb =RMB Template-RMB.png wheelup =WheelUp Template-MWUP.png wheeldown =WheelDown Template-MWD.png wheel =Wheel Template-MW.png }}
{{Shortcut/Mouse|wheel}} {{#switch:wheel lmb =LMB Template-LMB.png mmb =MMB Template-MMB.png rmb =RMB Template-RMB.png wheelup =WheelUp Template-MWUP.png wheeldown =WheelDown Template-MWD.png wheel =Wheel Template-MW.png }}

(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