|
|
| plantillassysop:="\{\{(sub?st:)?(template:|plantilla:)?((aviso|usuario) bloque[ad]?o|bloqueo|prueba5|aviso (prueba|vandalismo|spam|noesunforo)5|(usuario )?t[íi]t(ere|iritero)|usuario expulsado)(\||\}\})"; | | plantillassysop:="\{\{(sub?st:)?(template:|plantilla:)?((aviso|usuario) bloque[ad]?o|bloqueo|prueba5|aviso (prueba|vandalismo|spam|noesunforo)5|(usuario )?t[íi]t(ere|iritero)|usuario expulsado)(\||\}\})"; |
| desbloquear:="\{\{(sub?st:)?(template:|plantilla:)?(desbloque(ar|o)|unblock)"; | | desbloquear:="\{\{(sub?st:)?(template:|plantilla:)?(desbloque(ar|o)|unblock)"; |
| desbloqueorevisado:="\{\{(sub?st:)?(template:|plantilla:)?(desbloqueo (revisado|aceptado))"; | | desbloqueorevisado:="\{\{(sub?st:)?(template:|plantilla:)?(desbloqueo (revisado|aceptado))"; |
| plantillastaff:="\{\{(sub?st:)?(template:|plantilla:)?(WMF-legal banned user)(\||\}\})"; | | plantillastaff:="\{\{(sub?st:)?(template:|plantilla:)?(WMF-legal banned user)(\||\}\})"; |
| plantillacheckuser:="\{\{(sub?st:)?(template:|plantilla:)?(bloqueo checkuser)(\||\}\})"; | | plantillacheckuser:="\{\{(sub?st:)?(template:|plantilla:)?(bloqueo checkuser)(\||\}\})"; |
| mencionada:="(\{\{(ep[crs]?|enlace plantilla|enlace a plantilla|tl[xpurfc]?|tiw|template link|ligação para predefinição|lp)\||<nowiki>|<pre>)(" + plantillassysop + "|" + plantillastaff + "|" + plantillacheckuser + ")"; | | mencionada:="(\{\{(ep[crs]?|enlace plantilla|enlace a plantilla|tl[xpurfc]?|tiw|template link|ligação para predefinição|lp)\||<nowiki>|<pre>)(" + plantillassysop + "|" + plantillastaff + "|" + plantillacheckuser + ")"; |
| equals_to_any(page_namespace, 2, 3) & ( | | equals_to_any(page_namespace, 2, 3) & ( |
| ! "bot" in user_groups | | ! "bot" in user_groups |
| & (! "sysop" in user_groups | | & (! "sysop" in user_groups |
| & ((rcount(lcase(plantillassysop), lcase(added_lines)) > rcount(lcase(plantillassysop), lcase(removed_lines))) | | & ((rcount(lcase(plantillassysop), lcase(added_lines)) > rcount(lcase(plantillassysop), lcase(removed_lines))) |
| &! (added_lines irlike mencionada))) | | &! (added_lines irlike mencionada))) |
| | (! user_groups rlike "sysop|abusefilter" | | | (! user_groups rlike "sysop|abusefilter" |
| & ((rcount(lcase(desbloqueorevisado), lcase(added_lines)) > rcount(lcase(desbloqueorevisado), lcase(removed_lines))) | | & ((rcount(lcase(desbloqueorevisado), lcase(added_lines)) > rcount(lcase(desbloqueorevisado), lcase(removed_lines))) |
| & (rcount(lcase(desbloquear), lcase(added_lines)) < rcount(lcase(desbloquear), lcase(removed_lines))))) | | & (rcount(lcase(desbloquear), lcase(added_lines)) < rcount(lcase(desbloquear), lcase(removed_lines))))) |
| | | | | |
| (! "staff" in global_user_groups | | (! ("staff" in global_user_groups | "sysop" in user_groups) |
| & (rcount(lcase(plantillastaff), lcase(added_lines)) > rcount(lcase(plantillastaff), lcase(removed_lines))) | | & (rcount(lcase(plantillastaff), lcase(added_lines)) > rcount(lcase(plantillastaff), lcase(removed_lines))) |
| &! (added_lines irlike mencionada)) | | &! (added_lines irlike mencionada)) |
| | | | | |
| (! "checkuser" in user_groups | | (! "checkuser" in user_groups |
| & (rcount(lcase(plantillacheckuser), lcase(added_lines)) > rcount(lcase(plantillacheckuser), lcase(removed_lines))) | | & (rcount(lcase(plantillacheckuser), lcase(added_lines)) > rcount(lcase(plantillacheckuser), lcase(removed_lines))) |
| &! (added_lines irlike mencionada)) | | &! (added_lines irlike mencionada)) |
| ) | | ) |