Manual:$wgActionFilteredLogs/zh
From Linux Web Expert
<translate> Logging</translate>: $wgActionFilteredLogs | |
---|---|
可按操作类型被过滤的日志类型列表 |
|
<translate> Introduced in version:</translate> | 1.27.0 (Gerrit change 253072; git #I6a61175) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (数组中的数组) |
<translate> Default value:</translate> | 参见下方 |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
详情
这允许Special:Log中的日志按日志操作进行过滤。
有关按修订版本删除操作过滤删除日志的示例,请参见此链接。
每个数组键都是一个日志类型,它应当被设置为包含操作组的数组,该数组应当是log_action 子类型的数组。
消息键按照以下格式:MediaWiki:log-action-filter-$type-$action
。
过滤器选择字段的标签来自于消息MediaWiki:log-action-filter-$type
。
(对于消息文档,您可以分别使用doc-log-action-filter-type和doc-log-action-filter-action模板。)
具有自定义日志类型的扩展可添加至此数组。
默认值
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.36
<translate> MediaWiki version:</translate> |
$wgActionFilteredLogs = [
'block' => [
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
'unblock' => [ 'unblock' ],
],
'contentmodel' => [
'change' => [ 'change' ],
'new' => [ 'new' ],
],
'delete' => [
'delete' => [ 'delete' ],
'delete_redir' => [ 'delete_redir', 'delete_redir2' ],
'restore' => [ 'restore' ],
'event' => [ 'event' ],
'revision' => [ 'revision' ],
],
'import' => [
'interwiki' => [ 'interwiki' ],
'upload' => [ 'upload' ],
],
'managetags' => [
'create' => [ 'create' ],
'delete' => [ 'delete' ],
'activate' => [ 'activate' ],
'deactivate' => [ 'deactivate' ],
],
'move' => [
'move' => [ 'move' ],
'move_redir' => [ 'move_redir' ],
],
'newusers' => [
'create' => [ 'create', 'newusers' ],
'create2' => [ 'create2' ],
'autocreate' => [ 'autocreate' ],
'byemail' => [ 'byemail' ],
],
'protect' => [
'protect' => [ 'protect' ],
'modify' => [ 'modify' ],
'unprotect' => [ 'unprotect' ],
'move_prot' => [ 'move_prot' ],
],
'rights' => [
'rights' => [ 'rights' ],
'autopromote' => [ 'autopromote' ],
],
'suppress' => [
'event' => [ 'event' ],
'revision' => [ 'revision' ],
'delete' => [ 'delete' ],
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
],
'upload' => [
'upload' => [ 'upload' ],
'overwrite' => [ 'overwrite' ],
'revert' => [ 'revert' ],
],
];
1.33 – 1.35
<translate> MediaWiki versions:</translate> |
$wgActionFilteredLogs = [
'block' => [
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
'unblock' => [ 'unblock' ],
],
'contentmodel' => [
'change' => [ 'change' ],
'new' => [ 'new' ],
],
'delete' => [
'delete' => [ 'delete' ],
'delete_redir' => [ 'delete_redir' ],
'restore' => [ 'restore' ],
'event' => [ 'event' ],
'revision' => [ 'revision' ],
],
'import' => [
'interwiki' => [ 'interwiki' ],
'upload' => [ 'upload' ],
],
'managetags' => [
'create' => [ 'create' ],
'delete' => [ 'delete' ],
'activate' => [ 'activate' ],
'deactivate' => [ 'deactivate' ],
],
'move' => [
'move' => [ 'move' ],
'move_redir' => [ 'move_redir' ],
],
'newusers' => [
'create' => [ 'create', 'newusers' ],
'create2' => [ 'create2' ],
'autocreate' => [ 'autocreate' ],
'byemail' => [ 'byemail' ],
],
'protect' => [
'protect' => [ 'protect' ],
'modify' => [ 'modify' ],
'unprotect' => [ 'unprotect' ],
'move_prot' => [ 'move_prot' ],
],
'rights' => [
'rights' => [ 'rights' ],
'autopromote' => [ 'autopromote' ],
],
'suppress' => [
'event' => [ 'event' ],
'revision' => [ 'revision' ],
'delete' => [ 'delete' ],
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
],
'upload' => [
'upload' => [ 'upload' ],
'overwrite' => [ 'overwrite' ],
'revert' => [ 'revert' ],
],
];
1.32
<translate> MediaWiki version:</translate> |
$wgActionFilteredLogs = [
'block' => [
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
'unblock' => [ 'unblock' ],
],
'contentmodel' => [
'change' => [ 'change' ],
'new' => [ 'new' ],
],
'delete' => [
'delete' => [ 'delete' ],
'delete_redir' => [ 'delete_redir' ],
'restore' => [ 'restore' ],
'event' => [ 'event' ],
'revision' => [ 'revision' ],
],
'import' => [
'interwiki' => [ 'interwiki' ],
'upload' => [ 'upload' ],
],
'managetags' => [
'create' => [ 'create' ],
'delete' => [ 'delete' ],
'activate' => [ 'activate' ],
'deactivate' => [ 'deactivate' ],
],
'move' => [
'move' => [ 'move' ],
'move_redir' => [ 'move_redir' ],
],
'newusers' => [
'create' => [ 'create', 'newusers' ],
'create2' => [ 'create2' ],
'autocreate' => [ 'autocreate' ],
'byemail' => [ 'byemail' ],
],
'protect' => [
'protect' => [ 'protect' ],
'modify' => [ 'modify' ],
'unprotect' => [ 'unprotect' ],
'move_prot' => [ 'move_prot' ],
],
'rights' => [
'rights' => [ 'rights' ],
'autopromote' => [ 'autopromote' ],
],
'suppress' => [
'event' => [ 'event' ],
'revision' => [ 'revision' ],
'delete' => [ 'delete' ],
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
],
'upload' => [
'upload' => [ 'upload' ],
'overwrite' => [ 'overwrite' ],
],
];
1.28 – 1.31
<translate> MediaWiki versions:</translate> |
$wgActionFilteredLogs = [
'block' => [
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
'unblock' => [ 'unblock' ],
],
'contentmodel' => [
'change' => [ 'change' ],
'new' => [ 'new' ],
],
'delete' => [
'delete' => [ 'delete' ],
'delete_redir' => [ 'delete_redir' ],
'restore' => [ 'restore' ],
'event' => [ 'event' ],
'revision' => [ 'revision' ],
],
'import' => [
'interwiki' => [ 'interwiki' ],
'upload' => [ 'upload' ],
],
'managetags' => [
'create' => [ 'create' ],
'delete' => [ 'delete' ],
'activate' => [ 'activate' ],
'deactivate' => [ 'deactivate' ],
],
'move' => [
'move' => [ 'move' ],
'move_redir' => [ 'move_redir' ],
],
'newusers' => [
'create' => [ 'create', 'newusers' ],
'create2' => [ 'create2' ],
'autocreate' => [ 'autocreate' ],
'byemail' => [ 'byemail' ],
],
'patrol' => [
'patrol' => [ 'patrol' ],
'autopatrol' => [ 'autopatrol' ],
],
'protect' => [
'protect' => [ 'protect' ],
'modify' => [ 'modify' ],
'unprotect' => [ 'unprotect' ],
'move_prot' => [ 'move_prot' ],
],
'rights' => [
'rights' => [ 'rights' ],
'autopromote' => [ 'autopromote' ],
],
'suppress' => [
'event' => [ 'event' ],
'revision' => [ 'revision' ],
'delete' => [ 'delete' ],
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
],
'upload' => [
'upload' => [ 'upload' ],
'overwrite' => [ 'overwrite' ],
],
];
1.27
MediaWiki版本: |
$wgActionFilteredLogs = [
'block' => [
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
'unblock' => [ 'unblock' ],
],
'contentmodel' => [
'change' => [ 'change' ],
'new' => [ 'new' ],
],
'delete' => [
'delete' => [ 'delete' ],
'restore' => [ 'restore' ],
'event' => [ 'event' ],
'revision' => [ 'revision' ],
],
'import' => [
'interwiki' => [ 'interwiki' ],
'upload' => [ 'upload' ],
],
'managetags' => [
'create' => [ 'create' ],
'delete' => [ 'delete' ],
'activate' => [ 'activate' ],
'deactivate' => [ 'deactivate' ],
],
'move' => [
'move' => [ 'move' ],
'move_redir' => [ 'move_redir' ],
],
'newusers' => [
'create' => [ 'create', 'newusers' ],
'create2' => [ 'create2' ],
'autocreate' => [ 'autocreate' ],
'byemail' => [ 'byemail' ],
],
'patrol' => [
'patrol' => [ 'patrol' ],
'autopatrol' => [ 'autopatrol' ],
],
'protect' => [
'protect' => [ 'protect' ],
'modify' => [ 'modify' ],
'unprotect' => [ 'unprotect' ],
'move_prot' => [ 'move_prot' ],
],
'rights' => [
'rights' => [ 'rights' ],
'autopromote' => [ 'autopromote' ],
],
'suppress' => [
'event' => [ 'event' ],
'revision' => [ 'revision' ],
'delete' => [ 'delete' ],
'block' => [ 'block' ],
'reblock' => [ 'reblock' ],
],
'upload' => [
'upload' => [ 'upload' ],
'overwrite' => [ 'overwrite' ],
],
];