Edit filter configuration

Differences between versions

ItemVersion from 02:17, 25 January 2024 by Suffusion of YellowVersion from 03:48, 22 April 2024 by Suffusion of Yellow
Basic information
Notes:
Requested multiple times, e.g. at  [[Wikipedia:Edit filter/Requested/Archive 19#Number vandalism]] and [[Special:Permalink/1152375082#Numerical changes without edit summary should be flagged "r" in watchlist]].
Requested multiple times, e.g. at  [[Wikipedia:Edit filter/Requested/Archive 19#Number vandalism]] and [[Special:Permalink/1152375082#Numerical changes without edit summary should be flagged "r" in watchlist]].


Based on testing against filter 1201, this will trip about 500-1000 times per day. Is that too much? --Suffusion of Yellow 21:32 29 Apr 2023
Based on testing against filter 1201, this will trip about 500-1000 times per day. Is that too much? --Suffusion of Yellow 21:32 29 Apr 2023


Allow commas, decimal point. --Suffusion of Yellow 18:58 30 Apr 2023
Allow commas, decimal point. --Suffusion of Yellow 18:58 30 Apr 2023


Exclude sports-related pages. Arbitrary, but the filter is too spammy otherwise. This regex is a little crude and could be improved on, but it catches "footballer", "baseball player", "sportspeople", "motorsports", etc. --Suffusion of Yellow 18:43 1 May 2023
Exclude sports-related pages. Arbitrary, but the filter is too spammy otherwise. This regex is a little crude and could be improved on, but it catches "footballer", "baseball player", "sportspeople", "motorsports", etc. --Suffusion of Yellow 18:43 1 May 2023


Add a few more sports-related words. --Suffusion of Yellow 18:50 1 May 2023
Add a few more sports-related words. --Suffusion of Yellow 18:50 1 May 2023


Ignore rowspan and colspan adjustments, per [[Special:PermaLink/1198785542#Adjusting filter 1,248]]. --Suffusion of Yellow 02:16 25 Jan 2024
Ignore rowspan and colspan adjustments, per [[Special:PermaLink/1198785542#Adjusting filter 1,248]]. --Suffusion of Yellow 02:16 25 Jan 2024
Don't count mobile app hashtags as a non-empty summary, see [[:phab:T360164]] and [[Special:PermaLink/1220145702#Is this worth changing the 'Numeric change without summary' filter?]]. Assuming nothing is going to appear _after_ the hashtags. --Suffusion of Yellow 03:46 22 Apr 2024
Filter conditions
Conditions:
(documentation)
!("confirmed" in user_groups) &
!("confirmed" in user_groups) &
page_namespace == 0 &
page_namespace == 0 &
summary rlike "^(?:/\*.*?\*/)?\s*$" &
summary rlike "^(?:/\*.*?\*/)?\s*(?:#.*)?$" &
(
(
     num := "\d+(,\d+)*(\.\d+)?";
     num := "\d+(,\d+)*(\.\d+)?";
     ignore := "(?:colspan|rowspan)\s*=\s*\"?\d+";
     ignore := "(?:colspan|rowspan)\s*=\s*\"?\d+";


     str_replace_regexp(added_lines, num, " ") == str_replace_regexp(removed_lines, num, " ") &
     str_replace_regexp(added_lines, num, " ") == str_replace_regexp(removed_lines, num, " ") &
     str_replace_regexp(added_lines, ignore, " ") != str_replace_regexp(removed_lines, ignore, " ") &
     str_replace_regexp(added_lines, ignore, " ") != str_replace_regexp(removed_lines, ignore, " ") &
     rmwhitespace(added_lines) != rmwhitespace(removed_lines)
     rmwhitespace(added_lines) != rmwhitespace(removed_lines)
) &
) &
!(old_wikitext irlike "category:.*(?:sport|ball|wrestling|hockey)")
!(old_wikitext irlike "category:.*(?:sport|ball|wrestling|hockey)")