帮助:键盘快捷键
Appearance
| 注意:当您编辑本页面时,即同意以CC0协议授权您的贡献。您可以在公有领域帮助页面找到更多信息。 |
MediaWiki提供了多种快捷键,通过这些快捷键无需使用鼠标即可高效地进行各种操作。 本页面详细介绍了核心MediaWiki及其扩展程序的默认英文快捷键。
所有快捷键都由“修饰键”和“行动键”组成。 修饰键为按下行动键之前的一个或多个组合按键。 具体使用的修饰键取决于操作系统以及浏览器,详见下表。 而行动键是通用的,详细的映射将在下一章介绍。
| 浏览器 | 操作系统 | |||
|---|---|---|---|---|
| Windows | Linux | macOS | Chrome OS | |
| Firefox (火狐浏览器) | Alt+⇧ Shift | Alt+⇧ Shift | Ctrl+⌥ Option | |
| Google Chrome (谷歌浏览器) Opera 15+ |
Alt, Alt+⇧ Shift, Alt+⇧ Shift+Ctrl |
Alt+⇧ Shift | Ctrl+⌥ Option | Alt, Alt+⇧ Shift, Alt+⇧ Shift+Ctrl |
| IE 浏览器 微软 Edge |
Alt+⇧ Shift | |||
| Safari | Ctrl+⌥ Option | |||
比如说,在 Linux 的火狐浏览器中,按住 Alt + Shift 并敲入最后的行动键 (例如 Alt+⇧ Shift+Z 可以进入首页)。 在MacOS里使用Safari浏览器时,保持按住 Control 和 Option 并键入快捷键组合里的行动键 (Control+⌥ Option+Z)。 Windows中的IE浏览器则只需要按下 Alt 键和行动键的组合。 对于其他操作系统,上述的组合应该也生效。您可能需要尝试多种修饰键来找到其中可以使用的组合,在少数情况下,同一操作系统下不同的行动键可能对应不同的修饰键。
Mediawiki 快捷键
下表列出了MediaWiki中默认的快捷键。 第一列显示了可以使用该快捷方式的区域。 第二列说明了该快捷键的具体功能。 第三列列出了需要使用修饰键来触发该快捷键的关键字母或字符。 最后一列为快捷方式所指向的 系统消息 的名称或 MediaWiki 命名空间 中的页面。 如果某行第三列为空,则说明此操作没有默认指定的快捷键。
系统消息可以通过元素的id属性来识别,因此使用热键进行操作时不需要额外的代码支持。
要为未列出的扩展添加快捷键,可以使用元素检查器找到其id属性。
在大多数情况下,条目最初是按MediaWiki页面名称的最后部分(例如
addsection、anontalk等)排序的。 如果需要的话,可以按任何列对表格进行排序。此頁面的一部分(与sections相关)已过时。 |
| 内容 | 动作 | 行动键 | MediaWiki页面名称 |
|---|---|---|---|
| 讨论命名空间 | 在该页面上创建一个新的章节 | + | accesskey-ca-addsection |
| 任何页面(若未登录) | 前往我所在IP地址的相关讨论页面 | n | accesskey-pt-anontalk |
| 任何页面(若未登录) | 前往我所在IP地址的用户页面 | . | accesskey-pt-anonuserpage |
| 页面历史 | 查看此页面的Atom推送内容 | accesskey-feed-atom | |
| 用于封禁用户的特殊页面 | 封禁IP地址(保存) | s | accesskey-blockip-block |
| 页面历史记录(在选择了两个版本之后) | 比较选定的修订版本 | v | accesskey-compareselectedversions |
| 用户命名空间 | 查看该用户的贡献内容 | accesskey-t-contributions | |
| 任何页面(若未登录) | 创建账户(并登录) | accesskey-pt-createaccount | |
| 任何页面 | Go to the current events page | accesskey-n-currentevents | |
| 任何页面(如果可能的话) | 删除此页面 | d | accesskey-ca-delete |
| 编辑页面 | 显示与当前版本的差异(无需保存/发布) | v | accesskey-diff |
| 任何页面 | 編輯此頁 | e | accesskey-ca-edit |
| 用户命名空间 | 发送邮件给此用户 | accesskey-t-emailuser | |
| 用于导出的特殊页面 | 开始导出(“保存”) | s | accesskey-export |
| 任何页面 | 前往帮助页面索引 | accesskey-n-help | |
| 任何页面 | 查看页面历史记录(该页面的所有修改列表) | h | accesskey-ca-history |
| 专门用于导入功能的页面 | Start importing ("save") | s | accesskey-import |
| Any page | View page information | accesskey-t-info | |
| Any page (if not logged in) | Log in | o | accesskey-pt-login |
| Any page | Go to the main page (home page for the wiki) | accesskey-p-logo | |
| Any page (if logged in) | Log out | accesskey-pt-logout | |
| Any page | Go to the main page (home page for the wiki) | z | accesskey-n-mainpage |
| Any page | Go to the main page (home page for the wiki) | z | accesskey-n-mainpage-description |
| Editing a page | Toggle switch for marking the changes as minor | i | accesskey-minoredit |
| Any page (if possible) | Move this page | m | accesskey-ca-move |
| Any page | Go to my contributions (list of my edits to the wiki) | y | accesskey-pt-mycontris |
| Any page | Go to my talk page | n | accesskey-pt-mytalk |
| Any namespace | View the subject page ("content", as opposed to "talk") | c | accesskey-ca-nstab |
| Category namespace | View the category page ("content", as opposed to "talk") | c | accesskey-ca-nstab-category |
| Help namespace | View the help page ("content", as opposed to "talk") | c | accesskey-ca-nstab-help |
| File namespace | View the file page ("content", as opposed to "talk") | c | accesskey-ca-nstab-image |
| Main namespace | View the content page ("content", as opposed to "talk") | c | accesskey-ca-nstab-main |
| Media namespace | View the media page ("content", as opposed to "talk") | c | accesskey-ca-nstab-media |
| Project namespace | View the project page ("content", as opposed to "talk") | c | accesskey-ca-nstab-project |
| Special namespace | View the special page | accesskey-ca-nstab-special | |
| Template namespace | View the template page ("content", as opposed to "talk") | c | accesskey-ca-nstab-template |
| User namespace | View the user page ("content", as opposed to "talk") | c | accesskey-ca-nstab-user |
| Any page | View this particular revision of the page using a "permanent link" | accesskey-t-permalink | |
| Any page | Go to the community portal | accesskey-n-portal | |
| Preferences | Save preferences | accesskey-preferences-save | |
| Any page (if logged in) | Go to my preferences | accesskey-pt-preferences | |
| Editing a page | Preview changes (without saving/publishing) | p | accesskey-preview |
| Any page | View a printable version of this page | p | accesskey-t-print |
| Any page (if possible) | Protect this page | = | accesskey-ca-protect |
| Any page | Go to a randomly chosen page | x | accesskey-n-randompage |
| Any page | Go to the list of recent changes to the wiki | r | accesskey-n-recentchanges |
| Any page | View list of recent changes made to other pages that this page links to ("related changes") | k | accesskey-t-recentchangeslinked |
| Page history | View the RSS feed for this page | accesskey-feed-rss | |
| Editing a page | Publish changes ("save") | s | accesskey-save |
| Any page | Search the wiki (jump to the search box) | f | accesskey-search |
| Search box | Search and go to the page with this exact title, if it exists (otherwise show search results) | accesskey-search-go | |
| Search box | Search the wiki for this text (do not go directly to a page with a matching title) | accesskey-search-fulltext | |
| Any page | Go to special pages index | q | accesskey-t-specialpages |
| Editing a page | Jump to edit summary box | b | accesskey-summary |
| Any non-talk page | View the talk page corresponding to this one (discuss this page) | t | accesskey-ca-talk |
| Any deleted page (if possible) | Undelete this page (restore the page's edit history) | d | accesskey-ca-undelete |
| Any page (if possible) | Unprotect this page | = | accesskey-ca-unprotect |
| Any page (if logged in) | Unwatch this page (remove it from my watchlist) | w | accesskey-ca-unwatch |
| Special page for uploading a file | Start uploading ("save") | s | accesskey-upload |
| Any page | Upload a file | u | accesskey-t-upload |
| Any page (if logged in) | Go to my user page | . | accesskey-pt-userpage |
| Special page for setting user rights | Set the user rights ("save") | s | accesskey-userrights-set |
| Any protected page | View the source for this page (since it cannot be edited) | e | accesskey-ca-viewsource |
| Editing a page (if logged in) | Toggle switch for watching/unwatching the page being edited | w | accesskey-watch |
| Any page (if logged in) | Watch this page (add it to my watchlist) | w | accesskey-ca-watch |
| Any page (if logged in) | Go to my watchlist | l | accesskey-pt-watchlist |
| Editing watchlist | Remove selected titles ("save") | s | accesskey-watchlistedit-normal-submit |
| Editing raw watchlist | Save changes to the watchlist | s | accesskey-watchlistedit-raw-submit |
| Any page | View list of pages that link to this one ("what links here") | j | accesskey-t-whatlinkshere |
扩展快捷键
这些额外的快捷键是由几个MediaWiki扩展程序定义的。
| Extension | MediaWiki page name | Access key | Usages |
|---|---|---|---|
| CiteThisPage(引用此页) | accesskey-citethispage | Codesearch | |
| Drafts | accesskey-drafts-save | g | Codesearch |
| FlaggedRevs(标记修订) | accesskey-ca-current | v | Codesearch |
| FlaggedRevs(标记修订) | accesskey-ca-stable | c | Codesearch |
| ListTransclusions | accesskey-t-listtransclusions | Codesearch | |
| MediaUploader | accesskey-save-upload-campaign | s | Codesearch |
| MediaUploader | accesskey-cancel-upload-campaign | c | Codesearch |
| PageForms | accesskey-ca-formedit | & | Codesearch |
| UploadWizard(上传向导) | accesskey-save-upload-campaign | s | Codesearch |
| UploadWizard(上传向导) | accesskey-cancel-upload-campaign | c | Codesearch |
| VisualEditor | accesskey-ca-editsource | e | Codesearch |
| VisualEditor | accesskey-ca-ve-edit | v | Codesearch |
| WatchSubpages | accesskey-watchsubpages-submit | s | Codesearch |
| Wikibase Client(Wikibase客户端) | accesskey-t-wikibase | g | Codesearch |
| WikiEditor | accesskey-wikieditor-realtimepreview | ) | Codesearch |
参见
- Manual:Access keys — developer information about how to add keyboard shortcuts to MediaWiki.
- w:Wikipedia:Keyboard shortcuts
- 可视化编辑器/主题/键盘快捷键
- Help:结构式讨论/键盘快捷键 (aka. Flow)
- 手册:Huggle/键盘快捷键
- Requests for comment/Internationalization testing