Edit filter configuration

Differences between versions

ItemVersion from 11:59, 2 May 2009 by Admiral NortonVersion from 08:21, 13 May 2009 by Ruslik0
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\w?/>. - Ruslik
Filter conditions
Conditions:
(documentation)
!("autoconfirmed" in user_groups)
!("autoconfirmed" in user_groups)
& edit_delta >= -1000
& edit_delta >= -1000
& article_namespace == 0
& article_namespace == 0
& length(added_lines) != 0
& length(added_lines) != 0
& !("#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*/
& (rcount("(\{\{(r|R)eflist(\|\d)?\}\}|\{\{(r|R)efs\}\}|<references/>)",removed_lines)) > (rcount("(\{\{(r|R)eflist(\|\d)?\}\}|\{\{(r|R)efs\}\}|<references/>)",added_lines))
& (rcount("(\{\{(r|R)eflist(\|\d)?\}\}|\{\{(r|R)efs\}\}|<references\w?/>)",removed_lines)) > (rcount("(\{\{(r|R)eflist(\|\d)?\}\}|\{\{(r|R)efs\}\}|<references\w?/>)",added_lines))
/* Excludes instances where you start with duplicates in the article */
/* Excludes instances where you start with duplicates in the article */
& !(rcount("(\{\{(r|R)eflist(\|\d)?\}\}|\{\{(r|R)efs\}\}|<references/>)",(old_wikitext)) > 2)
& !(rcount("(\{\{(r|R)eflist(\|\d)?\}\}|\{\{(r|R)efs\}\}|<references\w?/>)",(old_wikitext)) > 2)