Template:Key/core: Difference between revisions
Jump to navigation
Jump to search
(Fixed scaling and adding new mouse buttons.) |
(Now it's more like a keyboard key rather than a string of code) |
||
(26 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<span class="keyboard-key" style="display: inline-block; border: | <onlyinclude><span class="keyboard-key" style="display: inline-block; border:1px solid #505050; box-shadow:0 2px 0 #505050; border-radius:3px; background: #303030; margin:0 0.2em; padding:0 3.5pt;">{{#switch:{{lc:{{{1}}}}} | ||
| caps lock = {{Unicode|⇪}} Caps Lock | | caps lock = <span title="Caps Lock key">{{Unicode|⇪}} Caps Lock</span><!-- Using the "span title" to display tooltip messages is recommended for better accessibility for certain people. --> | ||
| [[caps lock]] = {{Unicode|⇪}} [[Caps Lock]] | | [[caps lock]] = <span title="Caps Lock key">{{Unicode|⇪}} [[Caps Lock]]</span> | ||
| shift = {{Unicode|⇧}} Shift | | shift = <span title="Shift key">{{Unicode|⇧}} Shift</span> | ||
| [[shift key|shift]] = {{Unicode|⇧}} [[Shift key|Shift]] | | [[shift key|shift]] = <span title="Shift key">{{Unicode|⇧}} [[Shift key|Shift]]</span> | ||
| enter = {{Unicode|↵}} Enter | | enter = <span title="Enter key">{{Unicode|↵}} Enter</span> | ||
| [[enter key|enter]] = {{Unicode|↵}} [[Enter key|Enter]] | | [[enter key|enter]] = <span title="Enter key">{{Unicode|↵}} [[Enter key|Enter]]</span> | ||
| cmd = <span title="Command key">{{Unicode|⌘}} Cmd</span> | | cmd = <span title="Command key">{{Unicode|⌘}} Cmd</span> | ||
| [[cmd key|cmd]] | | [[cmd key|cmd]] | ||
| [[command key|cmd]] = <span title="Command key">{{Unicode|⌘}} [[Command key|Cmd]]</span> | | [[command key|cmd]] = <span title="Command key">{{Unicode|⌘}} [[Command key|Cmd]]</span> | ||
| opt = {{Unicode|⌥}} Opt | | opt = <span title="Option key">{{Unicode|⌥}} Opt</span> | ||
| [[opt key|opt]] | | [[opt key|opt]] | ||
| [[option key|opt]] = {{Unicode|⌥}} [[Option key|Opt]] | | [[option key|opt]] = <span title="Option key">{{Unicode|⌥}} [[Option key|Opt]]</span> | ||
| tab = Tab {{Unicode|⇆}} | | tab = <span title="Tab key">Tab {{Unicode|⇆}}</span> | ||
| [[tab key|tab]] = [[Tab key|Tab]] {{Unicode|⇆}} | | [[tab key|tab]] = <span title="Tab key">[[Tab key|Tab]] {{Unicode|⇆}}</span> | ||
| backspace = ← Backspace | | backspace = <span title="Backspace key">← Backspace</span> | ||
| [[backspace]] = ← [[Backspace]] | | [[backspace]] = <span title="Backspace key">← [[Backspace]]</span> | ||
| win = <span title="Windows key"> | | win = <span title="Windows key">{{unicode|⊞}} Win</span> | ||
| [[win key|win]] | | [[win key|win]] | ||
| [[windows key|win]] = <span title="Left mouse button">[[File:Windows-11-Icon-White.png|10px|link=|alt=Windows key]] [[Windows key|Win]]</span> | | [[windows key|win]] = <span title="Left mouse button">[[File:Windows-11-Icon-White.png|10px|link=|alt=Windows key]] [[Windows key|Win]]</span> | ||
| menu = {{Unicode|≣}} Menu | | menu = <span title="Menu key">{{Unicode|≣}} Menu</span> | ||
| [[menu key|menu]] = {{Unicode|≣}} [[Menu key|Menu]] | | [[menu key|menu]] = <span title="Menu key">{{Unicode|≣}} [[Menu key|Menu]]</span> | ||
| up = ↑ | | up = <span title="Arrow up key">↑</span> | ||
| [[arrow keys|up]] = [[Arrow keys|↑]] | | [[arrow keys|up]] = <span title="Arrow up key">[[Arrow keys|↑]]</span> | ||
| down = ↓ | | down = <span title="Arrow down key">↓</span> | ||
| [[arrow keys|down]] = [[Arrow keys|↓]] | | [[arrow keys|down]] = <span title="Arrow down key">[[Arrow keys|↓]]</span> | ||
| left = ← | | left = <span title="Arrow left key">←</span> | ||
| [[arrow keys|left]] = [[Arrow keys|←]] | | [[arrow keys|left]] = <span title="Arrow left key">[[Arrow keys|←]]</span> | ||
| right = → | | right = <span title="Arrow right key">→</span> | ||
| [[arrow keys|right]]= [[Arrow keys|→]] | | [[arrow keys|right]]= <span title="Arrow right key">[[Arrow keys|→]]</span> | ||
| * = <nowiki>*</nowiki> | | * = <nowiki>*</nowiki> | ||
| # = <nowiki>#</nowiki> | | # = <nowiki>#</nowiki> | ||
| [[#]] = [[Number sign|#]] | | [[#]] = [[Number sign|#]] | ||
| : = <nowiki>:</nowiki> | | colon | Colon | : = <span title="Colon (<nowiki>:</nowiki>)"><nowiki>:</nowiki></span> | ||
| [[:]] = [[Colon (punctuation)|:]] | | [[colon]] | [[Colon]] | [[:]] = <span title="Colon (<nowiki>:</nowiki>)">[[Colon (punctuation)|:]]</span> | ||
| [[|]] = [[Pipe symbol|{{!}}]] | | [[|]] = <span title="Vertical bar"><[[Pipe symbol|{{!}}]]</span> | ||
| ~ = <span style="cursor:help" title="Tilde/Grave; for non-QWERTY keyboards use key above Tab"><u>~</u></span> | |||
| lmb = <span title="Left mouse button">[[File:Icon-Mouse-LeftButton.png|link=|alt=LMB|18px]]</span> | | lmb = <span title="Left mouse button">[[File:Icon-Mouse-LeftButton.png|link=|alt=LMB|18px]]</span> | ||
| mouse1 = <span title="Left mouse button">[[File:Icon-Mouse-LeftButton.png|link=|alt=LMB|18px]]</span> | |||
| rmb = <span title="Right mouse button">[[File:Icon-Mouse-RightButton.png|link=|alt=RMB|18px]]</span> | | rmb = <span title="Right mouse button">[[File:Icon-Mouse-RightButton.png|link=|alt=RMB|18px]]</span> | ||
| mouse2 = <span title="Right mouse button">[[File:Icon-Mouse-RightButton.png|link=|alt=RMB|18px]]</span> | |||
| mmb = <span title="Middle mouse button">[[File:Icon-Mouse-MiddleButton.png|link=|alt=MMB|18px]]</span> | | mmb = <span title="Middle mouse button">[[File:Icon-Mouse-MiddleButton.png|link=|alt=MMB|18px]]</span> | ||
| mouse4 | | mouse3 = <span title="Middle mouse button">[[File:Icon-Mouse-MiddleButton.png|link=|alt=MMB|18px]]</span> | ||
| mouse5 | | mouse4 = <span title="Side mouse button (MOUSE4/Forward Page)
Not all mouse have this button however.">[[File:Icon-Mouse-SideButton-4.png|link=|alt=MOUSE4|18px]]</span> | ||
| mouse5 = <span title="Side mouse button (MOUSE5/Backward Page)
Not all mouse have this button however.">[[File:Icon-Mouse-SideButton-5.png|link=|alt=MOUSE4|18px]]</span> | |||
<!-- Xbox 360 buttons --> | |||
| xbox_a | xbox_A | 360_A | 360_a = <span title="Xbox - A button">[[File:360_A_button.png|link=|alt=A button|20px]]</span> | |||
| xbox_b | xbox_B | 360_B | 360_b = <span title="Xbox - A button">[[File:360_B_button.png|link=|alt=B button|20px]]</span> | |||
| xbox_x | xbox_X | 360_X | 360_x = <span title="Xbox - X button">[[File:360_X_button.png|link=|alt=X button|20px]]</span> | |||
| xbox_y | xbox_Y | 360_Y | 360_y = <span title="Xbox - Y button">[[File:360_Y_button.png|link=|alt=Y button|20px]]</span> | |||
| xbox_back | 360_back = <span title="Xbox - ◄ Back button">[[File:360_back_button.png|link=|alt=◄ Back button|20px]]</span> | |||
| xbox_start | 360_start = <span title="Xbox - ► Start button">[[File:360_start_button.png|link=|alt=► Start button|20px]]</span> | |||
| xbox_lb | 360_lb | xbox_LB = <span title="Xbox - Left bumper button">[[File:360_LB_button.png|link=|alt=Left bumper button|20px]]</span> | |||
| xbox_rb | 360_rb | xbox_RB = <span title="Xbox - Right bumper button">[[File:360_RB_button.png|link=|alt=Right bumper button|20px]]</span> | |||
| xbox_ls | 360_ls | xbox_LS = <span title="Xbox - Left stick button">[[File:360_LS_button.png|link=|alt=LS button|20px]]</span> | |||
| xbox_rs | 360_rs | xbox_RS = <span title="Xbox - Right stick button">[[File:360_RS_button.png|link=|alt=RS button|20px]]</span> | |||
<!-- PS4/Dualshock 4 buttons --> | |||
| ps_X | PS_X | ps_cross | ps_Cross = <span title="PlayStation - X (Cross) button">[[File:PS_Cross_button.png|link=|alt=X (Cross) button|20px]]</span> | |||
| ps_O | PS_O | ps_circle | PS_circle = <span title="PlayStation - O (Circle) button">[[File:PS_Circle_button.png|link=|alt=O (Circle) button|20px]]</span> | |||
| ps_sq | ps_square | PS_sq | PS_SQ | ps_Sq = <span title="PlayStation - □ (Square) button">[[File:PS_Square_button.png|link=|alt=□ (Square) button|20px]]</span> | |||
| ps_tri | ps_triangle | PS_tri | PS_TRI | PS_Tri = <span title="PlayStation - Δ button">[[File:PS_Triangle_button.png|link=|alt=Δ (Triangle) button|20px]]</span> | |||
| #default = {{{1}}} | | #default = <span title="{{{1}}}">{{{1}}}</span> | ||
}}</span>< | }}</span></onlyinclude> | ||
<noinclude>{{doc}}</noinclude> | |||
< | |||
</noinclude> |
Latest revision as of 08:39, 27 October 2024
{{{1}}}
The above documentation is transcluded from Template:Key/core/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.