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