|
|
| page_namespace % 2 == 1 & | | page_namespace % 2 == 1 & |
| !contains_any(user_groups, "extendedconfirmed", "sysop", "bot") & | | !contains_any(user_groups, "extendedconfirmed", "sysop", "bot") & |
| edit_delta < 500 & | | edit_delta < 500 & |
| added_lines irlike ( | | added_lines irlike ( |
| /* | | /* |
| * This is terribly brittle, but avoiding FPs is what's most important here. | | * This is terribly brittle, but avoiding FPs is what's most important here. |
| * We don't want to yell at people just for putting the request on the wrong line. | | * We don't want to yell at people just for putting the request on the wrong line. |
| */ | | */ |
| "^\n*==.*?protected edit request on \d+ \w+ \d+\s*==\n+" + | | "^\n*==.*?protected edit request on \d+ \w+ \d+\s*==\n+" + |
| "\{\{edit (?:\w+-)?protected.*?\}\}\n+" + | | "\{\{edit (?:\w+-)?protected.*?\}\}\n+" + |
| "\{\{subst:trim\|1=\n<!--.*?-->\n+" + | | "\{\{subst:trim\|1=\n<!--.*?-->\n+" + |
| "(Please ...\n+)?" +
| |
| "<!--.*?-->\n+" + | | "<!--.*?-->\n+" + |
| "\}\} ~~~~\n*$" | | "\}\} ~~~~\n*$" |
| ) & | | ) & |
| !user_name in (old_wikitext + page_recent_contributors) /* In case they're adding the template to an existing request */ | | !user_name in (old_wikitext + page_recent_contributors) /* In case they're adding the template to an existing request */ |