Military Wiki

Differences between versions

ItemVersion from 23:29, 1 December 2020 by PcjVersion from 04:46, 15 April 2021 by Reguyla
Basic information
Notes:
 
+
Add a derogatory term
Filter conditions
Conditions:
 
!"autoconfirmed" in user_groups &
 
!"autoconfirmed" in user_groups &
 
page_namespace == 0 & (
 
page_namespace == 0 & (
   bad_word := "(?i)\bANUS\b|\bASS(H|\b)(?!'N)|\bBAS(D|T)ARD|\bBITCH|\bBOOBS?\b|BLOW\s+JOBS?|\bBUTTHOLE\b|\bCOCK\b|\bCRAP\b|\bCUNTS?\b|\bDICK(S|HEAD)\b|DILDOS?\b|\bDUMB\b|DOUCHE|\bFAG(G|\b)|FAT\s+ASS|FUC?K(?:ED|ER|ER|IN|ING)?S?\b|\bGAY(?![- ]MARRIAGE)(?:ER|EST|ASS)?\b|\bMAST[EU]RBAT|\bNIGG|\bPEDO(?:PH|F)ILE|P\s?ENIS\b|\bPUSSY\b|\bRAP(?:E|ING)\b|\bRETARD\b|\bSLUT(?:S|TY)?\b|\bSHIT\b|\bSUCK(?:|S|ING|ED)\b|\bTITS\b|VAGINA|\bWHORE|YOLO\s+SWAG";
+
   bad_word := "(?i)\bANUS\b|\bASS(H|\b)(?!'N)|\bBAS(D|T)ARD|\bBITCH|\bBOOBS?\b|BLOW\s+JOBS?|\bBUTTHOLE\b|\bCOCK\b|\bCRAP\b|\bCUNTS?\b|\bDICK(S|HEAD)\b|DILDOS?\b|\bDUMB\b|DOUCHE|\bFAG(G|\b)|FAT\s+ASS|FUC?K(?:ED|ER|ER|IN|ING)?S?\b|\bGAY(?![- ]MARRIAGE)(?:ER|EST|ASS)?\b|\bMAST[EU]RBAT|\bNIGG|\bPEDO(?:PH|F)ILE|P\s?ENIS\b|\bPUSSY\b|\bRAP(?:E|ING)\b|\bRETARD\b|\bSLUT(?:S|TY)?\b|\bSHIT\b|\bSUCK(?:|S|ING|ED| MY DICK)\b|\bTITS\b|VAGINA|\bWHORE|YOLO\s+SWAG";
 
   bad_count := rcount(bad_word, added_lines);
 
   bad_count := rcount(bad_word, added_lines);
 
   bad_count > 1 & (
 
   bad_count > 1 & (
 
     real_bad_count := bad_count - rcount(bad_word, added_links);
 
     real_bad_count := bad_count - rcount(bad_word, added_links);
 
     real_bad_count > 1 &
 
     real_bad_count > 1 &
 
     real_bad_count * 200 > edit_delta &
 
     real_bad_count * 200 > edit_delta &
 
     real_bad_count * 1500 > length(rmwhitespace(added_lines))
 
     real_bad_count * 1500 > length(rmwhitespace(added_lines))
 
   ) &
 
   ) &
  
 
   !(removed_lines rlike "\w\*\*?\w") &
 
   !(removed_lines rlike "\w\*\*?\w") &
 
   !( ( page_title + old_wikitext ) irlike bad_word)
 
   !( ( page_title + old_wikitext ) irlike bad_word)
 
)
 
)