Meryam Sahin (talk | contribs)
No edit summary
Meryam Sahin (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<status color="green" light="true">done</status> <br>
A page can be renamed by moving it to a new title. Moving a page changes its URL and transfers its content and version history to the new title. Existing links to the old page title are not updated automatically, so consider whether a redirect is needed before moving a page.
A page can be renamed by moving it to a new title. Moving a page changes its URL and transfers its content and version history to the new title. Existing links to the old page title are not updated automatically, so consider whether a redirect is needed before moving a page.
==Understand page moves==
==Understand page moves==
Line 14: Line 15:
#Select '''...all actions'''.
#Select '''...all actions'''.
#Select '''What links here'''.
#Select '''What links here'''.
[[File:action-move-what links here.png|alt=What links here page|center|thumb|550x550px|What links here]]
[[File:move-what-links-here.png|alt=What links here page|center|thumb|550x550px|What links here]]
If many pages link to the current title, leaving a redirect is generally recommended. Also consider links from external websites. <br>
If many pages link to the current title, leaving a redirect is generally recommended. Also consider links from external websites. <br>
The following example shows how moving a page from "Emobile" to "Electric Vehicles" affects the original and new page titles:
The following example shows how moving a page from "Emobile" to "Electric Vehicles" affects the original and new page titles:
<drawio filename="Rename_and_move_pages" editmode="inline" alignment="center" />
<drawio filename="Rename_and_move_pages" editmode="inline" alignment="center" />
 
==Move a page==
 
'''To move a page''':
 
#Open '''More page actions'''.  
 
#Select '''Move'''. [[File:move-page-actions-menu.png|alt=More page actions menu with the Move option|center|thumb|216x216px|More page actions menu]]
==About moving pages==
#Optional: Enter a reason for the move in '''Reason'''. The reason is recorded in the wiki log.
A wiki page can only be renamed by moving it. Moving is necessary, since the web address of the page changes during renaming. Normally, there are many links to a wiki page. It is therefore important that these links still work after renaming the page.
# By default, '''Leave a redirect behind''' is selected. Clear this option if the original page should not redirect to the new page.
 
# By default, '''Move subpages''' is selected. Clear this option if the page's subpages should not be moved. If the page has no subpages, this option has no effect.
A page can be moved with or without redirecting the original page. Let's take a closer look at the differences.
# Optional: Select '''Watch source page and target page''' to add both pages to your watchlist.
 
# Select '''Move'''. <br>
==What happens when you move a page?==
The page is moved to the new title.
When you move a page:
[[File:move-page-success.png|alt=Successful page move|center|thumb|350x350px|Page move completed]]
 
===Move with a redirect===
*you rename the page name and thus the page title
Leaving a redirect is useful when the original page title should continue to lead to the moved page. <br>
*the page content is displayed on the new page
Consider leaving a redirect when:
*the version history of the original page is transferred to the new page
* Other wiki pages contain links to the original title.
 
* External websites may link to the original title.
If you move from the original page to the new page, an additional page with the old page name will be created. This page then serves as a redirect to the new page. If you do not create a redirect, the original page is simply replaced. In this case, you should check and update the links to the old page on your wiki.
* The original title may still be used in searches.
 
* The original title should continue to resolve to the new page. <br>
{{Textbox|boxtype=warning|header=Without a redirect page, links to the original page name will break!|text=When you move (=rename) a page, links to that page are not updated on other wiki pages. Make sure to read about redirects before starting to move pages for the first time.|icon=yes}}
A redirect allows users and existing links to reach the page after it has been moved.
 
===Move without a redirect===
=== What links here ===
Moving without a redirect can be appropriate when the original title should no longer lead to the new page. <br>
Before you move a page, you should see if other pages link to that page name. To do this, go to ''What links here'' under ''...all actions'' in the page tools. If many links are listed here, you should create a redirect when moving the page.
For example, a redirect may not be needed when:
[[File:action-move-what links here.png|alt=What links here|center|thumb|550x550px|What links here]]
* A spelling error in the title is corrected and only a few links to the original title exist.
The following diagram shows how to rename an "Emobile" page to a page called  "Electric Vehicles" page:
* The original title should no longer appear in search results.
 
* An unnecessary redirect should be avoided. <br>
{{#drawio:Seite_verschieben}}
If no redirect is created, update existing links to the original title as described in [[#Update links after moving without a redirect|Update links after moving without a redirect]].
 
== Update links after moving without a redirect ==
 
If a page is moved without creating a redirect, existing links to the original title may need to be updated. Otherwise, these links no longer lead to the moved page. <br>
==How do I move a page?==
Users with administrator permissions can use <code>Special:ReplaceText</code>to find and replace references to the original page title.
Go to the page tools menu item  "Manage page> Move":
=== Update references with <code>Special:ReplaceText</code>===
 
'''To update references to the original page title''':
<br />
# Open <code>Special:ReplaceText</code>.
 
# Enter the original page title under '''Original text'''.
#'''Click''' ''Move.'' [[File:action-move.png|alt=Actions menu|center|thumb|216x216px|Actions menu]]
# Enter the new page title under '''Replacement text'''.
#'''Enter''' a new page name. If you move the page to a different namespace, you need to include the namespace prefix as well.  [[File:action-move-dialog.png|alt=Moving a page to a different namespace and renaming the page|center|thumb|350x350px|Moving a page to a different namespace and renaming the page]]
[[File:replace-text-fields.png|alt=Special:ReplaceText page with Original text and Replacement text fields|center|thumb|500x500px|Original and replacement text]]
#'''Provide''' a reason why why it was necessary to move the page (optional). This reason is shown in the logs of the wiki.
# Select '''All''' to search all wiki sections.
#'''Leave a redirect behind:''' Depending on the linking status or purpose of a page, you now have to decide whether to move the page with or without forwarding.
[[File:replace-text-settings.png|alt=Special:ReplaceText settings with All selected|center|thumb|500x500px|ReplaceText settings]]
#'''Watch source page and target page''': Specify whether you want to put the source and landing pages on your watch list when redirecting.
# Select '''Continue'''. No text is replaced at this point. A results page shows the references that were found.
#'''Click''' ''Done''. The page has been moved.[[File:action-move-success.png|alt=Successfull move|center|thumb|350x350px|Successfull move]]
# Review the results and select the references that should be updated.
===Move with redirect===
# Select '''Replace''' to perform the replacements.
It makes sense to create a redirect in the following cases:
[[File:replace-text-results.png|alt=Special:ReplaceText results with references to the old page title|center|thumb|400x400px|ReplaceText results]]
 
A confirmation page indicates that the replacements have been submitted.
*The original page is linked to many other sites (e.g., from other websites or other internal wiki sites).
[[File:replace-text-confirmation.png|alt=Confirmation that text replacements have been submitted|center|thumb|400x400px|Replacement confirmation]]
*The title of the original page is sometimes used in the search and the page should be found either way.
The replacements are processed in the background. Depending on the number of replacements, it may take some time before all changes are visible.
*The page is returned as a result of an  [[SMW queries|SMW query]] . In that case, due to a bug, the original page needs to be deleted manually after the page move. {{Bsvs|bsvTo=4.3.2}}<br />
 
===Move without redirect===
In these cases, it makes sense to move without forwarding:
 
*A spelling error is corrected in the title. There are only a few links to the page and they are easy to find and replace.
*The original title should not appear in the search.
*An unnecessary redirection via a forwarding page should be avoided.
 
<br />
 
==Updating references to the page==
If no redirect was created when the page was renamed, it is sometimes necessary to check if existing links to the original page exist in your wiki. These must then be adapted accordingly to the new page name, so that the page is newly networked.  
 
Users with administrator permissions can go to the page ''Special:Replace Text'' to find references to the previous page name.
 
Enter the original page title under "Existing text" and the new page title under "Replacement text":
[[File:1A1A.png|alt=Replace text|center|thumb|500x500px|Replace text]]
 
Select all wiki sections using the "All" button to find existing references to the original page:
[[File:replacetext-settings.png|alt=Replace text - settings|center|thumb|500x500px|Replace text - settings]]
 
If you click on "Continue" the text will not be replaced yet. First, an overview page with the results found will be displayed. Check which of the results you want to replace and check the box. Click "Replace" to perform the replacement:
[[File:replacetext-results.png|alt=Replace old page name|center|thumb|400x400px|Replace old page name]]
 
The last page now confirms that the wiki is now completing the text replacements:
[[File:replacetext-results2.png|alt=Confirmation of text replacements|center|thumb|400x400px|Confirmation of text replacements]]
 
Your wiki is now correctly linked again and the editing of the page renaming is completed. Depending on the number of replacements, it may take a while before the changes are actually visible. The changes made by this special page are collected in a queue, which is gradually processed in the background.
 
 
 
{{Box_Links-en | Topic1 =[[Manual:Redirects|Redirecting pages]] | Topic2 = [[Manual:Delete_article|Delete pages]] | Topic3 =[[Manual:Subpage|Working with subpages]]  }}
 
 
[[de:Handbuch:Seiten umbenennen und verschieben]]
 
 
 
[[Category:Page tools]]

Latest revision as of 14:50, 19 August 2026

done
A page can be renamed by moving it to a new title. Moving a page changes its URL and transfers its content and version history to the new title. Existing links to the old page title are not updated automatically, so consider whether a redirect is needed before moving a page.

Understand page moves

When a page is moved:

  • The page title and URL change.
  • The page content is displayed under the new title.
  • The page's version history is transferred to the new page.
  • The original page can either become a redirect to the new page or no longer be available under the original title.

If no redirect is created, links to the original page title no longer lead to the moved page. Existing links must then be updated manually.

Links to the original page can break without a redirectMoving a page does not automatically update links to the original page title. Before moving a page, check which pages link to it and decide whether to leave a redirect behind.

Before moving a page

Before moving a page, check which pages link to the current title.
To view the links to the page:

  1. Open More page actions.
  2. Select ...all actions.
  3. Select What links here.
What links here page
What links here

If many pages link to the current title, leaving a redirect is generally recommended. Also consider links from external websites.
The following example shows how moving a page from "Emobile" to "Electric Vehicles" affects the original and new page titles:

Rename_and_move_pages

Move a page

To move a page:

  1. Open More page actions.
  2. Select Move.
    More page actions menu with the Move option
    More page actions menu
  3. Optional: Enter a reason for the move in Reason. The reason is recorded in the wiki log.
  4. By default, Leave a redirect behind is selected. Clear this option if the original page should not redirect to the new page.
  5. By default, Move subpages is selected. Clear this option if the page's subpages should not be moved. If the page has no subpages, this option has no effect.
  6. Optional: Select Watch source page and target page to add both pages to your watchlist.
  7. Select Move.

The page is moved to the new title.

Successful page move
Page move completed

Move with a redirect

Leaving a redirect is useful when the original page title should continue to lead to the moved page.
Consider leaving a redirect when:

  • Other wiki pages contain links to the original title.
  • External websites may link to the original title.
  • The original title may still be used in searches.
  • The original title should continue to resolve to the new page.

A redirect allows users and existing links to reach the page after it has been moved.

Move without a redirect

Moving without a redirect can be appropriate when the original title should no longer lead to the new page.
For example, a redirect may not be needed when:

  • A spelling error in the title is corrected and only a few links to the original title exist.
  • The original title should no longer appear in search results.
  • An unnecessary redirect should be avoided.

If no redirect is created, update existing links to the original title as described in Update links after moving without a redirect.

If a page is moved without creating a redirect, existing links to the original title may need to be updated. Otherwise, these links no longer lead to the moved page.
Users with administrator permissions can use Special:ReplaceTextto find and replace references to the original page title.

Update references with Special:ReplaceText

To update references to the original page title:

  1. Open Special:ReplaceText.
  2. Enter the original page title under Original text.
  3. Enter the new page title under Replacement text.
Special:ReplaceText page with Original text and Replacement text fields
Original and replacement text
  1. Select All to search all wiki sections.
Special:ReplaceText settings with All selected
ReplaceText settings
  1. Select Continue. No text is replaced at this point. A results page shows the references that were found.
  2. Review the results and select the references that should be updated.
  3. Select Replace to perform the replacements.
Special:ReplaceText results with references to the old page title
ReplaceText results

A confirmation page indicates that the replacements have been submitted.

Confirmation that text replacements have been submitted
Replacement confirmation

The replacements are processed in the background. Depending on the number of replacements, it may take some time before all changes are visible.