|
|
| !("autoconfirmed" in user_groups) | | (!("autoconfirmed" in user_groups) |
| & !("autopatrol" in user_groups)
| | | !("autopatrol" in user_groups)) |
| /* this edit_delta ignores large blankings that are treated by another filter */ | | /* this edit_delta ignores large blankings that are treated by another filter */ |
| & edit_delta >= -1000 | | & edit_delta >= -1000 |
| & article_namespace == 0 | | & article_namespace == 0 |
| /* No added lines usually mean a blanking which is dealt with by other filter */ | | /* No added lines usually mean a blanking which is dealt with by other filter */ |
| & length(added_lines) != 0 | | & length(added_lines) != 0 |
| & !("#redirect" in lcase(added_lines)) | | & !("#redirect" in lcase(added_lines)) |
| /*Counts of more reference tags are removed than added */ | | /*Counts of more reference tags are removed than added */ |
| & (rcount("(<ref>|<ref\sname|</ref>)",removed_lines) > rcount("(<ref>|<ref\sname|</ref>)",added_lines)) | | & (rcount("(<ref>|<ref\sname|</ref>)",removed_lines) > rcount("(<ref>|<ref\sname|</ref>)",added_lines)) |
| /*Excludes changing to the named reference format and removing closing tags attached to formerly named refs. Unequality is to account for closing the first named tag */ | | /*Excludes changing to the named reference format and removing closing tags attached to formerly named refs. Unequality is to account for closing the first named tag */ |
| & !(rcount("<ref>",removed_lines) = rcount("<ref\sname",added_lines) | rcount("</ref>",removed_lines) <= rcount("<ref\sname",added_lines)) | | & !(rcount("<ref>",removed_lines) = rcount("<ref\sname",added_lines) | rcount("</ref>",removed_lines) <= rcount("<ref\sname",added_lines)) |
| /*Excludes removal of references to Wikipedia itself */ | | /*Excludes removal of references to Wikipedia itself */ |
| & !(count("http://ar.wikipedia.org",removed_lines) > count("http://ar.wikipedia.org",added_lines)) | | & !(count("http://ar.wikipedia.org",removed_lines) > count("http://ar.wikipedia.org",added_lines)) |