Template:Shortcut

From POV-Wiki
Revision as of 16:52, 23 October 2019 by Maurice (talk | contribs)
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}}{{#if:shift|{{#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}} }}{{#if:S|{{#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}} }}{{#if:|{{#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}}}}} }}{{#if:|{{#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}}}}} }}{{#if:| }}

  • {{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}}{{#if:alt|{{#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}} }}{{#if:X|{{#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}} }}{{#if:|{{#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}}}}} }}{{#if:|{{#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}}}}} }}{{#if:| }}

  • {{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}}{{#if:alt|{{#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}} }}{{#if:shift|{{#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}} }}{{#if:pad3|{{#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}} }}{{#if:|{{#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}}}}} }}{{#if:| }}

  • {{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}}{{#if:mmb|{{#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}} }}{{#if:|{{#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}}}}} }}{{#if:|{{#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}}}}} }}{{#if:|{{#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}}}}} }}{{#if:| }}

{{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}}{{#if:a|{{#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}} }}{{#if:|{{#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}}}}} }}{{#if:|{{#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}}}}} }}{{#if:|{{#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}}}}} }}{{#if:| }}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