Manual:$wgActionFilteredLogs
Logging: $wgActionFilteredLogs | |
---|---|
List of log types that can be filtered by action types |
|
Introduced in version: | 1.27.0 (Gerrit change 253072; git #I6a61175) |
Removed in version: | Still in use |
Allowed values: | (array of arrays) |
Default value: | see below |
Other settings: Alphabetical | By function |
Details
This allows logs to be filtered by log actions in Special:Log.
See this link for an example to filter delete logs by revision deletion actions.
Each array key is a log type and it should be set to an array with the action groups which should be an array of log_action subtypes.
The message keys are in the format: MediaWiki:log-action-filter-$type-$action
.
The label of the filter selection field comes from the message MediaWiki:log-action-filter-$type
.
(For message documentation, you can use the doc-log-action-filter-type and doc-log-action-filter-action templates, respectively.)
Extensions with custom log types may add to this array.
Default value
MediaWiki version: | ≥ 1.36 |
$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' ],
],
];
MediaWiki versions: | 1.33 – 1.35 |
$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' ],
],
];
MediaWiki version: | 1.32 |
$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' ],
],
];
MediaWiki versions: | 1.28 – 1.31 |
$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' ],
],
];
MediaWiki version: | 1.27 |
$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' ],
],
];