Difference between revisions of "Template:Shortcut/Keypress"
m |
m |
||
Line 1: | Line 1: | ||
− | <includeonly><span class="hotkey" style="background-attachment: scroll; | + | {{<includeonly><span class="hotkey" style="background-attachment: scroll; |
background-clip: border-box; | background-clip: border-box; | ||
background-color: rgb(240, 236, 232); | background-color: rgb(240, 236, 232); | ||
Line 37: | Line 37: | ||
text-align: left; | text-align: left; | ||
white-space: nowrap;"> | white-space: nowrap;"> | ||
− | + | ucfirst: {{lc:{{{1}}}}}}} | |
</span></includeonly><noinclude>{{Documentation}}{{#switch:{{lc:{{{1}}}}} | </span></includeonly><noinclude>{{Documentation}}{{#switch:{{lc:{{{1}}}}} | ||
| alt = Alt | | alt = Alt |
Revision as of 16:39, 25 October 2019
{{
Syntax
{{Shortcut/Keypress|<key>}}
where <key> can be any text.
Examples
- {{Shortcut/Keypress|alt}} gives {{
ucfirst: alt}}
- {{Shortcut/Keypress|s}} gives {{
ucfirst: s}}
Symbols
These are the symbols you can use:
wikitext | you get |
---|---|
{{Shortcut/Keypress|alt}} | {{
ucfirst: alt}} |
{{Shortcut/Keypress|backspace}} | {{
ucfirst: backspace}} |
{{Shortcut/Keypress|cmd}} | {{
ucfirst: cmd}} |
{{Shortcut/Keypress|ctrl}} | {{
ucfirst: ctrl}} |
{{Shortcut/Keypress|enter}} | {{
ucfirst: enter}} |
{{Shortcut/Keypress|end}} | {{
ucfirst: end}} |
{{Shortcut/Keypress|esc}} | {{
ucfirst: esc}} |
{{Shortcut/Keypress|home}} | {{
ucfirst: home}} |
{{Shortcut/Keypress|opt}} | {{
ucfirst: opt}} |
{{Shortcut/Keypress|shift}} | {{
ucfirst: shift}} |
{{Shortcut/Keypress|tab}} | {{
ucfirst: tab}} |
{{Shortcut/Keypress|space}} | {{
ucfirst: space}} |
{{Shortcut/Keypress|left}} | {{
ucfirst: left}} |
{{Shortcut/Keypress|right}} | {{
ucfirst: right}} |
{{Shortcut/Keypress|up}} | {{
ucfirst: up}} |
{{Shortcut/Keypress|down}} | {{
ucfirst: down}} |
{{Shortcut/Keypress|pgup}} | {{
ucfirst: pgup}} |
{{Shortcut/Keypress|pgdown}} | {{
ucfirst: pgdown}} |
{{Shortcut/Keypress|pad.}} | {{
ucfirst: pad.}} |
{{Shortcut/Keypress|pad0}} | {{
ucfirst: pad0}} |
{{Shortcut/Keypress|pad1}} | {{
ucfirst: pad1}} |
{{Shortcut/Keypress|pad2}} | {{
ucfirst: pad2}} |
{{Shortcut/Keypress|pad3}} | {{
ucfirst: pad3}} |
{{Shortcut/Keypress|pad4}} | {{
ucfirst: pad4}} |
{{Shortcut/Keypress|pad5}} | {{
ucfirst: pad5}} |
{{Shortcut/Keypress|pad6}} | {{
ucfirst: pad6}} |
{{Shortcut/Keypress|pad7}} | {{
ucfirst: pad7}} |
{{Shortcut/Keypress|pad8}} | {{
ucfirst: pad8}} |
{{Shortcut/Keypress|pad9}} | {{
ucfirst: pad9}} |
{{Shortcut/Keypress|pad+}} | {{
ucfirst: pad+}} |
{{Shortcut/Keypress|pad-}} | {{
ucfirst: pad-}} |
{{Shortcut/Keypress|pad*}} | {{
ucfirst: pad*}} |
{{Shortcut/Keypress|pad/}} | {{
ucfirst: pad/}} |
{{Shortcut/Keypress|pad-enter}} | {{
ucfirst: 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}}}}} }}