Edit filter configuration

Differences between versions

ItemVersion from 03:45, 25 March 2024 by DMacksVersion from 21:34, 12 May 2024 by Suffusion of Yellow
Basic information
Notes:
Requested at [[Special:PermaLink/1192163149#Identify removal of short description]] by [[User:Uhai]]. Tweaked slightly from a test at filter 1014. --Suffusion of Yellow 22:34 31 Dec 2023
Requested at [[Special:PermaLink/1192163149#Identify removal of short description]] by [[User:Uhai]]. Tweaked slightly from a test at filter 1014. --Suffusion of Yellow 22:34 31 Dec 2023
Updated to disallow, per [[Wikipedia:Edit_filter_noticeboard#Set_filter_285_to_disallow?]].  Rich Farmbrough 21:00 21 March 2024.
Updated to disallow, per [[Wikipedia:Edit_filter_noticeboard#Set_filter_285_to_disallow?]].  Rich Farmbrough 21:00 21 March 2024.
Update message temporarily to [[MediaWiki:Abusefilter-disallow-short-description]] awaiting move to [[MediaWiki:Abusefilter-disallowed-short-description]].  Rich Farmbrough 12:10 23 March 2024
Update message temporarily to [[MediaWiki:Abusefilter-disallow-short-description]] awaiting move to [[MediaWiki:Abusefilter-disallowed-short-description]].  Rich Farmbrough 12:10 23 March 2024
Check new_wikitext instead of added_lines, allows removal of duplicate SDs. --Suffusion of Yellow 21:34 12 May 2024
Filter conditions
Conditions:
(documentation)
!("confirmed" in user_groups) &
!("confirmed" in user_groups) &
page_namespace == 0 &
page_namespace == 0 &
(
(
     sd := "\{\{\s*short[ _]description\s*\|(\s*1\s*\=[^\{\}\[\]\|]+|[^\{\}\[\]\|\=]+)\}\}";
     sd := "\{\{\s*short[ _]description\s*\|(\s*1\s*\=[^\{\}\[\]\|]+|[^\{\}\[\]\|\=]+)\}\}";
      
      
     removed_lines irlike sd &
     removed_lines irlike sd &
     !(added_lines irlike sd) &
     !(new_wikitext irlike sd) &
     !(lcase(new_wikitext) rlike "#\s*redirect|{{(?:db-(?:attack|g10)|wi|wiktionary\s*redirect)\s*[|}]") &
     !(lcase(new_wikitext) rlike "#\s*redirect|{{(?:db-(?:attack|g10)|wi|wiktionary\s*redirect)\s*[|}]") &
     !(summary irlike "^(?:revert|rv|undid)") &
     !(summary irlike "^(?:revert|rv|undid)") &
     !(new_html contains "shortdescription") & /* Catch-all for weird edge cases */
     !(new_html contains "shortdescription") & /* Catch-all for weird edge cases */
     !(
     !(
         /* Ignore accidental removal while adding substantial content */
         /* Ignore accidental removal while adding substantial content */
         edit_delta > 250 &
         edit_delta > 250 &
         rcount("[{}[\]]", added_lines) >= rcount("[{}[\]]", removed_lines)
         rcount("[{}[\]]", added_lines) >= rcount("[{}[\]]", removed_lines)
     ) &
     ) &
     !(  /* Exclude edits already disallowed by filter 3 */
     !(  /* Exclude edits already disallowed by filter 3 */
         new_size < 50 & old_size > 300 |
         new_size < 50 & old_size > 300 |
         new_size/(old_size + 1) < 0.1
         new_size/(old_size + 1) < 0.1
     )
     )
)
)
Actions to take when matched
Actions to take when matched
Disallow: Abusefilter-disallowed-short-description
Disallow: abusefilter-disallowed-short-description