Manual:CleanupTitles.php

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:CleanupTitles.php and the translation is 36% complete.

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎മലയാളം • ‎中文 • ‎日本語

cleanupTitles.php is a maintenance script located in the maintenance directory that can be used to clean up broken, unparseable titles. The edits will be attributed to the user called Conversion script. This script is rather useful for cases in which someone has added a new interwiki prefix (e.g. commandos:) to the interwiki table and thereby caused mainspace pages with ambiguous titles (e.g. Commandos: Behind Enemy Lines) to become inaccessible. Likewise, the script can be used to process changes in $wgLegalTitleChars that rendered previously valid page titles inaccessible. Note that namespaceDupes.php is often a preferable option, if the goal is to move pages into their proper namespace.

Also note, this script does not support fixing encoding issues (e.g. Pages that are not UTF-8 NFC) at current time.

Uso

php cleanupTitles.php [--dry-run]
Option/Parameter Description
--dry-run Perform a dry run

Resultado

Fixed pages are moved to Broken/<foo> (where <foo> is the cleaned up version of the broken title)

Véase también