Wikipedia:Bots/Requests for approval/Josvebot 14
- 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!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
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
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:
{{R to section}}
- Example 1, Example 2{{R from title without diacritics}}
- Example{{R from modification}}
- Example{{R from other capitalisation}}
- Example 1, Example 2{{R to category namespace}}
- Example
(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 Physics → Zeitschift 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]
- @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]
- 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]
- 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]
- @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]
- 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]
Trial complete.
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] - 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.