|
|
| page_namespace === 4 | | page_namespace === 4 |
| /*& !('sysop' in user_groups)*/ | | /*& !('sysop' in user_groups)*/ |
| & !(user_name in "Zhuyifei1999|Steinsplitter|SteinsplitterBot|Firefly|Legoktm") | | & !(user_name in "Legoktm|Rhododendrites|SteinsplitterBot|AntiCompositeNumber|ZI_Jony") |
| & ( | | & ( |
| (page_title rlike '^Picture of the Year/20\d\d/R\d/v/.*') | | (page_title rlike '^Picture of the Year/20\d\d/R\d/v/.*') |
| ) | | ) |
| & (voteline:="\n# [[User:" + user_name + "|" + user_name + "]]"; | | & (voteline:="\n# [[User:" + user_name + "|" + user_name + "]]"; |
| votelineSubst:="\n# [[User:{{subst:REVISIONUSER}}|]]"; | | votelineSubst:="\n# [[User:{{subst:REVISIONUSER}}|]]"; |
| votelineSubstTwo:="\n# [[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]"; | | votelineSubstTwo:="\n# [[User:{{subst:REVISIONUSER}}|{{subst:REVISIONUSER}}]]"; |
| supposed_old_text_add:=str_replace(str_replace(str_replace(new_wikitext, voteline, ""),votelineSubst,""),votelineSubstTwo,""); | | supposed_old_text_add:=str_replace(str_replace(str_replace(new_wikitext, voteline, ""),votelineSubst,""),votelineSubstTwo,""); |
| supposed_new_text_remove:=str_replace(old_wikitext, voteline, ""); | | supposed_new_text_remove:=str_replace(old_wikitext, voteline, ""); |
| (supposed_old_text_add !== old_wikitext)& | | (supposed_old_text_add !== old_wikitext)& |
| (supposed_new_text_remove !== new_wikitext) | | (supposed_new_text_remove !== new_wikitext) |
| ) | | ) |