Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
Contribute
Help
Learn to edit
Community portal
Recent changes
Upload file
Languages
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Viewing filter 172: Section blanking
Help
Home
Recent filter changes
Examine past edits
Edit filter log
English
Tools
Tools
move to sidebar
hide
Actions
General
Upload file
Special pages
Printable version
Get shortened URL
Download QR code
In other projects
Appearance
move to sidebar
hide
Editing filter 172 (see also a
graph
of recent actions)
Filter parameters
Filter ID:
172
Description:
(publicly viewable)
Filter hits:
1,257,980 hits
Statistics:
Of the last 196,833 actions, this filter has matched 90 (0.05%). On average, its run time is 0.15 ms, and it consumes 1.3 conditions of the condition limit.
Conditions:
(
documentation
)
!"confirmed" in user_groups & length(added_lines) < 1 & page_namespace == 0 & ( ( rmwhitespace(removed_lines) rlike "==\w+==" & ( rmwhitespace(old_wikitext) contains rmwhitespace(removed_lines + "==") & ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + "==") ) ) | ( rmwhitespace(old_wikitext) contains rmwhitespace("==" + removed_lines + "==") & ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + "==") ) )
!"confirmed" in user_groups & length(added_lines) < 1 & page_namespace == 0 & ( ( rmwhitespace(removed_lines) rlike "==\w+==" & ( rmwhitespace(old_wikitext) contains rmwhitespace(removed_lines + "==") & ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + "==") ) ) | ( rmwhitespace(old_wikitext) contains rmwhitespace("==" + removed_lines + "==") & ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + "==") ) )
Notes:
This seems to work to see section blanking, testing as log only to see if it gives false positives and for speed. OK, added basic check if the removed_text does contain "==", this line could maybe be made better by using a regex on it to check if it is "== sectiontitle ==" ..?? Reenabled, it still may give some false positives. --Beetstra Speedup, specificity --Beetstra bit upgrade? --Beetstra Small case tag, for consistency with other tags. -x null edit, small case change didn't get through - Cen trying to deactivate and reactivate - Cen tagged edits are not reassigned after rename, see bugzilla 18908 - Cen (added_lines == "") does not work, (length(added_lines) < 1) does .. curiously. Updating filter --Beetstra False positives on removing empty sections can we test for that? Crudely even old_wikitext contains [^=](==+) *\n\1[^=] (i.e. it had at least one empty section) might do the job. Rich Farmbrough. Encountered another form of blanking, attempted to add to filter --Beetstra Format. -DF
Flags:
Hide details of this filter from public view
Enable this filter
I understand that details of this filter will be hidden from users who cannot see [https://www.mediawiki.org/wiki/Extension:AbuseFilter/Rules_format#Protected_variables protected variables]
Mark as deleted
Filter last modified:
10:24, 12 November 2019
by
Zzuuzz
(
talk
|
contribs
)
History:
View this filter's history
Tools:
Export this filter to another wiki
{"data":{"rules":"!\"confirmed\" in user_groups \u0026\r\nlength(added_lines) \u003C 1 \u0026\r\npage_namespace == 0 \u0026\r\n(\r\n (\r\n rmwhitespace(removed_lines) rlike \"==\\w+==\" \u0026\r\n (\r\n rmwhitespace(old_wikitext) contains rmwhitespace(removed_lines + \"==\") \u0026\r\n ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + \"==\") \r\n )\r\n ) | \r\n (\r\n rmwhitespace(old_wikitext) contains rmwhitespace(\"==\" + removed_lines + \"==\") \u0026\r\n ! rmwhitespace(new_wikitext) contains rmwhitespace(removed_lines + \"==\")\r\n )\r\n)","name":"Section blanking","comments":"This seems to work to see section blanking, testing as log only to see if it gives false positives and for speed.\r\n\r\nOK, added basic check if the removed_text does contain \"==\", this line could maybe be made better by using a regex on it to check if it is \"== sectiontitle ==\" ..??\r\n\r\nReenabled, it still may give some false positives. --Beetstra\r\n\r\nSpeedup, specificity --Beetstra\r\nbit upgrade? --Beetstra\r\n\r\nSmall case tag, for consistency with other tags. -x\r\n\r\nnull edit, small case change didn't get through - Cen\r\n\r\ntrying to deactivate and reactivate - Cen\r\n\r\ntagged edits are not reassigned after rename, see bugzilla 18908 - Cen\r\n\r\n(added_lines == \"\") does not work, (length(added_lines) \u003C 1) does .. curiously.\r\n\r\nUpdating filter --Beetstra\r\nFalse positives on removing empty sections can we test for that? Crudely even\r\nold_wikitext contains [^=](==+) *\\n\\1[^=]\r\n(i.e. it had at least one empty section) might do the job.\r\nRich Farmbrough.\r\n\r\nEncountered another form of blanking, attempted to add to filter --Beetstra\r\n\r\nFormat. -DF","group":"default","actions":{"tag":["Section blanking"]},"enabled":true,"deleted":false,"privacylevel":0,"global":false},"actions":{"tag":["Section blanking"]}}
Actions to take when matched
Trigger actions only if the user trips a rate limit
Number of actions to allow:
Period of time (in seconds):
Group throttle by:
user
See
the documentation on mediawiki.org
.
Trigger these actions after giving the user a warning
System message to use for warning:
abusefilter-warning
Other message
Page name of other message:
(without "MediaWiki:" prefix)
Show/Hide preview of selected message
Prevent the user from performing the action in question
System message to use for disallowing:
abusefilter-disallowed
Other message
Page name of other message:
(without "MediaWiki:" prefix)
Show/Hide preview of selected message
Revoke the user's autoconfirmed status
Tag the edit in contributions lists and page histories
Tags to apply:
(see
Wikipedia:Tags
for use and formatting)
(please don't rename a tag here, see link above)
(one per line, no commas, publicly visible)
Section blanking
Require the user to complete a CAPTCHA in order to proceed with the action. Users with permission to skip a CAPTCHA are exempt.