|
|
|
!("confirmed" in user_groups) & |
|
!("autoconfirmed" in user_groups) & |
|
page_namespace == 0 & |
|
page_namespace == 0 & |
|
/* narrow down edits to just those dealing with references */ |
|
/* narrow down edits to just those dealing with references */ |
|
removed_lines contains "<ref" & |
|
removed_lines contains "<ref" & |
|
/* this edit_delta ignores large blankings treated by another filter */ |
|
/* this edit_delta ignores large blankings treated by another filter */ |
|
edit_delta >= -3000 & |
|
edit_delta >= -3000 & |
|
/* No added lines usually means a blanking which is dealt with by other filters */ |
|
/* No added lines usually means a blanking which is dealt with by other filters */ |
|
length(added_lines) != 0 & |
|
length(added_lines) != 0 & |
|
!("#redirect" in lcase(added_lines)) & ( |
|
!("#redirect" in lcase(added_lines)) & ( |
|
( |
|
( |
|
/* More opening ref tags are removed than added */ |
|
/* More opening ref tags are removed than added */ |
|
rcount("(<ref\b)", removed_lines) > rcount("(<ref\b)", added_lines) |
|
rcount("(<ref\b)", removed_lines) > rcount("(<ref\b)", added_lines) |
|
) | /* OR */ ( |
|
) | /* OR */ ( |
|
/* More closing ref tags are removed than added */ |
|
/* More closing ref tags are removed than added */ |
|
rcount("(<ref\b[^>]*\>)", removed_lines) > rcount("(<ref\b[^>]*\>)", added_lines) |
|
rcount("(<ref\b[^>]*\>)", removed_lines) > rcount("(<ref\b[^>]*\>)", added_lines) |
|
) |
|
) |
|
) & |
|
) & |
|
/* Exclude removal of references to Wikipedia */ |
|
/* Exclude removal of references to Wikipedia */ |
|
count("//az.wikipedia.org", removed_lines) <= count("//az.wikipedia.org", added_lines) & |
|
count("//az.wikipedia.org", removed_lines) <= count("//az.wikipedia.org", added_lines) & |
|
/* If removed empty ref, probs OK */ |
|
/* If removed empty ref, probs OK */ |
|
count("<ref></ref>", removed_lines) <= count("<ref></ref>", added_lines) & |
|
count("<ref></ref>", removed_lines) <= count("<ref></ref>", added_lines) & |
|
/* ignore conversion between <ref> and </ref> */ |
|
/* ignore conversion between <ref> and </ref> */ |
|
rcount("</?ref>", removed_lines) > rcount("</?ref>", added_lines) & |
|
rcount("</?ref>", removed_lines) > rcount("</?ref>", added_lines) & |
|
/* if they removed a probable comment with ref tag then its probs OK */ |
|
/* if they removed a probable comment with ref tag then its probs OK */ |
|
rcount("<!--.*</?ref>.*-->", removed_lines) <= rcount("<!--.*</?ref>.*-->", added_lines) |
|
rcount("<!--.*</?ref>.*-->", removed_lines) <= rcount("<!--.*</?ref>.*-->", added_lines) |