|
|
| ( | | ( |
| (action == 'edit' & equals_to_any(article_namespace, 0, 14)) | | | (action == 'edit' & equals_to_any(page_namespace, 0, 14)) | |
| (action == 'move' & equals_to_any(moved_to_namespace, 0, 14) | | (action == 'move' & equals_to_any(moved_to_namespace, 0, 14) |
| &! equals_to_any(moved_from_namespace, 0, 14)) | | &! equals_to_any(moved_from_namespace, 0, 14)) |
| ) & (lcase_lines := (action == 'edit') ? lcase(added_lines) : lcase(new_wikitext); | | ) & (lcase_lines := (action == 'edit') ? lcase(added_lines) : lcase(new_wikitext); |
| lcase_removed := (action == 'edit') ? lcase(removed_lines) : ''; | | lcase_removed := (action == 'edit') ? lcase(removed_lines) : ''; |
| line1 := '\[\[ *:[a-z]{2,3}(?<!:cs):'; | | line1 := '\[\[ *(:?w:(?!c[sz]:)|(:?w)?:(?!c[sz]:)[a-z]{2,3}:)'; |
| rcount(line1, lcase_lines) > rcount(line1, lcase_removed) | | rcount(line1, lcase_lines) > rcount(line1, lcase_removed) |
| ) & (line2 := '<([^ <>]+)\b[^<]+' + line1 + '[^<]*</\1>'; | | ) & (line2 := '<([^ <>]+)\b[^<]+' + line1 + '[^<]*</\1>'; |
| rcount(line2, lcase_lines) < rcount(line1, lcase_lines) | | rcount(line2, lcase_lines) < rcount(line1, lcase_lines) |
| ) &! lcase(summary) rlike '\b(rvv?\b|revert|vráceny do původního stavu\b|zrušena)' | | ) &! lcase(summary) rlike '\b(rvv?\b|revert|vráceny do původního stavu\b|zrušena)' |
| &! '{{infobox - jazyk' in lcase(new_wikitext) | | &! '{{infobox - jazyk' in lcase(new_wikitext) |