Wikipedia:Edit filter/Requested

(Redirected from Wikipedia:EF/REQ)
Latest comment: 4 days ago by WhatamIdoing in topic Warn about a Wikipedia mirror
    Requested edit filters

    This page can be used to request edit filters, or changes to existing filters. Edit filters are primarily used to address common patterns of harmful editing.

    Private filters should not be discussed in detail. If you wish to discuss creating an LTA filter, or changing an existing one, please instead email details to wikipedia-en-editfilters@lists.wikimedia.org.

    Otherwise, please add a new section at the bottom using the following format:

    == Brief description of filter ==
    *'''Task''': What is the filter supposed to do? To what pages and editors does it apply?
    *'''Reason''': Why is the filter needed?
    *'''Diffs''': Diffs of sample edits/cases. If the diffs are revdelled, consider emailing their contents to the mailing list.
    ~~~~
    

    Please note the following:

    • Edit filters are used primarily to prevent abuse. Contributors are not expected to have read all 200+ policies, guidelines and style pages before editing. Trivial formatting mistakes and edits that at first glance look fine but go against some obscure style guideline or arbitration ruling are not suitable candidates for an edit filter.
    • Filters are applied to all edits. Problematic changes that apply to a single page are likely not suitable for an edit filter. Page protection may be more appropriate in such cases.
    • Non-essential tasks or those that require access to complex criteria, especially information that the filter does not have access to, may be more appropriate for a bot task or external software.
    • To prevent the creation of pages with certain names, the title blacklist is usually a better way to handle the problem - see MediaWiki talk:Titleblacklist for details.
    • To prevent the addition of problematic external links, please make your request at the spam blacklist.
    • To prevent the registration of accounts with certain names, please make your request at the global title blacklist.
    • To prevent the registration of accounts with certain email addresses, please make your request at the email blacklist.



    Warn about a Wikipedia mirror

    edit

    Ed-Tech Press, also known as "Scientific E-Resources, is a Wikipedia mirror. They print copies of books that are just Wikipedia articles. Per WP:CIRCULAR, we should never cite them in articles. Unfortunately, these books are listed in Google Books, and there's no obvious warning on them. I've inadvertently cited them twice recently. While I really appreciate reversions like this one, it seems like this is an area where an ounce of prevention is worth a pound of cure. Could we please have an abuse filter set up for this string:

    |publisher=Scientific e-Resources

    which should catch most {{cite book}} uses? If it would be great if it could produce a warning message like "Ed-Tech Press and Scientific E-Resources are Wikipedia mirrors. They are not reliable sources and should not be cited in articles per WP:CIRCULAR." I think that the 'warn' setting should be sufficient. WhatamIdoing (talk) 01:42, 7 July 2024 (UTC)Reply

    Thank you making this request - this publisher is just the worst. There is deliberately no attempt to identify the nature of the copied materials; it's just a straight up scam. There are three things I usually search for: "Ed-Tech Press", "Scientific e-Resources" (which is typically displayed when a google books link is resolved in a template), and the URL of "edtechpress.co.uk". I do agree with the warning being sufficient as I don't recall this ever being used on-wiki by a bad-faith actor. Sam Kuru (talk) 02:35, 7 July 2024 (UTC)Reply
    Yeah. Possible filter code for catching this could be:
    page_namespace == 0 &
    !contains_any(user_groups, "bot", "sysop", "extendedconfirmed") & (
       mirrors := "(?:\|publisher\s*\=\s*(?:(?:[Ss]cientific [Ee]\s?-\s?[Rr]esources)|(?:Ed\s?-\s?[Tt]ech [Pp]ress)))|(?:\|url\s*\=\s*edtechpress\.co\.uk)";
       added_lines irlike mirrors &
       !(removed_lines irlike mirrors)
    )
    
    I would create a log-only filter at first, and if it does well, ramp it up to warn. – PharyngealImplosive7 (talk) 22:05, 13 July 2024 (UTC)Reply
    Thanks for this. I understand that starting as a long-only filter is common, and I've no objection. WhatamIdoing (talk) 00:20, 14 July 2024 (UTC)Reply
    @WhatamIdoing, Kuru, and PharyngealImplosive7: If there is consensus for deprecation, it could just be added to 869 (hist · log), which might be better than a new filter just for this. Most likely   Deferred to WP:RSN. EggRoll97 (talk) 18:48, 27 July 2024 (UTC)Reply
    @EggRoll97, I don't think that it should be handled through the RSP system. It's not a case of "deprecated at RSN"; instead, it's a case of "banned by policy" (Wikipedia:Verifiability#Wikipedia and sources that mirror or use it being the most relevant policy). The deprecation message wouldn't be appropriate. Instead, I think it needs a message that is specific to Wikipedia:Mirrors and forks. WhatamIdoing (talk) 21:44, 27 July 2024 (UTC)Reply
      Requires more information Do you have any diffs to go off of by chance for this? It would be helpful to see this being added in a diff to be able to test a possible filter on one. EggRoll97 (talk) 06:26, 1 August 2024 (UTC)Reply
    Sure. Look at this one. WhatamIdoing (talk) 17:25, 1 August 2024 (UTC)Reply
      Still doing... I've been trying to build this filter, but I'm running into syntax errors. Still working on it, but this one seems to be taking time. EggRoll97 (talk) 13:40, 12 August 2024 (UTC)Reply
    Thanks for working on it. WhatamIdoing (talk) 19:37, 12 August 2024 (UTC)Reply
    I'm getting syntax errors, but I'm not sure what exactly is going wrong. This may be past my expertise, I'm not sure why it's throwing Expected a ) at character 53, not found (found T_STRING bot instead). From all I can tell, the code above seems fine, but batch testing doesn't like it, and I've got no idea currently on how to fix it. I've tried adding more parentheses, but everything seems to be closed up, so it shouldn't be throwing the error as far as I'm aware. EggRoll97 (talk) 05:40, 20 August 2024 (UTC)Reply
    Would finding another pair of eyes be helpful? We could ask at VPT. WhatamIdoing (talk) 05:50, 20 August 2024 (UTC)Reply
    There is supposed to be a comma after user_groups(example). Sorry I didn't notice this before. – 2804:F1...A7:C558 (talk) 15:29, 20 August 2024 (UTC)Reply
    I've added the comma. – 2804:F1...A7:C558 (talk) 15:34, 20 August 2024 (UTC)Reply
    I actually happened to try that when trying to build the filter in /test, adding the comma removes that error there, but adds a new syntax error on line 4, Syntax error detected: Expected a ) at character 256, not found (found T_ID added_lines instead). EggRoll97 (talk) 19:02, 20 August 2024 (UTC)Reply
    Maybe additionally the mirrors := declaration? Supposedly needs a semicolon at the end: User-defined variables.
    I've added that in too. – 2804:F1...A7:C558 (talk) 19:56, 20 August 2024 (UTC)Reply
      Testing at 1323. Apologies for this taking so long, I've been a bit busy with other matters. EggRoll97 (talk) 06:24, 24 August 2024 (UTC)Reply
    \o/
    Congratulations. I hope that the testing proves conclusive. WhatamIdoing (talk) 20:09, 24 August 2024 (UTC)Reply

    Projectspace Redirect Vandalism

    edit
    • Task: Reduce Redirect vandalism in Project namespace
    • Reason: After my discussion with Suffusion of Yellow and seeing this search I noticed a consistent amount of vandalism (average of around 2-2.5 edits per day for the last 2 months), some get picked up by Filter 1151 but most aren't.
    • Diffs: See search above.
    • Code:The code for this I've been working on is at: /Projectspace Redirect blanking

    Nobody (talk) 15:14, 24 July 2024 (UTC)Reply

      Testing at 1318. EggRoll97 (talk) 19:00, 27 July 2024 (UTC)Reply
    @EggRoll97 Made an update to the code. Nobody (talk) 11:59, 28 July 2024 (UTC)Reply
    Implemented, still in testing. EggRoll97 (talk) 15:06, 28 July 2024 (UTC)Reply
    @EggRoll97 Refined it a bit more. Nobody (talk) 05:53, 30 July 2024 (UTC)Reply
    Done. EggRoll97 (talk) 15:05, 30 July 2024 (UTC)Reply
    Update: No false positives since the last change. Nobody (talk) 06:01, 5 August 2024 (UTC)Reply
    @EggRoll97 Eliminated another false positive. Please update the filter. Thanks Nobody (talk) 05:42, 8 August 2024 (UTC)Reply
    Added. EggRoll97 (talk) 15:21, 8 August 2024 (UTC)Reply
    @EggRoll97 Made another update based on filter hits. Nobody (talk) 05:32, 20 August 2024 (UTC)Reply
    Added, same as last time. This seems to be productive and doesn't produce too many false positives, so I have no objection to starting to tag this with possible vandalism in a day or so. EggRoll97 (talk) 05:36, 20 August 2024 (UTC)Reply
    Great, I'll still keep my eyes on the log to eliminate any false positives. Nobody (talk) 05:40, 20 August 2024 (UTC)Reply
    Filter moved up to tagging, 1AmNobody24. EggRoll97 (talk) 06:41, 24 August 2024 (UTC)Reply

    Vandalism from changing IPs with a recognizable edit summary pattern

    edit

    Tehonk (talk) 05:07, 3 August 2024 (UTC)Reply

    Tehonk, I'm not a regular here, but I'm pretty sure you are on the wrong page. For starters, have a look at WP:Vandalism#How to respond to vandalism. The § For beginners section on that page has a useful checklist: Assess, Revert, Warn, Watch, Report. Bottom line, if it really is vandalism, revert it and warn them at their talk page, using escalating template warnings, starting with {{subst:uw-vandalism1}}, then -2, -3, -4 and if it's still happening after a 4-level warning, you can go to Wikipedia:Administrator intervention against vandalism to report it. By the way, you can search all of their contributions for all three with a CIDR-range search: Special:Contributions/46.184.120.17/22; that will pick up all three IPs (as well as some unrelated stragglers from 2 years ago). HTH, Mathglot (talk) 09:34, 4 August 2024 (UTC)Reply
    There's no use in sending warnings to expired/old IPs Tehonk (talk) 17:29, 4 August 2024 (UTC)Reply