Jump to content

Wikipedia:AutoWikiBrowser/Tasks

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Qwerfjkl (talk | contribs) at 20:54, 21 July 2022 (Fixing mis-specified span tag color settings: editing comment (Jonesey95) Anchor [Bawl!]). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.

See also Wikipedia:WikiProject Check Wikipedia.

Afghanistan flag change post-Taliban takeover being disruptive on pre-takeover articles (need cleanup)

Hi all, Template:Country data Afghanistan was updated with Taliban's flag as the default following Afghanistan's takeover by them. But articles before takeover should not show Taliban's flag. I see Ashraf Ghani's name alongside Taliban's flag at Template:International military intervention against the Islamic State infobox, while it should use the flag of Ghani's government. There were more such articles I've come across before. If someone can do the cleanup work with AWB, that'd be great. Just add the correct year parameter at the end. Thanks! CX Zoom[he/him] (let's talk • {CX}) 08:05, 17 June 2022 (UTC)[reply]

Growin' Up

[[Growin' Up]] -> [[Growin' Up (song)|Growin' Up]] Clean up after page move. Ten Pound Hammer(What did I screw up now?) 01:07, 23 June 2022 (UTC)[reply]

@TenPoundHammer  Doing... with WPCleaner, which I enjoy using for disambiguation. GoingBatty (talk) 04:06, 23 June 2022 (UTC)[reply]
@TenPoundHammer  Done by someone else. GoingBatty (talk) 04:08, 23 June 2022 (UTC)[reply]

Loring Park

All these links need to be changed from Loring Park to Loring Park, Minneapolis CTF83! 00:35, 7 July 2022 (UTC)[reply]

@CTF83! Alt,  Done at WP:BOTREQ. ― Qwerfjkltalk 19:45, 7 July 2022 (UTC)[reply]
I think all those links point correctly to the park rather than the neighbourhood, but please feel free to fix them if I'm wrong. Certes (talk) 20:14, 7 July 2022 (UTC)[reply]

Creating a large number of date redirects in a particular format

I seek to create about 330 new redirects of the form "Nth of Month" to date articles in Category:Days of the year, e.g. 13th of March → March 13 or 21st of July → July 21, of course skipping those that are already occupied by existing pages. Consensus that this is the primary topic is likely established by Wikipedia:Redirects_for_discussion/Log/2017_November_28#9th_of_October. –LaundryPizza03 (d) 15:58, 18 July 2022 (UTC)[reply]

@LaundryPizza03, I can reuse my code from this request. I'll try to do this by tomorrow. ― Qwerfjkltalk 16:06, 18 July 2022 (UTC)[reply]
@LaundryPizza03,  Done (~262 redirects created). ― Qwerfjkltalk 21:02, 18 July 2022 (UTC)[reply]

Fixing mis-specified span tag color settings

I don't know if this is a bot request or an AWB request, but I thought I would start here. There are over 1,000 pages that use span tags with hex colors missing the # symbol. They look like <span style="color:0099FF">, but they should look like <span style="color:#0099FF"> (note the # symbol). Some of these are due to bad edits by a regex I used to employ, but there are many others.

Is there anyone here willing to sweep through these articles and add the missing # symbols? It will result in editors' color preferences for text being displayed as intended. I have been able to fix these problems semi-automatically with code like: str = str.replace(/(\<span style\=\"color:)([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])/gi, '$1\#$2'); but you may have a better regex. As far as I know, there are no valid color names expressed as words that contain six a–f characters in a row, so the above regex should be safe. – Jonesey95 (talk) 16:15, 20 July 2022 (UTC)[reply]

Of the search results, only two are in the article space. Some of the other results are actually part of a user signature, which I guess we are not going to edit (Talk:Internet_Watch_Foundation_and_Wikipedia signature of user Celarnor). The two articles can be edited manually. For the others, I am not sure. Considering they are not in the article space, should we leave them as they are? Vpab15 (talk) 16:43, 20 July 2022 (UTC)[reply]
Some of them, possibly the majority, are the result of invalid conversion of font tags (without the #, which works) to span tags (which require the # to render a color) by myself and other editors cleaning up Linter errors. In those cases, it was the original intention of the editors to display the color, so fixing the span tag is the right thing to do. In cases where the span tags has always been like this, it was clearly the editor's intent to display a color, even if it didn't work right (or maybe it used to work?). I can go through and fix them myself if necessary, but I do not have access to AWB and cannot get it due to my OS, so I thought I would ask here first. – Jonesey95 (talk) 16:59, 20 July 2022 (UTC)[reply]
You are correct, there are no valid colors. I checked. I think it's supposed to rain in the morning, so I'll take a stab, I do agree with your point that it was how it was meant to be shown. Also, you mention OS. As a mac user, may I interest you in WP:JWB instead of AWB? Happy Editing--IAmChaos 02:48, 21 July 2022 (UTC)[reply]
Thanks. I've had JWB on my to-take-a-look-at list for a while. I use AutoEd, which is good enough for most things, but it's not great for mass small edits because its workflow is a bit clunky. – Jonesey95 (talk) 04:26, 21 July 2022 (UTC)[reply]
@Jonesey95, alternatively you could try de:Benutzer:Schnark/js/bandersnatch, though it does require basic knowledge of javascript. ― Qwerfjkltalk 08:10, 21 July 2022 (UTC)[reply]
Based on your comment above I can probably assume you know JavaScript. ― Qwerfjkltalk 20:52, 21 July 2022 (UTC)[reply]
I got namespaces 0 and 1 loaded and did A lot were signatures (bc it was talkspace) User:Penyulap User:Blanchardb and User:Hansen Sebastian came up a lot I noticed, which may have been the conversions from <font> you mentioned earlier, as they were mostly older comments. I loaded just the first two namespaces due to loading times, but my final tally was Pages saved: 167; Null-edits: 2; Pages skipped: 24; Other: 0; . 26 that JWB didnt edit. I'll go back and look at them after I do the other namespaces. If anyone wants to take over the task before I get to it tonight or tomorrow - the regex I used is in a subpage of my userspace desk. Happy Editing--IAmChaos 19:13, 21 July 2022 (UTC)[reply]