手册:RollbackEdits.php

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:RollbackEdits.php and the translation is 39% complete.
Other languages:
English • ‎español • ‎português do Brasil • ‎中文 • ‎日本語

细节

rollbackEdits.php is a maintenance script to rollback all edits by a given user or IP provided they're the most recent edit(s) of a page (just like real rollback). This functionality can also rollback multiple edits, provided they have been made by the same user or IP.

用法

选项/参数 描述
--user A user or IP to rollback all edits for. This parameter is mandatory - also if --titles is being used. The script will not work, if no username is provided or if the provided username is invalid.
--titles A list of titles, which should be rolled back. If no titles are provided, all titles where the given user is the most recent editor will be rolled back. Multiple titles have to be separated by a pipe (|). Default: No titles provided.
If the latest edit(s) are not by the user, who has been provided in --user, then the script will leave the page alone and will not roll it back.
--summary 要使用的编辑摘要。 如果未提供摘要,$this->mSelf . ' mass rollback'将被使用。
--bot Mark the edits as having been done by a bot.