Wikipedia:Keyboard shortcuts
From Wikipedia, the free encyclopedia
The Monobook skin, which is the default on Wikipedia, contains many keyboard shortcuts implemented via JavaScript [1]. By pressing Alt (Windows and Linux) or Control (Mac OS) and one of the following keys, you can access certain features of Wikipedia more quickly. Some browsers may require you to press the Enter key after typing the above shortcuts. Mozilla Firefox 2 requires you to press Shift+Alt plus one of the following keys. Opera requires you to hit SHIFT-ESC before entering the access key (without ALT or CTRL). See access keys for more information on this concept.
See below for instructions for disabling shortcuts.
Key | Command | Description |
---|---|---|
+ | Start a new discussion | Allows you to add a new section (talk pages only) |
. (period) | My user page | Opens your user or IP page |
= | Protect | Allows you to protect the current page (sysops only) |
Unprotect | Allows you to unprotect the current page (sysops only) | |
c | Content page | Shows the content page associated with the current article |
d | Delete | Allows you to delete the current page (sysops only) |
Undelete | Allows you to undelete the current page (sysops only) | |
e | Edit this page | Allows you to edit the current page (non-protected pages) |
View source | Shows the source of the current page (protected pages) | |
f | Search | Allows you to search Wikipedia |
h | History | Shows the current page's history |
j | What links here | Shows all of the pages that link to the current one |
k | Related changes | Shows recent changes in pages linked to the current one |
l | My watchlist | Opens your watchlist (logged-in users only) |
m | Move | Allows you to move the current page and its talk page (non-move-protected pages only) |
n | My talk | Opens your user's or IP's talk page |
p | Show preview | Shows a preview of your changes (on edit pages) |
q | Special pages | Shows a list of all special pages |
r | Recent changes | Shows a list of recent changes to the Wikipedia |
s | Save page | Saves the changes that you have made (on edit pages) |
t | Discussion | Opens the current article's talk page |
u | Upload file | Allows you to upload images or media files |
v | Show changes | Shows what changes you made to the text (on edit pages) |
w | Watch | Adds the current page to your watchlist (logged-in users only) |
x | Random article | Loads a random article |
y | My contributions | Opens a list of your user's or IP's contributions |
z | Main Page | Goes to the Main Page |
[edit] Visual display of shortcuts
The following entry in your user CSS file (e.g., User:Example/monobook.css) will display accesskeys before links that have them.
This does not work in Internet Explorer, since it doesn't support the :before CSS selector. In Safari, this will not work on initially loading a page, but will show up when you mouse-over the menus, go back to a page, or press Home, End, Page Up, or Page Down.
a[accesskey]:before { content: " " attr(accesskey) " "; text-transform: uppercase; white-space: pre; border: thin solid; font-family: sans-serif; text-decoration: underline overline; margin-right: 0.5ex; }
[edit] Disabling or changing shortcuts
To quickly disable all access and tooltips copy these lines:
/* disable Wikipedia access keys/keyboard shortcuts */ ta = false;
into your user JS file (you may need to create it if it doesn't yet exist).
To disable individual shortcuts, find the entry for the troublesome key on the list at Meta, and place a line in your monobook.js to override the global shortcut with an empty string (''
). Some common problem children include:
d (delete page):
/* disable Wikipedia access keys/keyboard shortcuts */ ta['ca-delete'] = new Array('','Delete this page');
e (edit page):
/* disable Wikipedia access keys/keyboard shortcuts */ ta['ca-edit'] = new Array('','Edit this page');
f ("find"/go to search box):
/* disable Wikipedia access keys/keyboard shortcuts */ ta['search'] = new Array('','Search this wiki');
o (login/logout):
/* disable Wikipedia access keys/keyboard shortcuts */ ta['pt-login'] = new Array('','You are encouraged to log in, it is not mandatory however.'); ta['pt-logout'] = new Array('','Log out');