The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was  Approved.

New to bots on Wikipedia? Read these primers!

Operator: Josve05a (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 20:56, Friday, July 28, 2023 (UTC)

Function overview: Tagging redirect with appropriate redirect templates.

Automatic, Supervised, or Manual: Automatic

Programming language(s): AWB

Source code available: AWB standard

Links to relevant discussions (where appropriate):

Edit period(s): Continuous when I get around to running the bot.

Estimated number of pages affected: Around 200-300 per hour when running

Namespace(s):Namespace 0 (articles)

Exclusion compliant (Yes/No): Yes

Function details: List of templates which will be done automatically by bot are:

(with possibility to add more templates as determined by me which generates no errors if done automatically)

Other minor non-contentious general fixes such as changing underscores to spaces in the links, or moving categories to the bottom of the page may be done at the same time.

Discussion

[edit]

I have a couple of concerns on some of them. R to section and R to category are fine. Capitalization OK, so long as it recognizes ((R from miscaps)) (and variants) already be present.

For R to diacritics... what would it do with something like Journal for PhysicsZeitschift für Physik?

For R from modification, what modification does it consider?

Headbomb {t · c · p · b} 21:16, 28 July 2023 (UTC)[reply]

It is mainly run using AWB's default settings, so it will not touch cases which are not obvious.
In cases another "R to" or "R from template already exists, it skips the page.
In case of diacritics, it only tags when it is a direct character match (so e to é, but not o to ü), if not it skips the page.
Also doesn't tag the page when redirect goes from Journal to Zeitschift, that is not a diacritics change but a language change. (Comment added 21:48, 28 July 2023 (UTC))
For modification - let me get back to you in a few minutes.

-- Jonatan Svensson Glad (talk) 21:23, 28 July 2023 (UTC)[reply]

Having checked the actual code here is the templates in question:
((R to xxx namespace)) for redirect pointing to project/help/portal/category/template/user/talk
((R from modification)) for when there only difference is extra/removed/changed punctuation or dash
((R from title without diacritics)) for title and redirect target the same if diacritics removed from redirect target
((R from other capitalisation)) and ((R to section)) is self-explanatory
--Jonatan Svensson Glad (talk) 21:31, 28 July 2023 (UTC)[reply]
So, example of modification is changing from dash to ndash, or changing from title with explanation mark to without it. Jonatan Svensson Glad (talk) 21:34, 28 July 2023 (UTC)[reply]
@Headbomb: Did the above answer your questions sufficiently? The below is a question whether to do this en-masse, but current set up of templates and guidelines suggest that there is no other way as of now. As it is right now thousands of redirects are not categories as they should be, therefore, I see it as beneficial to do these edits with a bot to be able to categorize and tag the redirects, as a first step in order to later merge the specific templates in case someone clever comes around to code a template to detect these things automatically. Jonatan Svensson Glad (talk) 22:36, 29 July 2023 (UTC)[reply]
They do, yes. I don't have qualms with an AWB bot doing this, but I do have qualms about a bot doing this when a simple edit could significantly cut down on the number of articles where such an edit would be needed to begin with.
@Qwerfjkl: how soon can the relevant change be made? If it's more than a week away, I'm going to approve this after a short trial. Headbomb {t · c · p · b} 22:50, 29 July 2023 (UTC)[reply]
@Headbomb, you can go ahead and approve this for a trial. I doubt anything will happen with the banner shell. — Qwerfjkltalk 07:31, 30 July 2023 (UTC)[reply]
There was an extended discussion at ((Redirect category shell))'s talk page about automatically adding templates via the shell. I would prefer that that be properly implemented instead of mass editing redirects. — Qwerfjkltalk 22:00, 28 July 2023 (UTC)[reply]
Can't see much work has been done on that part in a substantial amount of time, and based on current guidelines these templates should still be applied. Jonatan Svensson Glad (talk) 22:35, 28 July 2023 (UTC)[reply]
@Josve05a, yes, but it would ideal if a simple template change could be applied instead of a large number of edits. — Qwerfjkltalk 12:06, 29 July 2023 (UTC)[reply]
I don't see a "single template change" to encompass capitalization, diacritics, and modifications to be on the agenda in the near future. The only discussion I can find is to another namespace/another project, and even that seems to not have reached consensus to stop using the specific templates as of now, also that template still needs to be applied to appropriate redirects after any such change in guideline and templates, so to get a grasp of how many pages are affected, they should all be tagged to begin with. Jonatan Svensson Glad (talk) 19:51, 29 July 2023 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete., 10 per template. Headbomb {t · c · p · b} 07:33, 30 July 2023 (UTC)[reply]

Trial complete.

((R to section)) - no issues encountered

  1. https://en.wikipedia.org/w/index.php?title=1956%E2%80%9357_The_Citadel_Bulldogs_men%27s_basketball_team&diff=prev&oldid=1167856301
  2. https://en.wikipedia.org/w/index.php?title=1976_United_States_House_of_Representatives_elections_in_Connecticut&diff=prev&oldid=1167856311
  3. https://en.wikipedia.org/w/index.php?title=1981_Libertarian_National_Convention&diff=prev&oldid=1167856319
  4. https://en.wikipedia.org/w/index.php?title=2000_United_States_House_of_Representatives_elections_in_Maine&diff=prev&oldid=1167856329
  5. https://en.wikipedia.org/w/index.php?title=2001_Clemson_Tigers_baseball_team&diff=prev&oldid=1167856334
  6. https://en.wikipedia.org/w/index.php?title=2001_Maccabiah_Games_medal_table&diff=prev&oldid=1167856343
  7. https://en.wikipedia.org/w/index.php?title=2004%E2%80%9305_NBDL_season&diff=prev&oldid=1167856351
  8. https://en.wikipedia.org/w/index.php?title=2012_Faroe_Islands_Super_Cup&diff=prev&oldid=1167856360
  9. https://en.wikipedia.org/w/index.php?title=2013%E2%80%9314_Northern_Premier_League_Challenge_Cup&diff=prev&oldid=1167856369
  10. https://en.wikipedia.org/w/index.php?title=2014_Asian_Beach_Games_medal_table&diff=prev&oldid=1167856373
((R from title without diacritics)) - two issues encountered, see below for solutions

  1. https://en.wikipedia.org/w/index.php?title=Zoran_Sokolovic&diff=prev&oldid=1167856895
  2. https://en.wikipedia.org/w/index.php?title=Yo_Taichi&diff=prev&oldid=1167856917
  3. https://en.wikipedia.org/w/index.php?title=William_Moller&diff=prev&oldid=1167856959
  4. https://en.wikipedia.org/w/index.php?title=Walter_Mossinger&diff=prev&oldid=1167856985
    • o to ö = good edit. HOWEVER, the redirect was also from ss to ß which should tag with ((R to ligature)) as well
      • It is not a bad edit (both templates should be applied), but I will code so it will skip all redirects which points to article titles including ligatures which AWB deem as as diacritics to ensure it does not cause confusion like in cases such as this one.
  5. https://en.wikipedia.org/w/index.php?title=Voellerdingen&diff=prev&oldid=1167857016
    • oe to œ 0 should have used ((R to ligature))
      • See solution implemented above (skipping redirects pointing to articles with ligatures which AWB deem as diacritics)
  6. https://en.wikipedia.org/w/index.php?title=Tonnes_Stang_Rolfsen&diff=prev&oldid=1167857181
  7. https://en.wikipedia.org/w/index.php?title=Thiago_Andre&diff=prev&oldid=1167857208
  8. https://en.wikipedia.org/w/index.php?title=Teresa_de_Jesus&diff=prev&oldid=1167857251
  9. https://en.wikipedia.org/w/index.php?title=Tampaon_River&diff=prev&oldid=1167857280
  10. https://en.wikipedia.org/w/index.php?title=Stefan_Tofan&diff=prev&oldid=1167857320
((R from modification)) - no issues encountered

  1. https://en.wikipedia.org/w/index.php?title=St._Albans_F.C.&diff=prev&oldid=1167857902
  2. https://en.wikipedia.org/w/index.php?title=Sri_Lankan_cricket_team_in_Bangladesh_in_2017-18&diff=prev&oldid=1167857911
  3. https://en.wikipedia.org/w/index.php?title=Signore,_ascolta&diff=prev&oldid=1167857976
  4. https://en.wikipedia.org/w/index.php?title=Sheikh_Md_Zakir_Hossain&diff=prev&oldid=1167857995
  5. https://en.wikipedia.org/w/index.php?title=Santo_Stefano_(Bologna)&diff=prev&oldid=1167858033
  6. https://en.wikipedia.org/w/index.php?title=Santa_Sofia_(Venice)&diff=prev&oldid=1167858044
  7. https://en.wikipedia.org/w/index.php?title=Sally_Scraggs:_Housemaid&diff=prev&oldid=1167858060
  8. https://en.wikipedia.org/w/index.php?title=Saga_comics&diff=prev&oldid=1167858078
  9. https://en.wikipedia.org/w/index.php?title=Richmond_Township_(Ray_County,_Missouri)&diff=prev&oldid=1167858114
  10. https://en.wikipedia.org/w/index.php?title=Ralph_Freman_(1666-1742)&diff=prev&oldid=1167858149
((R from other capitalisation)) - no issues encountered

  1. https://en.wikipedia.org/w/index.php?title=People_before_profit&diff=prev&oldid=1167858563
  2. https://en.wikipedia.org/w/index.php?title=Park_Suk-Ja&diff=prev&oldid=1167858597
  3. https://en.wikipedia.org/w/index.php?title=Pale-tailed_Canastero&diff=prev&oldid=1167858612
  4. https://en.wikipedia.org/w/index.php?title=Pacific_Snake_eel&diff=prev&oldid=1167858625
  5. https://en.wikipedia.org/w/index.php?title=Nordlink&diff=prev&oldid=1167858689
  6. https://en.wikipedia.org/w/index.php?title=Nanaimo_Nightowls&diff=prev&oldid=1167858742
  7. https://en.wikipedia.org/w/index.php?title=NHL_PowerPlay_%2796&diff=prev&oldid=1167858751
  8. https://en.wikipedia.org/w/index.php?title=M%C3%A9decins_sans_fronti%C3%A8res&diff=prev&oldid=1167858767
  9. https://en.wikipedia.org/w/index.php?title=Metanilic_Acid&diff=prev&oldid=1167858810
  10. https://en.wikipedia.org/w/index.php?title=Member_of_the_Legislative_assembly_(India)&diff=prev&oldid=1167858821
((R to category namespace)) - no issues encountered (other namespaces would work the same way but other specific NS-template, however for the trial I let the bot run on a specific set of article's I knew would trigger a save)

  1. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Zoology_Journal&diff=prev&oldid=1167861220
  2. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Worldwide_Waste_Management_Journal&diff=prev&oldid=1167861232
  3. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Womens_Health_Journal&diff=prev&oldid=1167861248
  4. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Wireless_Networks_and_Communications_Journal&diff=prev&oldid=1167861260
  5. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Wireless_Networks_and_Applications_Journal&diff=prev&oldid=1167861274
  6. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Wireless_and_Mobile_Communications_Engineering_Journal&diff=prev&oldid=1167861293
  7. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Wildlife_Ecology_Journal&diff=prev&oldid=1167861305
  8. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Web_Engineering_Journal&diff=prev&oldid=1167861315
  9. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Web_and_Grid_Services_Journal&diff=prev&oldid=1167861328
  10. https://en.wikipedia.org/w/index.php?title=Canadian_Open_Water_Resources_and_Environmental_Engineering_Journal&diff=prev&oldid=1167861337

I encountered issues with the diacritics template as described in the list above, which I've added preventative fixes and skips for.
I also noticed that ((R from title without diacritics)) has been moved to ((R to diacritic)), so I've updated to be using that one instead in the future.
--Jonatan Svensson Glad (talk) 08:37, 30 July 2023 (UTC)[reply]

@Headbomb: Having run the bot a few times on pages (without saving) I can confirm that the issues encountered above has been taken care of (now skips pages which includes Ꜳ|ꜳ|Æ|æ|Ꜵ|ꜵ|Ꜷ|ꜷ|Ꜹ|ꜹ|Ꜻ|ꜻ|Ꜽ|ꜽ|🙰|ff|ffi|ffl|fi|fl|Ƕ|ƕ|℔|Ỻ|ỻ|Œ|œ|Ꝏ|ꝏ|ꭢ|ẞ|ß|st|ſt|Ꜩ|ꜩ|ᵫ|ꭣ|W|w|Ꝡ|ꝡ|Ꟗ|ꟗ amongst a few possible edge-cases, just in case). I don't see any issues with the current set up to go ahead if approved. Jonatan Svensson Glad (talk) 21:17, 30 July 2023 (UTC)[reply]
 Approved. Good enough for me. Headbomb {t · c · p · b} 21:34, 30 July 2023 (UTC)[reply]
The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard.