Edit filter configuration

Differences between versions

ItemVersion from 13:07, 31 October 2012 by Peter HarrisonVersion from 22:33, 6 October 2022 by Peter Harrison
Filter conditions
Conditions:
(documentation)
!("autoconfirmed" in user_groups) &
!"confirmed" in user_groups &
(article_namespace == 0) &
page_namespace == 0 &
(lcase(added_lines) rlike "(<img|<a href|([^\[]|\[\[)http://[\S]*?\.(jpe?g|png|gif|bmp))") &
(
!(lcase(removed_lines) rlike "(<img|<a href|([^\[]|\[\[)http://[\S]*?\.(jpe?g|png|gif|bmp))") &
  urls := "data:image|<img|<a href|([^\[]|\[\[(File:|Image:)?)https?://[\S]*?\.(jpe?g|png|gif|bmp)";
!(rcount("external ?(media|image|audio|video)|<ref>|{{cite",lcase(added_lines)) > rcount("external ?(media|image|audio|video)|<ref>|{{cite",lcase(removed_lines)))
  templates := "(?i)external ?(media|image|audio|video)|<ref>|{{cite";
  added_lines irlike urls &
  !removed_lines irlike urls &
  (
    rcount( templates, lcase(added_lines) ) <=
    rcount( templates, lcase(removed_lines) )
  )
)