Wikipedia:Keyboard shortcuts

From Wikipedia, the free encyclopedia

Shortcuts:
WP:K
WP:KB
WP:KS

The Monobook skin, which is the default on Wikipedia, contains many keyboard shortcuts. You can use them to access certain features of Wikipedia more quickly.

Depending on your browser, you should

See access keys for more information on this concept.


Key Command Description
+ Start a new discussion Allows you to add a new section (talk pages only)
. (period) My user page Opens your user page if logged in
= 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 or sysops)
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
i Minor edit Toggles the "This is a minor edit" checkbox (on edit pages)
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)
Printable version Opens a printable verison of the current page (on pages other than 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)
Watch this page Toggles the "Watch this page" checkbox (on edit pages)
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 access keys

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] Changing and disabling access keys

Most of the access keys and tooltips are now defined in Mediawiki software, some are added by JavaScript in MediaWiki:Common.js. You can easily customize them by adding some code to your monobook.js file.

For example, this will change accesskey to '0':

ta['ca-nstab-main'] = new Array('0','View the content page');


To disable certain access keys can use the example above but specify some other access key (see this example)

Also you can use removeAccessKeys script.


[edit] See also