GuildWiki:Bot tasks/Relinking moved pages

From GuildWiki
Jump to: navigation, search

Description

This task is for the quick updating of links to an article, image, or category that has been moved to a new name.

In order to prevent false positives where a longer article name contains a shorter one (e.g. Category:Mursaat is contained in Category:Mursaat Bosses), each of the replacement operations given below will actually consist of three find/replace rules, one for each of the possible characters that can follow an article name in a wikilink.

[[old][[new]
[[old|[[new|
[[old#[[new#

Articles

AWB will make a list from "What links here" to the old article name. On each page in this list, AWB will perform the following replacement:

[[Old Article Name[[New article name

Categories

Articles in category

Since AWB is currently unable to make a list from categories on Wikia wikis, the list of articles assigned to the old category will have to be manually saved to a local file (methods for doing so can be found here). Using the category task "Replaced category:", AWB will perform the following replacement:

Old Cat NameNew cat name

Links to category

AWB will make a list from "What links here" to the old category name. On each page in this list, AWB will perform the following replacement:

[[:Category:Old Cat Name[[:Category:New cat name

Images

Image file links

AWB will make a list from "Image file links" to the old image name. Using the image task "Replace image:", AWB will perform the following replacement:

Old Image NameNew image name

Image page links

AWB will make a list from "What links here" to the old image name. On each page in this list, AWB will perform the following replacement:

[[:Image:Old Image Name[[:Image:New image name

Templates

Template transclusions

AWB will make a list from "What transcludes page" to the old template name. On each page in this list, AWB will perform the following replacements:

{{Template:Old Template Name{{Template:New template name

{{Old Template Name{{New template name

Template page links

AWB will make a list from "What links here" to the old template name. On each page in this list, AWB will perform the following replacement:

[[Template:Old Template Name[[Template:New template name

Requests

Any requests for link updating can be posted on the talk page. Provide a link to both the old and the new page names.