Created page with "<bookshelf src="Book:User manual" /> ==About moving pages== 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. A page can be moved with or without redirecting the original page. Let's take a closer look at the differences. ==What happens when you move a page?== When you m..."
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 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.
==Understand page moves==
When a page is moved:
A page can be moved with or without redirecting the original page. Let's take a closer look at the differences.
* The page title and URL change.
* The page content is displayed under the new title.
==What happens when you move a page?==
* The page's version history is transferred to the new page.
When you move a page:
* The original page can either become a redirect to the new page or no longer be available under the original title. <br>
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.
*you rename the page name and thus the page title
{{Textbox|boxtype=warning|header=Links to the original page can break without a redirect|text=Moving 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.|icon=yes}}
*the page content is displayed on the new page
==Before moving a page==
*the version history of the original page is transferred to the new page
Before moving a page, check which pages link to the current title. <br>
'''To view the links to the page''':
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.
#Open '''More page actions'''.
#Select '''...all actions'''.
{{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}}
#Select '''What links here'''.
[[File:move-what-links-here.png|alt=What links here page|center|thumb|550x550px|What links here]]
=== What links here ===
If many pages link to the current title, leaving a redirect is generally recommended. Also consider links from external websites. <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.
The following example shows how moving a page from "Emobile" to "Electric Vehicles" affects the original and new page titles:
The following diagram shows how to rename an "Emobile" page to a page called "Electric Vehicles" page:
==Move a page==
'''To move a page''':
{{#drawio:Seite_verschieben}}
#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]]
#Optional: Enter a reason for the move in '''Reason'''. The reason is recorded in the wiki log.
==How do I move a page?==
# By default, '''Leave a redirect behind''' is selected. Clear this option if the original page should not redirect to the new page.
Go to the page tools menu item "Manage page> Move":
# 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.
# Optional: Select '''Watch source page and target page''' to add both pages to your watchlist.
#'''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]]
===Move with a redirect===
#'''Provide''' a reason why why it was necessary to move the page (optional). This reason is shown in the logs of the wiki.
Leaving a redirect is useful when the original page title should continue to lead to the moved page. <br>
#'''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.
Consider leaving a redirect when:
#'''Watch source page and target page''': Specify whether you want to put the source and landing pages on your watch list when redirecting.
* Other wiki pages contain links to the original title.
#'''Click''' ''Done''. The page has been moved.[[File:action-move-success.png|alt=Successfull move|center|thumb|350x350px|Successfull move]]
* External websites may link to the original title.
===Move with redirect===
* The original title may still be used in searches.
It makes sense to create a redirect in the following cases:
* The original title should continue to resolve to the new page. <br>
A redirect allows users and existing links to reach the page after it has been moved.
*The original page is linked to many other sites (e.g., from other websites or other internal wiki sites).
===Move without a redirect===
*The title of the original page is sometimes used in the search and the page should be found either way.
Moving without a redirect can be appropriate when the original title should no longer lead to the new page. <br>
*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 />
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.
===Move without redirect===
* The original title should no longer appear in search results.
In these cases, it makes sense to move without forwarding:
* An unnecessary redirect should be avoided. <br>
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]].
*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.
== Update links after moving without a redirect ==
*The original title should not appear in the search.
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>
*An unnecessary redirection via a forwarding page should be avoided.
Users with administrator permissions can use <code>Special:ReplaceText</code>to find and replace references to the original page title.
=== Update references with <code>Special:ReplaceText</code>===
<br />
'''To update references to the original page title''':
# Open <code>Special:ReplaceText</code>.
==Updating references to the page==
# Enter the original page title under '''Original text'''.
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.
# Enter the new page title under '''Replacement text'''.
[[File:replace-text-fields.png|alt=Special:ReplaceText page with Original text and Replacement text fields|center|thumb|500x500px|Original and replacement text]]
Users with administrator permissions can go to the page ''Special:Replace Text'' to find references to the previous page name.
# Select '''All''' to search all wiki sections.
[[File:replace-text-settings.png|alt=Special:ReplaceText settings with All selected|center|thumb|500x500px|ReplaceText settings]]
Enter the original page title under "Existing text" and the new page title under "Replacement text":
# Select '''Continue'''. No text is replaced at this point. A results page shows the references that were found.
# Review the results and select the references that should be updated.
# Select '''Replace''' to perform the replacements.
Select all wiki sections using the "All" button to find existing references to the original page:
[[File:replace-text-results.png|alt=Special:ReplaceText results with references to the old page title|center|thumb|400x400px|ReplaceText results]]
[[File:replacetext-settings.png|alt=Replace text - settings|center|thumb|500x500px|Replace text - settings]]
A confirmation page indicates that the replacements have been submitted.
[[File:replace-text-confirmation.png|alt=Confirmation that text replacements have been submitted|center|thumb|400x400px|Replacement confirmation]]
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:
The replacements are processed in the background. Depending on the number of replacements, it may take some time before all changes are visible.
[[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.
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.
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:
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:
Optional: Enter a reason for the move in Reason. The reason is recorded in the wiki log.
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.
Optional: Select Watch source page and target page to add both pages to your watchlist.
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.
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:
Open Special:ReplaceText.
Enter the original page title under Original text.