Help:Renaming (moving) a page

Moving a page means giving the page another name. The page history is then attached to a new name. Another page with the old name is created and automatically redirects to the new name.

There are several reasons why you might wish to rename a page:
 * The title has been misspelled.
 * To correct a title that does not follow the wiki's naming conventions.
 * The subject of the page has changed its name. For instance, a page about a person might be renamed if the person changes their name.
 * The scope of the article has been reduced, extended or otherwise changed.
 * A Talk page may be moved as one of the methods of archiving discussion.

Move is the same as rename
The terms "rename" and "move" mean the same when talking about a wiki page. You can use these instructions to do either. In fact, the two terms are just different ways of picturing the same operation:


 * rename: Keep the page but give it another name. The edit history of the page carries on under the new name.  At the same time, a new page with the old name is created.  The new page's edit history records the renaming.  The new page starts out as a redirect to the new name.
 * move: Move the contents and the edit history to a new page. Change the old page into a redirect to the new page.  Change the edit history into one that only records the renaming.

Both of these are doing exactly the same thing. It's just different words and different ways of thinking about what is accomplished.

For those interested in the technical details which aren't apparent to regular users of the wiki, internally the wiki software uses the "rename" model. The system marks the page with the old name as new page. (The entry in the table connects a new page name to the page ID. The revision table just gets entries about the move, nothing else, because the relation between page ID and revision IDs remains the same.)

Permission
In order to be able to move or rename a page, the wiki software must know that you have permission to do so. If you don't have permission, you will not see the "Move" tab needed to do so.

Some wikis are set up to allow any user to move pages. But many restrict the "move" user right to certain user groups. Some wikis (such as the English Wikipedia) allow only users who have logged in to move pages.

If the wiki does not allow you to move a page, first try logging in, if you aren't already. If that doesn't work talk to one of the administrators. Assuming it fits with their policies, they will have to add you to a user group that has the "move" privilege or add the "move" privilege to a user group you are already part of.

On many wikis you have to be logged in, and there may be a set length of time that you will have to have had an account for (often four days), along with a minimum number of edits having been made from that account (often zero). On these wikis you are automatically given the "move" privilege after these criteria are met.

How to
To move or rename a page:
 * 1) On the page you want to change, click on the "" tab near the top of the page (placement depends on your settings).
 * 2) You'll be asked for a new name for the page, and given the option to also move the page's talk page. Enter the new page name.
 * 3) * Unless you know what you're doing, it's safest to say yes to moving the talk page as well.
 * 4) * As of MediaWiki 1.5, the reason for the move can be given, like an edit summary. Note however that the inputbox seems to accept an unlimited number of characters while not more than 255 characters are actually recorded in the move log.
 * 5) Click the move button and the page will be renamed to the new title.

Moving creates redirects
When moving a page, a new page under the old name is automatically created. That page contains a "redirect" to the new name. Any reader that tries to access the page under the old name will automatically be redirected to the page under the new. For instance, any links to the old title will still go to the new title instead.

Most often, having a redirect automatically created is what you want. But in some circumstances you may have wanted to move a page so that you can create a new page with different contents under the old name. You can change a redirect into an a regular page and add your content.

Note that the wiki software does not support double redirects (Page A redirects to Page B which redirects to Page C). In such a case, accessing Page A will show Page B and the user will have to click on a link to see Page C. This could be a problem when moving the page, if there are already redirects to the old page name. Renaming a page once and then renaming it again will cause a double redirect.

Page histories
The "move page" function keeps the entire edit history of the page before and after the move in one place, as if the page had always been named that way.

The move itself is recorded in the edit histories of both pages. This feature was introduced in MediaWiki 1.5 and does not work retroactively: older moves are only recorded indirectly, in the page history of the old page name. The move log's recorded reason is not always completely shown in the edit histories: there is a lower maximum on the size.

Avoid copy and paste
Except in rare circumstances, you should always rename a page rather than using copy and paste because:
 * It's easier! The software does the actual moving for you, and even turns the old page into a redirect to the new one.
 * Talk pages stay in sync. Unless you tell it not to, or there's another talk page there already, the software will move the article's talk page to match its new title.
 * The edit history is retained. If you copy and paste text, it is no longer possible to see who edited that text when, because those edits didn't happen to the same article. If you rename a page, however, the entire history remains intact, giving previous editors the credit they deserve.
 * It is easily reversible. If a page is renamed in error, the software will allow it to be renamed back to the old name, even though that page will exist (as a redirect). This is very tidy, since the erroneous name will now be a redirect with no edit history, and may be deleted with no loss if that redirect will not be useful.
 * People's watch lists will be updated. If you turn a page that someone has on their watch list into a redirect, they may not notice, and will not then see edits on the new page. If you rename the page, however, the new page will automatically be added to their watchlist.
 * It will show up as a move on "recent changes". OK, so you could put this in your edit summary if you remembered, but it's nice to have it automatically having a consistent label, right?

The rare circumstances where copy and paste is appropriate, include: See "fixing cut and paste moves" below.
 * unmovable pages.
 * when splitting a page into multiple pages. If you do, please include a note in the new pages's edit summary and talk page stating where you took the text from.

Unmovable pages
The wiki software is not able to move certain types of pages.

Pages in the "Image:" namespace cannot be moved. To change the name of an uploaded image or file, one needs to upload it again, and copy the description from the old page to the new page. The old page can then be deleted.

Pages in the "Category:" namespace cannot be moved either. To change the name of a category, one needs to change all category tags on the pages that are listed in that category. Then copy the editable part of the old category to the new category. And finally delete the old category page.

Moving redirect pages
A page that is a redirect can be moved like any other page. This is however not advised while it has the same detrimental effect on page history as copy-pasting content to a new page, and making the old page a redirect: when moving a redirect page to a new page name, the redirect on the old page (now directing to the new redirect page) will have to be changed in order to avoid double redirects. So the content of the old page will no longer redirect to the page containing the history of that old page. The only effect is that the whereabouts of the page history of the old page (now seemingly a "recently created page") are a bit trickier to find, while on the other hand the new page has a history attached to it not clarifying why it would need to be a redirect page.

If a redirect page does not redirect to the page it would need to be redirecting to, the only viable strategy that respects page histories, is to adapt the redirect on that page, without moving the page.

Moving over a redirect
If the new title already exists but is just a redirect to the old title, with just one line in the page history, the creation of the redirect, then you can rename the page. The most common case in which this applies is that of re-renaming a page back to its original name. As mentioned, this works only if the redirect that was automatically created in the first renaming, has not been edited.

The information about the former creation of the redirect over which the move takes place is lost. If it was the result of an earlier move of the page that is now moved back, that information is still available in the history of that page.

More moves back and forth are possible, and always the page history of the current title shows all moves, and that of the other title only contains the edit line of the latest move.

As mentioned, recording a page move in the edit history of the page itself is a feature introduced in MediaWiki 1.5 which does not work retroactively: therefore of older moves back and forth only the latest is recorded.

Earlier there was a bug, which has been fixed but not retroactively, as follows:


 * However, if the page is moved back, the edit history of the page with the intermediate title shows the latest move only, with the corresponding user name, but with the date and time of the first move(!). Accordingly, the name of the user who moved the page the first time and the date and time of the second move are lost (except that they appear in the Recent Changes). 

Moving over an existing page
Administrators can move a page, deleting an existing page with a name equal to the new name of the moved page, in one step. The associated talk page will not be moved if the target talk need to be deleted as well.

If the new title already exists and isn't just a redirect to the old title, with no history, and you are not an administrator, the wiki will tell you that you can't rename the page. You'll either have to manually merge the two pages, or if there's no real content in the page ask an Administrator to have it deleted or list it on your project's "votes for deletion" page in order to make room for moving the page.

Move-protected pages
Administrators can protect pages from moves. If a page is protected from moves only, the "Move this page" link will not be available. In this case, you can ask that an administrator move it for you, or you can manually move the page, by copying the contents to the new page and redirecting the old page to the new page. However, the latter is generally not recommended, and users are asked to request the moves instead.

Pages that are protected from editing are automatically protected from moves.

Guidelines
Before you rename page, consider whether you're following the guidelines for the wiki involved. Most wikis have guidelines similar to these:
 * If you want to experiment, use a sandbox first. Note: A sandbox page often starts out blank. The purpose of this blank page is to use as a whiteboard for your experiments.
 * Choose your new title carefully.
 * Review conventions of the project you are working in regarding e.g.:
 * Naming conventions.
 * Take some time to make sure there is no objection to your moving; always check the talk page first.
 * Avoid moving a page while the edit box of the corresponding Talk page is open: when you hit "Save page" you overwrite the redirect to the new talk page (you do not get the usual warning that the page has been edited while your edit box was open) and get a duplication of the contents of the talk page, with your latest addition added to the old instead of the new one.
 * It is useful to copy the message "Page ... moved to ..." to the new talk page, especially if there has been discussion about the name of the page.

Other notes
Moving a page shows up in Recent Changes under "Move log", which links to a log of all moves. However, moving a watched page does not show up on the watchlist; after the move both the old and the new name are watched.

Subpages, such as the archives of a talk page, and the documentation page of a template, are not automatically moved along with a page move. Administrators can automatically move up to 100 subpages along with the basepage.

Undoing a move
To undo a move from page A to page B, simply move page B back to page A.

Note that usual "undo" link on history or diff pages does not work on moves. An easy way to rename the page back is clicking "" from the history page, and then "" link from the corresponding record in Special:Log.

The software requires that the redirect be pointing to the page you're moving it from. Therefore, if a vandal moved Page A to Page B to Page C, you cannot simply move C to A, you have to:
 * 1) Move page C to page B
 * 2) Move page B to page A

If page A has subsequently been edited, or the move software is behaving weirdly, only an admin can sort things out:
 * 1) Delete page A (make sure it has no useful history - you may wish to add an explicit author credit on a talk page to compensate, or undelete those versions after the move)
 * 2) Move page B to page A.
 * 3) Delete page B (should be a history-free redirect to page A)

"Move wars" are highly unproductive, and leave vast numbers of pointless redirects littering the place, which some poor soul will have to fix.

After undoing a move, if you do not need B as a redirect, tag it for deletion (using the appropriate process on the wiki you're using, for instance 'speedy deletion' or 'votes for deletion'), or (administrators only) just delete it.

Swapping two pages
To swap pages A and B, including history, as administrator:
 * 1) Move page A to page C (previously non-existing), without redirect
 * 2) Move page B to page A (allowed because A is non-existent), without redirect
 * 3) Move page C to page B (allowed because B is non-existent), without redirect

If you are not an administrator, ask for help. Some large projects have a separate page (called "Requested Moves", or something similar) specifically for requesting help with these (and also for discussing potentially contentious moves). There may also be a template for this.

Automating multiple page moves
Administrators and other users with the "move-subpages" right are also given an option to move up to $wgMaximumMovedPages subpages and talk subpages can be moved along with a move target if enabled. Currently this is enabled for all Wikimedia wikis with $wgMaximumMovedPages set to 100 by default, but raised to 500 for Wikibooks wikis, which have a greater need for this ability.

For this to work, all target titles for the subpages (and their talks) must be free; no mass move over redirect or overwriting (with deletion) is allowed.