Difference between revisions of "Template:Shortcut/Keypress"

From POV-Wiki
Jump to navigation Jump to search
m
m
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="hotkey">
+
<includeonly><span class="hotkey" style="background-attachment:scroll;background-clip: border-box;background-color:rgb(240,236,232);background-image:none;background-origin:padding-box;background-position:0%0%;background-position-x:0%;background-position-y:0%;background-repeat:repeat;background-size: auto;border-bottom-color:rgb(102,102,102);border-bottom-style:solid;border-bottom-width:0.4em;border-collapse:collapse;border-image-outset:0;border-image-repeat:stretch;border-image-slice: 100%;border-image-source:none;border-image-width:1;border-left-color:rgb(206,203,199);border-left-style:solid;border-left-width:0.2em;border-right-color:rgb(102, 102, 102);border-right-style:solid;border-right-width:0.2em;border-top-color:rgb(206,203,199);border-top-style:solid;border-top-width:0.1em;color: rgb(40,40,40);display:inline;font-size:0.8em;font-weight:bold; line-height:1.5em;padding-bottom:0.1em;padding-left:0.4em;padding-right:0.4em;padding-top:0.1em;text-align:left;white-space: nowrap;">{{ucfirst:{{lc:{{{1}}}}}}}</span></includeonly><noinclude>{{Documentation}}{{#switch:{{lc:{{{1}}}}}
{{ucfirst: {{lc:{{{1}}}}} }}
 
</span></includeonly><noinclude>{{Documentation}}{{#switch:{{lc:{{{1}}}}}
 
 
| alt                = Alt
 
| alt                = Alt
 
| backspace          = ← Backspace
 
| backspace          = ← Backspace

Latest revision as of 17:30, 25 October 2019

Syntax

{{Shortcut/Keypress|<key>}}

where <key> can be any text.

Examples

  • {{Shortcut/Keypress|alt}} gives Alt
  • {{Shortcut/Keypress|s}} gives S

Symbols

These are the symbols you can use:

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

{{#switch:{{{1}}} | alt = Alt | backspace = ← Backspace | cmd = ⌘ Cmd | ctrl = Ctrl | enter = ↵ Enter | end = ⇥ End | esc = Esc | home = ↖ Home | opt = ⌥ Opt | shift = ⇧ Shift | space = Space | tab = ⇆ Tab | left = ← | right = → | up = ↑ | down = ↓ | pgup = PageUp | pgdown = PageDown | pad. = . NumPad | pad0 = 0 NumPad | pad1 = 1 NumPad | pad2 = 2 NumPad | pad3 = 3 NumPad | pad4 = 4 NumPad | pad5 = 5 NumPad | pad6 = 6 NumPad | pad7 = 7 NumPad | pad8 = 8 NumPad | pad9 = 9 NumPad | pad+ = + NumPad | pad- = - NumPad | pad* = * NumPad | pad/ = / NumPad | pad-enter = ↵ NumPad | #default = {{#ifeq:|1|{{{1}}}|{{{1}}}}} }}