Manual:deleteEqualMessages.php
MediaWiki バージョン: | ≧ 1.21 |
MediaWiki ファイル: deleteEqualMessages.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.42.3 • 1.41.4 • 1.39.10 |
クラス: | DeleteEqualMessages |
詳細
deleteEqualMessages.php file is a maintenance script to delete all pages in the MediaWiki namespace of which the content is equal to the system default. This is useful to make sure all messages will be pulled from TranslateWiki.net once wiki is upgraded.
オプション/引数
オプション | 説明 | 必須かどうか |
---|---|---|
--delete | Does the deletion of the pages. | 省略可能 |
--delete-talk | Delete talk pages as well; do not leave orphaned talk pages behind. Should be used together with "--delete". | 省略可能 |
--lang-code | Check for subpages of this lang-code (default: root page against content language) | 省略可能 |
使用法
php maintenance/deleteEqualMessages.php [ --delete| --delete-talk| --lang-code ]
Checking potential deletion
Terminal
$ php maintenance/deleteEqualMessages.php Checking for pages with default message... ... fetching message info for content language 1 pages in the MediaWiki namespace override messages. 1 pages are equal to the default message (+ 0 talk pages). List: * MediaWiki:Mywatchlist Run the script again with --delete to delete these pages
Making actual deletion
Terminal
$ php maintenance/deleteEqualMessages.php --delete Checking for pages with default message... ... fetching message info for content language 1 pages in the MediaWiki namespace override messages. 1 pages are equal to the default message (+ 0 talk pages). ...deleting equal messages (this may take a long time!)... * MediaWiki:Mywatchlist done!