Differences between versions

ItemVersion from 01:36, 10 July 2023 by Mdaniels5757Version from 02:27, 3 September 2023 by Mdaniels5757
Basic information
Notes:
This filter is intended to capture new pages created by anonymous users which tend to be vandalism or test edits.
This filter is intended to capture new pages created by anonymous users which tend to be vandalism or test edits.
* Initially, targeted to the namespace 0 only.
* Initially, targeted to the namespace 0 only.
* fmt and strict comparison
* fmt and strict comparison
* cover all non-talk-pages except categories, timed text and deletion requests
* cover all non-talk-pages except categories, timed text and deletion requests
* For reference, see [[Special:Permalink/85313982#Proposed Change of Rules]]
* For reference, see [[Special:Permalink/85313982#Proposed Change of Rules]]
* Even if it hurts me and Commons, I am going to activate this filter because it turned out that >99% of the tracked edits were indeed trash;  
* Even if it hurts me and Commons, I am going to activate this filter because it turned out that >99% of the tracked edits were indeed trash;  
* Discussion is now available at https://commons.wikimedia.org/wiki/Commons:Administrators'_noticeboard/Archive_39#Proposed_Change_of_Rules ; for namespaces it is active on-- see filter conditions
* Discussion is now available at https://commons.wikimedia.org/wiki/Commons:Administrators'_noticeboard/Archive_39#Proposed_Change_of_Rules ; for namespaces it is active on-- see filter conditions
* Allow creating CfDs (Category for discussion)
* Allow creating CfDs (Category for discussion)
* When making changes to this filter, please update [[Module:Editnotice]] accordingly
* When making changes to this filter, please update [[Module:Editnotice]] accordingly
* extra parentheses added, == instead of === (no idea what is wrong)
* extra parentheses added, == instead of === (no idea what is wrong)
* sandbox per false positive report
* sandbox per false positive report
* Allow Translations -Mdaniels 20230902
Filter conditions
Conditions:
(documentation)
(condition usage)
/* simple conditions that aren't met by many actions first */
/* simple conditions that aren't met by many actions first */
( user_age == 0 )
( user_age == 0 )
& ( old_size === 0 )
& ( old_size === 0 )
& ( action  === 'edit' )
& ( action  === 'edit' )


   /* only article-namespaces (talk pages should be excluded);*/
   /* only article-namespaces (talk pages should be excluded);*/
   /* exclude categories (NS 14) and timed text (NS 102) and treat project pages (NS 4) differently */
   /* exclude categories (NS 14) and timed text (NS 102) and treat project pages (NS 4) differently */
  /* also added Translation (1198) to exclude list */
& (  (  (page_namespace % 2) === 0  
& (  (  (page_namespace % 2) === 0  
         & page_namespace !== 4  
         & page_namespace !== 4  
         & page_namespace !== 14  
         & page_namespace !== 14  
         & page_namespace !== 102  
         & page_namespace !== 102  
        & page_namespace !== 1198
     )
     )
   /* allow creating deletion requests, use of sandbox */
   /* allow creating deletion requests, use of sandbox */
   | (  page_namespace === 4 & (  
   | (  page_namespace === 4 & (  
             strpos( page_title, 'Deletion requests/' ) !== 0 & strpos( page_title, 'Categories for discussion/' ) !== 0 & strpos( page_title, 'Sandbox')  !== 0
             strpos( page_title, 'Deletion requests/' ) !== 0 & strpos( page_title, 'Categories for discussion/' ) !== 0 & strpos( page_title, 'Sandbox')  !== 0
   ) )
   ) )
   )
   )