Template:Key press:修订间差异

无编辑摘要
无编辑摘要
 
第1行: 第1行:
<kbd style="border: 1px solid #aaa; border-radius: 2px; box-shadow: 1px 2px 2px #ddd; background-color: #BBBBBB; background-image: linear-gradient(top, #eee, #BBBBBB, #eee); padding: 1px 3px; font-family: inherit; font-size: 0.85em;">{{#switch:{{{1}}}
<kbd style="border: 1px solid #aaa; border-radius: 2px; box-shadow: 1px 2px 2px #ddd; background-color: #f9f9f9; background-image: linear-gradient(top, #eee, #f9f9f9, #eee); padding: 1px 3px; font-family: inherit; font-size: 0.85em; color:dimgray;">{{#switch:{{lc:{{{1}}}}}
|Enter|enter|ent|Ent=&#8629;&nbsp;Enter
| 回车|enter|ent| 换行=&#8629;&nbsp;Enter
|Ctrl|ctrl|control=^Ctrl
| 控制|ctrl|control=^Ctrl
|space|Space=&#9251; Space
|space| 空格=&#9251; Space
|Home|home=&#127968; Home
|Home|home=&#127968; Home
|Esc|Escape|esc|escape=&#8592;Esc
|Esc|Escape|esc|escape=&#8592;Esc
|Tab|tab=&#8646;Tab
| 制表|tab=&#8646;Tab
|LockMaj|maj|Maj=&#128274;Maj
|LockMaj|maj|Maj=&#128274;Maj
|Shift|shift=&#8679;Shift
| 上档|shift=&#8679;Shift
|suppr|Suppr|Delete|delete|del|Del=Delete
|suppr|Suppr| 删除|delete|del|Del=Delete
|back|Back=&#8592;&nbsp;&nbsp;&nbsp;&nbsp;
|back| 退格=&#8592;&nbsp;&nbsp;&nbsp;&nbsp;
|1|2|3|4|5|6|7|8|9|0={{#ifeq:{{{2|}}}|numpad|NumPad {{{1}}}|{{{1}}}}}
|1|2|3|4|5|6|7|8|9|0={{#ifeq:{{{2|}}}|numpad|NumPad {{{1}}}|{{{1}}}}}
|#default={{{1}}}
|#default={{{1}}}
第47行: 第47行:
| Numpad || 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 and second parameter <tt>numpad</tt> or <tt>NumPad</tt> || {{key press|1|numpad}} || needs both parameters. If only first, renders normaly
| Numpad || 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 and second parameter <tt>numpad</tt> or <tt>NumPad</tt> || {{key press|1|numpad}} || needs both parameters. If only first, renders normaly
|}
|}
[[Category:模板]][[en:{{FULLPAGENAME}}]]
[[Category:模板]]
</noinclude>
</noinclude>

2022年3月14日 (一) 02:52的最新版本

{{{1}}}

Used for keyboard shortcuts.

Example:

{{key press|A}}

A

Special keys

Key press Usage Render Notes
Enter Enter, enter, Ent, ent ↵ Enter
Ctrl Ctrl, ctrl, control ^Ctrl
Space Bar Space, space ␣ Space
Home home, Home 🏠 Home Does not always render correctly, depending on the browser and installed fonts
Escape Esc, esc, Escape, escape ←Esc
Tab tab, Tab ⇆Tab
Maj LockMaj, Maj, maj 🔒Maj Does not always render correctly, depending on the browser and installed fonts
Shift shift, Shift ⇧Shift
Delete del, Del, suppr, Suppr, delete, Delete Delete
Back back, Back ←    
Numpad 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 and second parameter numpad or NumPad NumPad 1 needs both parameters. If only first, renders normaly