Jump to content

Manual:cleanupTitles.php

From mediawiki.org
This page is a translated version of the page Manual:CleanupTitles.php and the translation is 59% complete.
MediaWiki バージョン:
1.6

詳細

cleanupTitles.php is a maintenance script located in the maintenance directory that can be used to clean up broken, unparseable titles. 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.


オプション/引数

オプション 説明 必須かどうか
--dry-run ドライランの遂行 省略可能
--reporting-interval ステータス行を印刷する頻度 省略可能

使用法

php maintenance/run.php cleanupTitles [ --dry-run| --reporting-interval ]
MediaWiki バージョン 1.43.6 以前では、メンテナンス スクリプトを php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。

Checking for bad titles with dry-run

Terminal

Checking and fixing bad titles

Terminal

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

関連項目