Edit filter configuration

Differences between versions

ItemVersion from 19:38, 11 May 2022 by ZzuuzzVersion from 20:11, 11 May 2022 by Zzuuzz
Basic information
Notes:
See [[Special:PermaLink/893448412#Prevent publishing of empty edit requests]] and the other threads linked from there. Not entirely satisfied with this (it will need updating whenever [[Template:Submit an edit request/preload]] is changed), but at least it seems to have zero FPs so far. --Suffusion of Yellow 20:47 23 Apr 2019
See [[Special:PermaLink/893448412#Prevent publishing of empty edit requests]] and the other threads linked from there. Not entirely satisfied with this (it will need updating whenever [[Template:Submit an edit request/preload]] is changed), but at least it seems to have zero FPs so far. --Suffusion of Yellow 20:47 23 Apr 2019
:Created an edit notice for preload page. --Od Mishehu 16:23 29 Apr 2019
:Created an edit notice for preload page. --Od Mishehu 16:23 29 Apr 2019


Setting to warn. --Suffusion of Yellow 19:02 20 May 2019
Setting to warn. --Suffusion of Yellow 19:02 20 May 2019


Also check non-extendedconfirmed edits, see [[Special:PermaLink/899105797#Incomplete filter?]]. --Suffusion of Yellow 22:17 28 May 2019
Also check non-extendedconfirmed edits, see [[Special:PermaLink/899105797#Incomplete filter?]]. --Suffusion of Yellow 22:17 28 May 2019


Use user_groups instead of user_rights; with BotPasswords EC sometimes isn't part of user_rights. --Suffusion of Yellow 22:18 27 Nov 2019
Use user_groups instead of user_rights; with BotPasswords EC sometimes isn't part of user_rights. --Suffusion of Yellow 22:18 27 Nov 2019
11 May 2022: default template wording updated. Still also checking for empty requests. --zz
Filter conditions
Conditions:
(documentation)
page_namespace % 2 == 1 &
page_namespace % 2 == 1 &
!contains_any(user_groups, "extendedconfirmed", "sysop", "bot") &
!contains_any(user_groups, "extendedconfirmed", "sysop", "bot") &
edit_delta < 500 &
edit_delta < 500 &
added_lines irlike (
added_lines irlike (
     /*
     /*
     * This is terribly brittle, but avoiding FPs is what's most important here.
     * This is terribly brittle, but avoiding FPs is what's most important here.
     * We don't want to yell at people just for putting the request on the wrong line.
     * We don't want to yell at people just for putting the request on the wrong line.
     */
     */
     "^\n*==.*?protected edit request on \d+ \w+ \d+\s*==\n+" +
     "^\n*==.*?protected edit request on \d+ \w+ \d+\s*==\n+" +
     "\{\{edit (?:\w+-)?protected.*?\}\}\n+" +
     "\{\{edit (?:\w+-)?protected.*?\}\}\n+" +
     "\{\{subst:trim\|1=\n<!--.*?-->\n+" +
     "\{\{subst:trim\|1=\n<!--.*?-->\n+" +
    "(Please ...\n+)?" +
     "<!--.*?-->\n+" +
     "<!--.*?-->\n+" +
     "\}\} ~~~~\n*$"
     "\}\} ~~~~\n*$"
) &
) &
!user_name in (old_wikitext + page_recent_contributors) /* In case they're adding the template to an existing request */
!user_name in (old_wikitext + page_recent_contributors) /* In case they're adding the template to an existing request */
Actions to take when matched
Actions to take when matched
 
Warn: abusefilter-warning-empty-edit-request