Cannabis Ruderalis

This page is for tasks that involve changing the same code in multiple articles. This is a great fit for editors with AutoWikiBrowser permissions.

Please note that Wikipedia:Bot requests sometimes has one-time tasks which can be done easily using AWB. For modifying URLs see WP:URLREQ.

See also Wikipedia:WikiProject Check Wikipedia.

Mass replace wikilinks[edit]

Could all wikilinks currently pointing to Northern Knights please be redirected to point to Northern Knights Football Club. I have checked the list of 245 links and all are suitable to be redirected. The links are at present incorrect as a new disambiguation page for Northern Knights has since been created. Thank you! Gibbsyspin 12:42, 11 September 2023 (UTC)Reply[reply]

Will start now. Panamitsu (talk) Please ping on reply 12:54, 11 September 2023 (UTC)Reply[reply]
 Done Panamitsu (talk) Please ping on reply 13:17, 11 September 2023 (UTC)Reply[reply]
Thank you! Gibbsyspin 07:05, 12 September 2023 (UTC)Reply[reply]
Hi @Panamitsu – could you please now replace all instances of [[Northern Knights Football Club]] with [[Northern Knights Football Club|Northern Knights]]? This will correct the display name on all these old links. Thanks. Gibbsyspin 23:13, 10 October 2023 (UTC)Reply[reply]
 Doing... Yup, will do that now. —Panamitsu (talk) 23:20, 10 October 2023 (UTC)Reply[reply]
 DonePanamitsu (talk) 23:37, 10 October 2023 (UTC)Reply[reply]

Move cleanup needed on about 206 articles moved[edit]

At User:Dicklyon/Freestyle to lowercase we have a list of 206 titles that were moved to change "Freestyle" to "freestyle" (after an unopposed RM discussion, TolBot did the moves). Most incoming links still use the over-capitalized form. Would someone like to do an AWB run over those and fix that? Maybe also tag the redirects as R from miscapitalization? Dicklyon (talk) 03:56, 27 September 2023 (UTC)Reply[reply]

I'd start by looking at replacing "en's Freestyle" with "en's freestyle" everywhere it occurs (except file names, ref titles, commons cats, and such); found about 1200 articles before regex search timed out. Then I'd find that leads to inconsistencies in things like "in the Men's Freestyle Middleweight" and I'd either narrow the pattern, or widen to fix those, too, etc. Also things like Freestyle wrestling#Women's Freestyle Wrestling might lead me to work on over-capitalized sections titles (or old broken section links, like this one). So much to do, but I'm enjoined from using the tools, so looking for someone else to take on whatever part of this they can. Dicklyon (talk) 15:29, 27 September 2023 (UTC)Reply[reply]

In particular, 20 articles need to have /#Women's Freestyle Wrestling\|Women's Freestyle Wrestling/ replaced by /#Women's freestyle wrestling\|Women's freestyle wrestling/. I got tired of fixing these by hand. Dicklyon (talk) 01:09, 1 October 2023 (UTC)Reply[reply]

Asking again – A straightforward move cleanup task that would be a pain to complete without semi-automated help. Dicklyon (talk) 00:52, 1 October 2023 (UTC)Reply[reply]

Still asking Dicklyon (talk) 05:11, 19 October 2023 (UTC)Reply[reply]
User:Dicklyon: If you can list very specific changes that won't cause unintended consequences I can take a shot at this, one at a time. It might result in multiple edits to each article but I don't want to try and do everything at once and sort out problems it's too complicated. I can start with Women's Freestyle Wrestling you mentioned above because it's very specific and thus low probability of false positive matching. Posting as User:GreenC bot. Sound alright? -- GreenC 15:39, 19 October 2023 (UTC)Reply[reply]
Thanks for offering to help. It's hard for me to get more specific without actually running JWB and seeing what patterns I find. I would evolve patterns as I go, and keep a careful eye out for false positives, as opposed to being able to design very specific changes up front. One thing that's easy to fix, I think, is where the lead sentence has the overcapitalized phrase bolded (e.g. as The '''Men's Freestyle *). Dicklyon (talk) 17:50, 19 October 2023 (UTC)Reply[reply]
I think designing an error-free bot task and getting approval for it is more trouble than needed here. Semi-automated is less trouble for this moderate number of articles. Dicklyon (talk) 17:55, 19 October 2023 (UTC)Reply[reply]
Well I'm pretty busy with other tasks so don't want to get too wrapped up, it is really more of a style issue than substantial like broken links, but I'll start with the 20 articles you mentioned and see what happens. We'll both be checking as we go (BRFA is too much for this). -- GreenC 18:07, 19 October 2023 (UTC)Reply[reply]
Ran on all 206 articles and the regex had 0 matches:
gsub(/#[ ]*Women'"'"'s Freestyle Wrestling[ ]*[|][ ]*Women'"'"'s Freestyle Wrestling/, "#Women'"'"'s freestyle wrestling|Women'"'"'s freestyle wrestling", fp)
Sorry for the extranous markup around the ' in Women's .. this is an artifact since I am running an awk script from the command-line. Have they already been fixed or the regex not accurate? -- GreenC 18:29, 19 October 2023 (UTC)Reply[reply]
Sorry, I think that pound sign needs to be escaped with a backslash, or omitted, to find these 15. Dicklyon (talk) 03:04, 21 October 2023 (UTC)Reply[reply]
And I forgot to say, that batch is not within the 206 necessarily, but in links to them and similar. With the 206, it's mostly the bold lead phrase the needs fixing. In other articles, it's the links to those that were moved. I know, it's complicated, the kind of the move cleanup that often gets left undone as a result. Dicklyon (talk) 03:06, 21 October 2023 (UTC)Reply[reply]
They are done Special:Diff/1177487202/1181146710. The "#" doesn't need escape (at least in Awk's regex) it was the list of 15 articles are different from the 206. What next? I'm running the backlinks on the 206 eg. Special:Diff/1181150542/1181151031 .. it's done(?). I screwed up making too many edits to the same page eg [1], later revisions fixed this eg. Special:Diff/1095022874/1181157591 (sorry to anyone coming here to report it, won't happen again). -- GreenC 04:27, 21 October 2023 (UTC)Reply[reply]
replacing "en's Freestyle" with "en's freestyle" everywhere it occurs (except file names, ref titles, commons cats, and such); found about 1200 articles before regex search timed out - that's hairy, because of the exceptions. Sorry, I'll pass on this part. Any other ideas? -- GreenC 06:49, 21 October 2023 (UTC)Reply[reply]
I could probably truncate "Wrestling at the 2022 Mediterranean Games – Women's freestyle 76 kg" into "Women's freestyle 76 kg" and search for ''Women's Freestyle 76(& nbsp;|[ ]|-)?kg'' (the bold in first line) and replace with lower. Will try this tomorrow. -- GreenC 06:49, 21 October 2023 (UTC)Reply[reply]
Many thanks. I appreciate you working on this. An easy bunch of fixes within the 206 would be the over-capitalization in the bolded part of the lead (e.g. "The Men's Freestyle..." and "The Men's freestyle..."). Dicklyon (talk) 02:16, 22 October 2023 (UTC)Reply[reply]
The bold work is done Special:Diff/1177189953/1181444083. I believe any "The" inside the bold was moved outside, but I didn't see any matches. It also lower-cased the Men and Women when there is a leading The. -- GreenC 02:25, 23 October 2023 (UTC)Reply[reply]
Good job! That's nailed the most basic move cleanup needed. The links to the over-capped old titles can be done incrementally or eventually. One thing that helps track such needs is to tag the redirects that resulted from the moves (i.e. the 206 titles I listed that are now redirects) with {{R from miscapitalization}}, so that links to them will show up at WP:Database reports/Linked miscapitalizations. Would that be easy for you? Dicklyon (talk) 03:39, 23 October 2023 (UTC)Reply[reply]
Thanks. links to the over-capped old titles .. did I do that already? [2]. Looking at the backlinks for 2018 European Wrestling Championships – Women's Freestyle 68 kg [3] there is nothing there now. Should be the same for all 206. -- GreenC 18:12, 24 October 2023 (UTC)Reply[reply]
Indeed you did! Thanks again. Dicklyon (talk) 03:49, 26 October 2023 (UTC)Reply[reply]

Fixing links through miscapitalized redirects[edit]

Wikipedia:Database reports/Linked miscapitalizations lists lots of miscapitalized redirects with links to them. At the "skinny" end, I can easily knock off lots of the ones with just one or a few links, and have done about 400 of those recently, though more show up every day. At the other end, we have things like Alternative Rock with hundreds of incoming links, which really needs some help from an AWB user. It's not trivial, as sometimes the whole thing needs to be lowercase, and sometimes just one word. But without AWB, nobody's going to make a dent. (And sometimes looking at some uses makes it clear that "R from miscapitalization" is really not a correct tag to use, so that's an easy fix that doesn't need AWB; but not often.) Dicklyon (talk) 04:07, 27 September 2023 (UTC)Reply[reply]

@Dicklyon, I wonder if DisambigAssist could be modified to do this. See Special:Diff/1177344875. — Qwerfjkltalk 07:13, 27 September 2023 (UTC)Reply[reply]
Currently, DisamAssist changes only the link target. It retains the displayed text, adding a pipe where necessary. So it can change [[sppeling]] to [[spelling|sppeling]] but not to the desired [[spelling]]. It could probably be modified. Indeed, I've done this myself for redirects only, so #REDIRECT [[sppeling]] gets replaced by #REDIRECT [[spelling]] rather than a piped link. The corresponding function in the live version is at es:Usuario:Qwertyytrewqqwerty/DisamAssist-core.js#L-645. Certes (talk) 10:36, 27 September 2023 (UTC)Reply[reply]
Those are useful bits, but the task of deciding whether it should be alternative rock or Alternative Rock still needs more help, including a good look from a human who understands the context (and also brings up opportunities to fix more things nearby, like in a comma-separated listing of genres that should be all lowercase except maybe the first. For other linked terms, this issue won't come up, where the first word is a proper name, and for still others the "miscapitalization" is intended for a somewhat good reason, like when a generic term is linked within an organization name (I tend to just remove the link). There are also quite a few names of journals that have corresponding generic terms without articles, and those have lowercase miscapitalizations improperly linked. A few general tools for such different types of situations would be great, but I'm enjoined from using semi-automated editing tools, so I'll leave it as just a task request. Dicklyon (talk) 15:17, 27 September 2023 (UTC)Reply[reply]
@Dicklyon, that's why DisamAssist is good - it gives context: — Qwerfjkltalk 20:03, 27 September 2023 (UTC)Reply[reply]
Yes, I can see it's good. But is it limited to disambiguating? Can it be adapted to this task? Dicklyon (talk) 03:21, 28 September 2023 (UTC)Reply[reply]
@Dicklyon, that's what Certes talked about in their comment above. — Qwerfjkltalk 06:04, 28 September 2023 (UTC)Reply[reply]
Right, Certes has a good part of it, or knows how to get tkere. So, is anyone willing to help with this task? Dicklyon (talk) 16:02, 28 September 2023 (UTC)Reply[reply]
I've begun tackling the list, and using AWB. Perhaps it will help "make a dent". —ADavidB 02:58, 2 October 2023 (UTC)Reply[reply]
Thanks! I see you knocked off a miscapitalized redirect with 176 articles linking to it, with your 176 AWB edits. Appreciate it. Dicklyon (talk) 04:04, 2 October 2023 (UTC)Reply[reply]
I'll add this to my crawl list. Thanks for pointing it out. Neils51 (talk) 08:41, 19 October 2023 (UTC)Reply[reply]

Post-move cleanup of wikilinks (Hurts)[edit]

Hi all, could all article-space wikilinks pointing to Hurts be retargeted to point to Hurts (duo)? The musical duo was recently moved out of primary topic status by an RM consensus, and the title Hurts now points to a disambiguation page. At the time of my writing this, there are 255 articles with links that need redirecting. ModernDayTrilobite (talk • contribs) 19:03, 5 October 2023 (UTC)Reply[reply]

The links on Hurt, HURTS, Hurts (song), and Hertz (disambiguation) should continue to point to the DAB, but at this time I believe all of the other links are suitable for redirecting. ModernDayTrilobite (talk • contribs) 19:16, 5 October 2023 (UTC)Reply[reply]
I've fixed the four exceptions, mainly to link via the Hurts (disambiguation) redirect. Certes (talk) 20:40, 5 October 2023 (UTC)Reply[reply]
Currently working on this task. Should be done soon. Phuzion (talk) 02:23, 6 October 2023 (UTC)Reply[reply]
 Done, or pretty darn close. There's still Ready to Go (Hurts song) that refuses to clear up for some reason, but I'm sure I'm just missing something since it's 1AM my time. If someone wants to go in and take a look, please be my guest. Phuzion (talk) 05:11, 6 October 2023 (UTC)Reply[reply]
Thank you! I took a look at Ready to Go and managed to hunt down the stray wikilink; it was in the author-link parameter of a Cite Web template, so there weren't any brackets around it. ModernDayTrilobite (talk • contribs) 13:34, 6 October 2023 (UTC)Reply[reply]

Replacing stub templates[edit]

Can someone replace {{Cyprinidae-stub}} with {{Danioninae-stub}} in all pages listed at User:I_Am_Andumé/Cyprinidae_stubs#Danioninae? Thanks, Andumé (talk) 19:48, 5 October 2023 (UTC)Reply[reply]

Do you just want the articles in the Danioninae section replaced, or do you want the pages under the Gobioninae section replaced as well? Phuzion (talk) 22:52, 5 October 2023 (UTC)Reply[reply]
 Done, as long as you don't need the Gobioninae section done. Phuzion (talk) 23:42, 5 October 2023 (UTC)Reply[reply]
Gobioninae doesn't have a stub template yet, so no. Thanks for doing the Danioninae section though! Andumé (talk) 02:18, 6 October 2023 (UTC)Reply[reply]

Chris Young[edit]

[[Chris Young (musician)|Chris Young]] -> [[Chris Young (singer)|Chris Young]] Clean up disambiguation after page move. Ten Pound Hammer(What did I screw up now?) 06:03, 8 October 2023 (UTC)Reply[reply]

 Doing...Panamitsu (talk) 06:17, 8 October 2023 (UTC)Reply[reply]

K–12 categories[edit]

Category:K–12 schools in the United States and its immediate subcats currently use dashes per MOS:DASH, but not the detailed subcats by state and county. Please would someone template the subcats with {{cfr-speedy}}, and list them at WP:CFDS with the *REDIRECT prefix? (Category redirects should be kept from ASCII keyboard characters to diacritics, such as hyphen to en dash.) – Fayenatic London 08:19, 19 October 2023 (UTC)Reply[reply]

List of storms named X[edit]

Could the articles within Category:Disambig-Class Weather articles that follow the naming scheme "List of storms named X" have their talkpage class changed from disambig to list and Template:WPWX SIA added? Noah, AATalk 21:07, 20 October 2023 (UTC)Reply[reply]

 Doing...MaterialWorks 21:15, 20 October 2023 (UTC)Reply[reply]
@Hurricane Noah:  Done. — MaterialWorks 21:38, 20 October 2023 (UTC)Reply[reply]
Thanks. Noah, AATalk 21:40, 20 October 2023 (UTC)Reply[reply]

Cleanup of 30 talk page archives with "undefined" in title[edit]

Not exactly an AWB task, but a quick cleanup task. I think the kinds of people that like doing AWB would like this cleanup task. Anyway, on this list of pages, the page titles containing "undefined" are the ones that need cleanup. They were created as a result of a one click archiver script with a bug in it. The algorithm to fix them is:

  • Cut and paste the contents of each page into the appropriate /archive page for that article. The appropriate archive page may not exist yet and may need to be created, or there may be dozens of archive pages already created and you'll need to decide whether to just add it to the latest archive, place it chronologically, etc. Example: The wikitext of Talk:Mitch Daniels/Archive undefined can probably just be cut and paste into Talk:Mitch Daniels/Archive 1, minus the banner at the top.
  • Once empty, tag the "undefined" and now empty page as {{Db-g6}}

Thanks in advance! –Novem Linguae (talk) 17:03, 24 October 2023 (UTC)Reply[reply]

Done, mostly, save for User talk:Sulfurboy/Archive undefined which I'll leave to the user. Jo-Jo Eumerus (talk) 09:46, 25 October 2023 (UTC)Reply[reply]
 Done Eh, did that one as well. Jo-Jo Eumerus (talk) 08:12, 29 October 2023 (UTC)Reply[reply]

CfD[edit]

There are 131 nominated categories at Wikipedia:Categories_for_discussion/Log/2023_October_26#Category:Wikipedia_XX-Class_level-n_vital_articles that are to be tagged. –LaundryPizza03 (d) 12:09, 26 October 2023 (UTC)Reply[reply]

@LaundryPizza03, done with User:Qwerfjkl/scripts/massCFD, notified 28 category creators. — Qwerfjkltalk 14:47, 26 October 2023 (UTC)Reply[reply]
...including, it seems, myself. — Qwerfjkltalk 14:48, 26 October 2023 (UTC)Reply[reply]
User:Qwerfjkl: Sorry, we had an overlap. I was experimenting with my program to see if it could move categories, on the first entry, and it did something. See here. I will leave this to experts as I've never done cat moves before and it appears there is more to it then a simple move. If this one page move messed anything up my apologies. -- GreenC 14:55, 26 October 2023 (UTC)Reply[reply]
I've moved it back until the CfD is closed — Martin (MSGJ · talk) 14:58, 26 October 2023 (UTC)Reply[reply]
Thank you. -- GreenC 15:05, 26 October 2023 (UTC)Reply[reply]

Remove param from Infobox artwork[edit]

There used to be a parameter in Template:Infobox artwork called |painting_alignment=. Could an AWB task be run to remove the instances? SWinxy (talk) 15:22, 1 November 2023 (UTC)Reply[reply]

 Doing...DreamRimmer (talk) 15:29, 1 November 2023 (UTC)Reply[reply]
@SWinxy:  DoneDreamRimmer (talk) 03:53, 2 November 2023 (UTC)Reply[reply]
Thank you!! SWinxy (talk) 03:57, 2 November 2023 (UTC)Reply[reply]

College Football over-capitalization[edit]

I did these edits to fix massive over-capitalization of gridiron football positions and headings and such, on one Cornhuskers team year, but it's clearly needed across a range of years for that team, and likely similar patterns for other teams. Would need some exploration, but the patterns are clear enough that one wouldn't want to take this on without AWB. Any takers? Dicklyon (talk) 19:13, 5 November 2023 (UTC)Reply[reply]

Leave a Reply