Template:Shortcut

From POV-Wiki
Revision as of 19:34, 26 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}}Template:if:shiftTemplate:if:STemplate:if:Template:if:Template: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}}Template:if:altTemplate:if:XTemplate:if:Template:if:Template: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}}Template:if:altTemplate:if:shiftTemplate:if:pad3Template:if:Template: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}}Template:if:mmbTemplate:if:Template:if:Template:if:Template: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}}Template:if:aTemplate:if:Template:if:Template:if:Template: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