手册:日志操作

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Log actions and the translation is 69% complete.

Other languages:
English • ‎polski • ‎中文 • ‎日本語

These are log types and log actions and their log parameters and log_search entries and descriptions.

日志类型 日志操作 日志参数 日志搜索 Implemented in Description
block block expiry (e.g. "3 days"), flags (e.g. "anononly", "nocreate", "noautoblock", "noemail", "nousertalk", "hiddenname") ipb_id 核心 (SpecialBlock::processForm() ) 封禁用户
reblock expiry (e.g. "3 days"), flags (e.g. "anononly", "nocreate", "noautoblock", "noemail", "nousertalk", "hiddenname") ipb_id 核心 (SpecialBlock::processForm() ) 更改封禁
unblock expiry (e.g. "3 days"), flags (e.g. "anononly", "nocreate", "noautoblock", "noemail", "nousertalk", "hiddenname") ipb_id 核心 (SpecialBlock::processForm() ) 解封用户
delete delete N/A N/A 核心 (WikiPage::doDeleteArticleReal() ) 删除页面
event log id, ofield, nfield log_id, target_author_id (array of the user IDs of the offenders), target_author_ip (array of the IP/anon user offenders) 核心 (RevDelList::updateLog() ) 删除日志事件
restore N/A N/A 核心 (PageArchive::undelete( ) 恢复页面
revision revision, revision ID (e.g. "7"), ofield (i.e. old bitfield), nfield (i.e. new bitfield) rev_id, target_author_id (array of the user IDs of the offenders), target_author_ip (array of the IP/anon user offenders) 核心 (RevDelList::updateLog() ) 更改可见度
import interwiki N/A N/A 核心 (ImportReporter::reportPage() ) 跨wiki导入
upload N/A N/A 核心 (ImportReporter::reportPage() ) 从上传的XML文件导入
merge merge target page (e.g. "Bar"), timestamp of the most recent merged revision N/A 核心 (SpecialMergeHistory::merge() ) 合并历史
move move 4::target (prefixed destination page title), 5::noredir (1 if redirect suppressed) N/A 核心 (MovePage::moveToInternal() ) 移动页面
move_redir 4::target (prefixed destination page title), 5::noredir (1 if redirect suppressed) N/A 核心 (MovePage::moveToInternal() ) Move a page over a redirect
newusers autocreate 4::userid N/A 核心 (User::addNewUserLogEntry() ) When the user is automatically created (such as by CentralAuth)
byemail 4::userid N/A 核心 (User::addNewUserLogEntry() ) When the created user will receive its password by email
create 4::userid N/A 核心 (User::addNewUserLogEntry() ) For an anonymous user creating an account for themself
create2 4::userid N/A Core (User::addNewUserLogEntry() ) For a logged in user creating an account for someone else
pagelang pagelang 4::oldlanguage (previous page language), 5::newlanguage (new page language) N/A Core (SpecialPageLanguage::onSubmit() ) For pages whose language has been changed
patrol patrol curid (i.e. current revision ID), previd (i.e. parent revision ID), auto (1 if auto-patrolled; otherwise 0) N/A Core (PatrolLog::record() ) Mark a revision as patrolled
autopatrol curid (i.e. current revision ID), previd (i.e. parent revision ID) N/A Core (PatrolLog::record() ) Automatic patrol of a revision
protect modify Duration of edit restriction (e.g. ‎"[edit=autoconfirmed] (indefinite)"), duration of move restriction (e.g. "‎[edit=autoconfirmed] (indefinite)‎[move=autoconfirmed] (indefinite)") page_restrictions.pr_id Core (WikiPage::doUpdateRestrictions() ) Modify the protection of a protected page
protect Duration of edit restriction (e.g. ‎"[edit=autoconfirmed] (indefinite)"), duration of move restriction (e.g. "‎[edit=autoconfirmed] (indefinite)‎[move=autoconfirmed] (indefinite)") page_restrictions.pr_id 核心 (WikiPage::doUpdateRestrictions() ) 保护未受保护的页面
unprotect N/A N/A 核心 (WikiPage::doUpdateRestrictions() ) 解除页面保护
rights rights 4::oldgroups, 5::newgroups N/A 核心 (UserrightsPage::addLogEntry() ) 更改用户的用户组
upload overwrite img_sha1, img_timestamp N/A 核心 (LocalFile::recordUpload2() ) 重新上传文件
upload img_sha1, img_timestamp N/A 核心 (LocalFile::recordUpload2() ) 上传文件

操作

Types and actions

Seemingly deprecated

  • User.php, User::addAutopromoteOnceGroups(): rights, autopromote, 4::oldgroups, 5::newgroups
  • FileDeleteForm.php, FileDeleteForm::doDelete(): suppress, delete

参见