|
|
| reRef := '(?i)<ref\b(?![^>]*pozn)';
| | rePreklad := '(?i)\{\{\s*Preklad\b'; |
| reRefSection := '(?i)=+\s*Referencie\s*=+\s+(?:(?!==).)*?(<references\b|\{\{\s*Referencie\b)';
| | rePrekladCorrectContext := '(?i)=+\s*Zdroje?\s*=+\s+(?:(?!==).)*?\{\{\s*Preklad\b'; |
| | | |
| (article_namespace == 0) & | | (article_namespace == 0) & |
| (action == "edit") & | | (action == "edit") & |
| ( (rcount(reRef, added_lines) > rcount(reRef, removed_lines)) & | | (new_wikitext rlike rePreklad) & |
| !(new_wikitext rlike reRefSection)
| | !(new_wikitext rlike rePrekladCorrectContext) & |
| |
| | (!(old_wikitext rlike rePreklad) | |
| (old_wikitext rlike reRefSection) &
| | (old_wikitext rlike rePrekladCorrectContext)) |
| !(new_wikitext rlike reRefSection) & | |
| (rcount(reRef, new_wikitext) > 0)
| |
| ) | |