Manual:cleanupWatchlist.php
Appearance
| MediaWiki バージョン: | ≧ 1.6 |
| MediaWiki ファイル: cleanupWatchlist.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| クラス: | WatchlistCleanup |
詳細
cleanupWatchlist.php file is a maintenance script to clean up broken, unparseable titles in the watchlist.
オプション
| オプション/パラメーター | 説明 | 必須かどうか |
|---|---|---|
| --fix | Actually clean up titles; otherwise just checks for them. | 省略可能 |
使用法
php maintenance/run.php cleanupWatchlist [ --fix ]
MediaWiki バージョン 1.43.6 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。Terminal
$ php maintenance/run.php cleanupWatchlist Dry run only: use --fix to enable updates Checking and fixing bad titles... Processing watchlist... invalid watch by 1 for (7, "ABC") Finished watchlist... 0 of 33 rows updated
It will only count the number of possible updates and output the result, without fixing the value. To clean up the watchlist, run the command with --fix.
Terminal
$ php maintenance/run.php cleanupWatchlist --fix Checking and fixing bad titles... Processing watchlist... invalid watch by 1 for (7, "ABC") - removed Finished watchlist... 1 of 33 rows updated