Manual:deleteDefaultMessages.php

This page is a translated version of the page Manual:DeleteDefaultMessages.php and the translation is 78% complete.
MediaWiki バージョン:
1.6


詳細

deleteDefaultMessages.php file is a maintenance script to delete all pages in the MediaWiki: namespace which were last edited by "MediaWiki default". Deletion will be done with the reason "No longer required".

オプション

オプション 説明 必須かどうか
--dry-run Perform a dry run, delete nothing 省略可能

使用法

php maintenance/deleteDefaultMessages.php


Terminal
$ php maintenance/deleteDefaultMessages.php --dry-run

Checking existence of old default messages...
* [[MediaWiki:Autoblockedtext]]
* [[MediaWiki:Autoblocker]]
* [[MediaWiki:Autoblocklist-summary]]
* [[MediaWiki:Autoredircomment]]
* [[MediaWiki:Autosumm-blank]]
* [[MediaWiki:Autosumm-changed-redirect-target]]
* [[MediaWiki:Autosumm-new]]
* [[MediaWiki:Autosumm-newblank]]
* [[MediaWiki:Autosumm-removed-redirect]]
* [[MediaWiki:Autosumm-replace]]

Run again without --dry-run to delete these pages.
Terminal
$ php maintenance/deleteDefaultMessages.php

Checking existence of old default messages...
...deleting old default messages (this may take a long time!)...done!

See also