Разлики между версиите

ЕлементВерсия от 21:30, 29 декември 2014 на Vodnokon4eВерсия от 02:48, 25 февруари 2024 на Ted Masters
Условия на филтъра
Условия:
!("autoconfirmed" in user_groups)
!"confirmed" in user_groups
/* this edit_delta ignores large blankings that are treated by another filter */
& page_namespace == 0
/* narrow down edits to just those dealing with refs */
& removed_lines irlike "</?ref\b"
/* this edit_delta ignores large blankings treated by another filter */
& edit_delta >= -3000
& edit_delta >= -3000
& article_namespace == 0
/* no added lines usually means a blanking which is dealt with by other filters */
/* No added lines usually mean a blanking which is dealt with by other filter */
& length(added_lines) > 0
& length(added_lines) != 0
& !added_lines irlike "^#(?:виж|пренасочване|redirect)\s*\[\["
& !("#redirect" in lcase(added_lines))
& (
/*Counts of more reference tags are removed than added */
    /* matches normal or self-closing refs, excluding self-referencing ones */
& (rcount("(<ref>|<ref\s+(name|group)|</ref>)",removed_lines) > rcount("(<ref>|<ref\s+(name|group)|</ref>)",added_lines))
    rx_match := "(?i)<ref\b[^>]*+(?<!/)>(?:[^<.]++|\.(?!wikipedia\.org\b)|<(?!/?ref\b))*+</ref\b|<ref\b[^>]*/>";
/*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 */
    /* removes comments and empty refs */
& !(rcount("<ref>",removed_lines) = rcount("<ref\s+(name|group)",added_lines) | rcount("</ref>",removed_lines) <= rcount("<ref\s+(name|group)",added_lines))
    rx_clean := "(?i)<!--(?:[^-]++|-(?!->))*+-->|<ref\s*>\s*</ref\s*>|<ref\s*/>(?:\s*</ref\s*>)?";
/*Excludes removal of references to Wikipedia itself */
    /* compare match counts of removed and added */
& !(count("http://en.wikipedia.org",removed_lines) > count("http://en.wikipedia.org",added_lines))
    rcount(rx_match, str_replace_regexp(removed_lines, rx_clean, "")) > rcount(rx_match, str_replace_regexp(added_lines, rx_clean, ""))
)
Действия при съвпадение
Действия при съвпадение
Етикет: етикет: премахнати източници/бележки