Jump to content

Abuse filter management

Differences between versions

ItemVersion from 00:04, 17 September 2024 by TheknightwhoVersion from 19:41, 3 December 2024 by Svartava
Basic information
Notes:
testing
enable for all: see [[Wiktionary:Beer parlour/2024/November#Enable new-L2 tag for all]]
Filter conditions
Conditions (help):
l2_heading := "(?i)(?(DEFINE)"
l2_heading := "(?i)(?(DEFINE)"
"(?<comment>!--\X*?(?>-->|\z))"
"(?<comment>!--\X*?(?>-->|\z))"
"(?<tag>(?>"
"(?<tag>(?>"
"(?&comment)|"
"(?&comment)|"
"\/?(?>includeonly|noinclude|onlyinclude)(?>\/?>|[\t-\r ][^>]*>)|"
"\/?(?>includeonly|noinclude|onlyinclude)(?>\/?>|[\t-\r ][^>]*>)|"
"(?<tagname>(?>categorytree|ce|charinsert|chem|dynamicpagelist|gallery|graph|hiero|imagemap|indicator|inputbox|langconvert|mapframe|maplink|math|nowiki|phonos|poem|pre|ref|references|score|section|source|syntaxhighlight|talkpage|templatedata|templatestyles|thread|timeline))(?>\/?>|[\t-\r ][^>]*>)(?(?<!\/>)\X*?<\/\k<tagname>[\t-\r ]*>)"
"(?<tagname>(?>categorytree|ce|charinsert|chem|dynamicpagelist|gallery|graph|hiero|imagemap|indicator|inputbox|langconvert|mapframe|maplink|math|nowiki|phonos|poem|pre|ref|references|score|section|source|syntaxhighlight|talkpage|templatedata|templatestyles|thread|timeline))(?>\/?>|[\t-\r ][^>]*>)(?(?<!\/>)\X*?<\/\k<tagname>[\t-\r ]*>)"
"))"
"))"
"(?<title>(?>[^\n<=] |=|< (?&tag)?) ?)"
"(?<title>(?>[^\n<=] |=|< (?&tag)?) ?)"
"(?<post>(?>[ \t] |<(?&comment))* (?=\n|\z))"
"(?<post>(?>[ \t] |<(?&comment))* (?=\n|\z))"
")"
")"
"[^<=] (*SKIP)(*F)|"
"[^<=] (*SKIP)(*F)|"
"< (?&tag)? (*SKIP)(*F)|"
"< (?&tag)? (*SKIP)(*F)|"
"(?<=\n|\A)==(?!=(?&title)===(?&post))(?&title)==(?&post)";
"(?<=\n|\A)==(?!=(?&title)===(?&post))(?&title)==(?&post)";


!(user_groups rlike "bot|sysop|autopatrol")
!(user_groups rlike "bot")
& equals_to_any(page_namespace, 0, 118)
& equals_to_any(page_namespace, 0, 118)
& old_size != 0
& old_size != 0
& rcount(l2_heading, new_pst) > rcount(l2_heading, old_wikitext)
& rcount(l2_heading, new_pst) > rcount(l2_heading, old_wikitext)