Manajemen penyaring penyalahgunaan

Perbedaan versi

butirVersi dari 18 Agustus 2021 11.58 oleh HidayatsrfVersi dari 19 Agustus 2021 03.51 oleh Hidayatsrf
Penyaringan kondisi
Kondisi:
!contains_any(user_groups, "reviewer", "sysop", "bot")
!contains_any(user_groups, "confirmed", "reviewer", "sysop", "bot") &
/* this edit_delta ignores large blankings that are treated by another filter */
page_namespace == 0 &
& edit_delta >= -3000
/* narrow down edits to just those dealing with references */
& page_namespace == 0
removed_lines contains "<ref" &
/* No added lines usually mean a blanking which is dealt with by other filter */
/* this edit_delta ignores large blankings treated by another filter */
& length(added_lines) != 0
edit_delta >= -3000 &
& !("#redirect" in lcase(added_lines))
/* No added lines usually means a blanking which is dealt with by other filters */
& !("#alih" in lcase(added_lines))
length(added_lines) != 0 &
/*Counts of more reference tags are removed than added */
!("#redirect" in lcase(added_lines)) |
& (rcount("(<ref>|<ref\s+(name|group)|</ref>)",removed_lines) > rcount("(<ref>|<ref\s+(name|group)|</ref>)",added_lines))
!("#alih" in lcase(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 */
& (
& !(rcount("<ref>",removed_lines) = rcount("<ref\s+(name|group)",added_lines) | rcount("</ref>",removed_lines) <= rcount("<ref\s+(name|group)",added_lines))
    (
/*Excludes removal of references to Wikipedia itself */
        /* More opening ref tags are removed than added */
& !(count("http://id.wikipedia.org",removed_lines) > count("http://id.wikipedia.org",added_lines))
        rcount("(<ref\b)", removed_lines) > rcount("(<ref\b)", added_lines)
& !(count("http://en.wikipedia.org",removed_lines) > count("http://en.wikipedia.org",added_lines))
    ) | /* OR */ (
        /* More closing ref tags are removed than added */
        rcount("(<ref\b[^>]*\>)", removed_lines) > rcount("(<ref\b[^>]*\>)", added_lines)
    )
) &
/* Exclude removal of references to Wikipedia */
count("//en.wikipedia.org", removed_lines) <= count("//en.wikipedia.org", added_lines) |
count("//id.wikipedia.org", removed_lines) <= count("//en.wikipedia.org", added_lines) &
/* If  removed empty ref, probs OK */
count("<ref></ref>", removed_lines) <= count("<ref></ref>", added_lines) &
/* ignore conversion between <ref> and </ref> */
rcount("</?ref>", removed_lines) > rcount("</?ref>", added_lines) &
/* if they removed a probable comment with ref tag then its probs OK */
rcount("<!--.*</?ref>.*-->", removed_lines) <= rcount("<!--.*</?ref>.*-->", added_lines)