Edit filter configuration

Differences between versions

ItemVersion from 20:57, 5 January 2010 by TriplestopVersion from 21:01, 5 January 2010 by Triplestop
Basic information
Notes:
This filter (split from the more general filter 61, which now recognizes removal of <ref> and </ref>) recognizes all edits by new users that are not complete blankings or redirections which remove {{reflist}} or <references/> tags from an article.
This filter (split from the more general filter 61, which now recognizes removal of <ref> and </ref>) recognizes all edits by new users that are not complete blankings or redirections which remove {{reflist}} or <references/> tags from an article.


If it's triggered without also setting off filter 61, 30 or 3, it will first warn the user it is not productive, then proceed to tag the edit for further review on their next attempt to save.
If it's triggered without also setting off filter 61, 30 or 3, it will first warn the user it is not productive, then proceed to tag the edit for further review on their next attempt to save.


Articles need at least one references section, but the number and format of that section is not overly important removing false positives associated with changing references style. - DF
Articles need at least one references section, but the number and format of that section is not overly important removing false positives associated with changing references style. - DF


Latest trigger was caused by a duplicate reflist being removed. Exclusion now included. --Mgm
Latest trigger was caused by a duplicate reflist being removed. Exclusion now included. --Mgm
I added optional whitespace in <references\s?/>. - Ruslik
I added optional whitespace in <references\s?/>. - Ruslik


Greater than 2 to greater than 1 when checking if you start with duplicates (obviously) -Prodego
Greater than 2 to greater than 1 when checking if you start with duplicates (obviously) -Prodego
I added a check if any references are still present in the article. - Ruslik
I added a check if any references are still present in the article. - Ruslik


Update filter to include new format of references. - Ruslik
Update filter to include new format of references. - Ruslik


Simplified the code. - Ruslik
Simplified the code. - Ruslik


Simpifly/optimize -TS
Reorder/optimize -TS
Filter conditions
Conditions:
(documentation)
!("autoconfirmed" in user_groups)
!("autoconfirmed" in user_groups)
& article_namespace == 0
& article_namespace == 0
& length(added_lines) != 0
& edit_delta >= -1000
& edit_delta >= -1000
& !("#redirect" in lcase(added_lines))
& !("#redirect" in lcase(added_lines))
/* Checks if there more references grouping tags are being removed than added*/
/* Checks if there more references grouping tags are being removed than added*/
& (line1:="(\{\{(r|R)ef(s\}\}|list)|</?references\s?/?>)";
& (line1:="(\{\{(r|R)eflist|\{\{(r|R)efs\}\}|<references\s?/>|</references\s?>)";
rcount(line1, removed_lines)) > (rcount(line1, added_lines))
rcount(line1, removed_lines)) > (rcount(line1, added_lines))
/* Excludes instances where you start with duplicates in the article */
/* Excludes instances where you start with duplicates in the article */
& !(rcount(line1,(old_wikitext)) > 1) & rcount("<ref(\s|>)",new_wikitext)!=0
& !(rcount(line1,(old_wikitext)) > 1) & rcount("<ref(\s|>)",new_wikitext)!=0