Edit filter configuration

Differences between versions

ItemVersion from 02:37, 1 January 2021 by Rich FarmbroughVersion from 23:52, 20 October 2023 by Suffusion of Yellow
Basic information
Notes:
This can be improved. RF 20150722
This can be improved. RF 20150722
Ignore significant deletions of material too.
Ignore significant deletions of material too.
Note 1: doesn't check namespace, relatively few !auto edits occur outside mainspace.  But maybe we should. RF 0725
Note 1: doesn't check namespace, relatively few !auto edits occur outside mainspace.  But maybe we should. RF 0725
Note 2: this version is deliberately broad, for the majority of infoboxes, we can be far more restrictive about the layout.  That will however increase the number of false negatives in non-infobox contexts.
Note 2: this version is deliberately broad, for the majority of infoboxes, we can be far more restrictive about the layout.  That will however increase the number of false negatives in non-infobox contexts.


Limit to mainspace. Start tagging - should be useful for finding and reverting subtle vandalism. -G 2019-03-02
Limit to mainspace. Start tagging - should be useful for finding and reverting subtle vandalism. -G 2019-03-02
Make more accurate using get_matches. -G 2019-03-03
Make more accurate using get_matches. -G 2019-03-03
Add death dates RF 20210101
Add death dates RF 20210101
Exclude edits that don't change any numbers, per [[Special:PermaLink/1181118945#Filter 712]]. --Suffusion of Yellow 23:51 20 Oct 2023
Filter conditions
Conditions:
(documentation)
!"confirmed" in user_groups &
!"confirmed" in user_groups &
page_namespace == 0 &
page_namespace == 0 &
removed_lines irlike "\{\{(bir|dea)th[ _]date" &
removed_lines irlike "\{\{(bir|dea)th[ _]date" &
edit_delta < 12 &
edit_delta < 12 &
edit_delta > -100 &
edit_delta > -100 &
((
((
  birth_date_regex := "(?i)\{\{birth[ _]date.*?\}\}";
  birth_date_regex := "(?i)\{\{birth[ _]date.*?\}\}";
  get_matches ( birth_date_regex, removed_lines ) != get_matches ( birth_date_regex, added_lines );
  get_matches ( birth_date_regex, removed_lines ) != get_matches ( birth_date_regex, added_lines );
)
)
|
|
(
(
  death_date_regex := "(?i)\{\{death[ _]date.*?\}\}";
  death_date_regex := "(?i)\{\{death[ _]date.*?\}\}";
  get_matches ( death_date_regex, removed_lines ) != get_matches ( death_date_regex, added_lines );
  get_matches ( death_date_regex, removed_lines ) != get_matches ( death_date_regex, added_lines );
))
)) &
str_replace_regexp(added_lines, "[^0-9]+", " ") != str_replace_regexp(removed_lines, "[^0-9]+", " ")