Wikipedia:AutoWikiBrowser/Tasks

This page is for AWB'ers who can't find anything to put it to use on, or who would like to help others with this powerful tool.

Below are tasks for which a page-autoloader with various capabilities would be especially useful. That is, the people posting these tasks need the help of AWB'ers! If you have AWB, please lend a hand.

Please note that Wikipedia:Bot requests sometimes has one-time tasks which can be done easily using AWB.

See also Wikipedia:WikiProject Check Wikipedia.

Template:Infobox writerEdit

Fix all the non-nationality values for the nationality parameter e.g. United Kingdom → British, or United States → American (this could probably be applied to a few other infoboxes). ― Qwerfjkltalk 16:32, 14 September 2021 (UTC)

@Qwerfjkl: Hi there! After my current bot task has been resolved, I'll be happy to take this on. Ping me in a week if I don't remember. GoingBatty (talk) 01:47, 15 September 2021 (UTC)
Thanks! ― Qwerfjkltalk 06:05, 15 September 2021 (UTC)
@Qwerfjkl: I've made a list of similar templates with a |nationality= parameter at User:BattyBot/Nationality. Please let me know if there are any I missed. GoingBatty (talk) 20:22, 20 September 2021 (UTC)
@Qwerfjkl: Also at User:BattyBot/Nationality, I made a table of countries to be changed to nationalities. Please feel free to update the list. GoingBatty (talk) 02:35, 21 September 2021 (UTC)
@Qwerfjkl:   BRFA filed. GoingBatty (talk) 17:19, 21 September 2021 (UTC)
@GoingBatty Can you add these infoboxes? ― Qwerfjkltalk 17:37, 21 September 2021 (UTC)
@Qwerfjkl:   Added! GoingBatty (talk) 18:33, 21 September 2021 (UTC)
@GoingBatty How does it handle problems like nationality = TaiwanTaiwanese (the latter is a disambiguation page). I came across this issue while substituting flag templates and removing the flags. ― Qwerfjkltalk 19:42, 23 September 2021 (UTC)
@Qwerfjkl: It would skip the article if |nationality= contained a link. Guess I could update the bot code to always remove the country link to avoid overlinking, so in this case it would convert [[Taiwan]] to Taiwanese. GoingBatty (talk) 19:48, 23 September 2021 (UTC)
I doubt links to the nationality will be required much. ― Qwerfjkltalk 19:53, 23 September 2021 (UTC)
@Qwerfjkl: Bot trial complete - awaiting approval. GoingBatty (talk) 14:31, 20 October 2021 (UTC)

Category Talk requestEdit

The Wikimedia software has changed resulting in redlinks in notices using Template:Old cfd that I added to Category Talk pages in perhaps the past year. I have been using a type of spacing that is considered to be "wrong" since the day before yesterday, all of a sudden. Could someone use AWB to check all my Category Talk contributions and replace non-breakable spaces (U+00A0 : NO-BREAK SPACE [NBSP]) by "normal" spaces (U+0020 : SPACE [SP]).


For more detailed information see: User_talk:Marcocapelle#Old_CfD_template.


Thank you in advance. Marcocapelle (talk) 06:40, 19 September 2021 (UTC)

  Doing... Marcocapelle, I'll attempt doing it using JWB. I don't know of a away to generate input from contributions, but carefully worded search seems to find the pages with these problems. I just need to check all values of parameter |action=. —⁠andrybak (talk) 13:09, 12 October 2021 (UTC)
Example fixes: Special:Diff/1049547058, Special:Diff/1049547378. —⁠andrybak (talk) 13:10, 12 October 2021 (UTC)
  Done I have finished fixing what I could find. I checked your edits in "Category talk" namespace with "old cfd template" mentioned in edit summary up to this edit on 16 July 2020. In total, just 15 edits, half of which were for adding |section= to {{old cfd}} to improve the wikilink to "the discussion", unrelated to the red link issue. —⁠andrybak (talk) 13:54, 12 October 2021 (UTC)

Infinity (audio)Edit

Please bypass the redirect Infinity (audio), replacing it with its target Infinity Systems in wikilinks, so that the redirect can point to the disambiguation page Infinity (disambiguation) without any incoming links. There are many audio topics called "Infinity" on the disambiguation page, so this generic disambiguator is not useful -- 64.229.90.53 (talk) 22:11, 24 October 2021 (UTC)

@64.229.90.53: I recommend you get consensus for changing that redirect at WP:RFD first. While there are certainly other musical possible targets for "infinity", I find it unlikely that someone would use the parenthetical "audio" for any of the music-related subjects there (looking at the existing pages we have with that disambiguator, all but one refer to audio engineering things or companies, and the other is an obscure audiobook). eviolite (talk) 23:14, 24 October 2021 (UTC)
There's the audio production companies (two record labels, and radio network), and this current target is an audio product company; in addition to the musical recordings -- 64.229.90.53 (talk) 04:13, 25 October 2021 (UTC)
At the risk of creating a Catch-22: if "Infinity (audio)" is an ambiguous term then some of its incoming links may be for other topics. Certes (talk) 23:38, 24 October 2021 (UTC)
@Certes: none of them appear to be, at a quick scan of insource:/\[\[Infinity \(audio\)[|\]]/ (most of the "what links here" links are from {{Samsung Electronics}}). eviolite (talk) 23:59, 24 October 2021 (UTC)
ehh, I fixed the template, since those are supposed to not use redirects. I'll check to see how many are left after that, in a few hours, when the wiki databases should have been updated. I had neglected to check for template uses, since it was a redirect. -- 64.229.90.53 (talk) 04:15, 25 October 2021 (UTC)

I guess this can be closed, since I've opened an RFD per User:Eviolite

"Infinity (audio)" listed at Redirects for discussion

  A discussion is taking place to address the redirect Infinity (audio). The discussion will occur at Wikipedia:Redirects for discussion/Log/2021 October 25#Infinity (audio) until a consensus is reached, and readers of this page are welcome to contribute to the discussion. 64.229.90.53 (talk) 04:25, 25 October 2021 (UTC)

Thank you 64.229.90.53, I see the RfD has closed and I have gone through and fixed the links. eviolite (talk) 01:00, 6 November 2021 (UTC)

XFD noticesEdit

Would it be possible to add to all numbered R templates in Category:R-phrase templates {{Tfm/dated|page=R1|otherpage=R-phrase|link=Wikipedia:Templates for discussion/Log/2021 October 28#Template:R1|type=tiny|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}? (An XFD notice)? Thanks! Tom (LT) (talk) 07:37, 28 October 2021 (UTC)

  Doing... ― Qwerfjkltalk 07:48, 28 October 2021 (UTC)
  Done @Tom (LT). ― Qwerfjkltalk 08:19, 28 October 2021 (UTC)
Thanks! Tom (LT) (talk) 02:12, 29 October 2021 (UTC)

How get AWB to select certain NRHP-listed schools in Colorado?Edit

Hi there... I haven't used AWB for years, but just downloaded it and tried it without success. What am I doing wrong? What I want to do is replace the string "http://pdfhost.focus.nps.gov/docs/NRHP/Text/64500075.pdf" or similar by "https://catalog.archives.gov/id/84127661", and make some manual edits also, in perhaps 100 articles on historic schoolhouses in Colorado. I applied "Make list" to identify the 2638 or so articles within 5 recursive levels of Category:National Register of Historic Places in Colorado. I set Skip to omit articles where text Doesn't contain: "Rural School Buildings in Colorado" (after I first tried setting Skip to where text Doesn't contain: "64500075.pdf", which also failed). I did not put quote marks into the field, should i have? And it will Skip if Page doesn't exist. And then I ran it by selecting Start tab and hitting Start button. It just goes through the list without pausing on any page, while I know it should stop on some pages like "Gas Creek School" and "Coates Creek Schoolhouse". What am I missing, why doesn't it stop?

And also, I don't see how to use the replace function which is apparently under Options / Find and replace. I don't see where to enter the text string to be replaced or where to enter the text to be replaced. I would like for the full string replacement to be done on a given page, with it still allowing me to make other manual changes. Help!

Thanks in advance for any advice offered. :) --Doncram (talk) 00:10, 6 November 2021 (UTC)

Update: It partly works, I find, after I further tried two changes:

  • changing my default edit summary so that it did not use quote marks or a semi-colon. My edit summary was something like: 'fix link to MPS "Rural Schools in Colorado"; perhaps other edits too', which I changed to 'fix link to MPS Rural Schools in Colorado and perhaps other edits too'. Though I don't see how or my that would matter. And
  • changing Options to turn off the three types of automatic changes: "Auto tag", "Apply general fixes", and "Unicodify whole page" (though I thought those would just be supplemental changes to be done on a page meeting my criteria, and I believe it is supposed to be good to make those changes in the same edit as a more substantial change, like I am "supposed to" have those done.

Now it stopped on Coates Creek Schoolhouse which I just manually edited. And I let it run to find some more and did a few more edits, but then quit leaving more yet to be addressed. Why did it choose to stop on the right pages now? And still, how can i set up the find and replace? --Doncram (talk) 00:21, 6 November 2021 (UTC)

So my first concern is that you haven't figured out how to do the find and replace, because that is the heart of this task. So you want to set the check mark by "Find and replace" and then click on "Normal settings". Enter just the old URL you are trying to replace as the "Find" column on the first line. Then put the new URL on the same line in the "Replace with" column. That's it, just click OK. Once you are back at the Options tab, check the box to "Skip if no replacement". Under the Skip tab, make sure the bottom radio button for "doesn't exist" is selected, and deselect any of the checkboxes that might be selected by default - they can really only screw up your run. Hit start and use the "Skip" and "Save" buttons to make the changes as each page loads up. It should only stop on the pages that actually have the old URL on it, and you'll be able to make your own judgement whether to replace on that page or not. VanIsaac, MPLL contWpWS 00:38, 6 November 2021 (UTC)
Well, I still don't get what made it start stopping on the right pages. This edit from AWB shows that the default summary's usage of semi-colon and quotes doesn't seem to matter. And it is working when the three default Automatic changes are left on. But thank you very much for the instruction on how to do the search and replace! It is working great. :) --Doncram (talk) 01:35, 6 November 2021 (UTC)
@Doncram: Another thing you can do is go to Options > Preferences and select "Enable Logging". After you process a list, you can look at the "Logs" tab to see why AWB skipped a given article, and then tweak your settings appropriately. Happy editing! GoingBatty (talk) 16:21, 8 November 2021 (UTC)

Stub sorting requestEdit

Please replace

Thanks, ~~~~
User:1234qwer1234qwer4 (talk)
05:21, 6 November 2021 (UTC)

  Doing... ― Qwerfjkltalk 07:34, 6 November 2021 (UTC)
  Done @1234qwer1234qwer4 ― Qwerfjkltalk 08:12, 6 November 2021 (UTC)
Thanks! ~~~~
User:1234qwer1234qwer4 (talk)
15:01, 6 November 2021 (UTC)

Adding a template to some categoriesEdit

Could someone add {{Filter category by topic}} to all the subcategories of Category:Articles lacking reliable references? This will help editors to find articles of their topic of interest. – SD0001 (talk) 11:08, 11 November 2021 (UTC)

@SD0001: Could you please confirm Category:Articles lacking reliable references from November 2006 looks good before I do the rest? Thanks! GoingBatty (talk) 14:03, 11 November 2021 (UTC)
@GoingBatty Yes, looks good. Thanks. – SD0001 (talk) 14:09, 11 November 2021 (UTC)
@SD0001:   Doing... GoingBatty (talk) 14:18, 11 November 2021 (UTC)
@SD0001:   Done! GoingBatty (talk) 14:32, 11 November 2021 (UTC)
Perfect, thanks! – SD0001 (talk) 14:40, 11 November 2021 (UTC)

Add a parameterEdit

After adding the "collapsible option" template to a number of templates, I noticed that the default visibility was not automatically inferred from the template code as I assumed, but had to be manually set/copied into the |default= parameter. Would it be possible to go through these pages again and add the parameter by copying it from {{{state<includeonly>|here</includeonly>}}} in the template code (they don't appear to coincide between the templates, but this should be beside the point of this discussion)? ~~~~
User:1234qwer1234qwer4 (talk)
01:08, 13 November 2021 (UTC)

@1234qwer1234qwer4: Could you please make one edit manually and share the diff here? Thanks! GoingBatty (talk) 01:19, 13 November 2021 (UTC)
@GoingBatty:, see here. ~~~~
User:1234qwer1234qwer4 (talk)
01:24, 13 November 2021 (UTC)
  •   Doing... VanIsaac, MPLL contWpWS 01:40, 13 November 2021 (UTC)
  • And   Done. Total edits: 228. VanIsaac, MPLL contWpWS 01:56, 13 November 2021 (UTC)
    @Vanisaac You only made it worse... Rather than just replacing an empty {{collapsible option}} template, one will now have to replace {{collapsible option|default=expanded}} to correct this error. Was I that unclear? Look, I literally said that the content of the |default= parameter should be taken from {{{state<includeonly>|here</includeonly>}}} in the template code and explicitly that these are not the same between all the templates. You just added |default=expanded everywhere, even though templates like {{2007 shipwrecks}} and {{1914 shipwrecks}} (and probably the majority of this set) use the "collapsed" option. ~~~~
    User:1234qwer1234qwer4 (talk)
    13:19, 13 November 2021 (UTC)
    Also, I recommend not triggering 228 notifications of mentioning me in edit summaries next time. ~~~~
    User:1234qwer1234qwer4 (talk)
    13:37, 13 November 2021 (UTC)
    @1234qwer1234qwer4 - all cleaned up (I hope!)
    @Vanisaac - Just a gentle reminder to be careful with semi-automated editing, and make sure you're doing exactly what you're intending to & should be doing, as automation magnifies any minor mistakes very quickly. :) Thanks! firefly ( t · c ) 14:05, 13 November 2021 (UTC)
  • Too late now as this all happened while I was asleep, but I find it really useful if collapsed is within an includeonly tag or similar, so someone editing the actual template doesn't have to click [show] every time they preview a change. Certes (talk) 15:40, 13 November 2021 (UTC)
    This is already the case for all (or almost all) the templates, and (according to Firefly) appears to be the reason why the state can not be identified automatically by {{collapsible option}}. ~~~~
    User:1234qwer1234qwer4 (talk)
    15:47, 13 November 2021 (UTC)

Add qid to templateEdit

Hi! I would like to search the source of an article and capture something of the form qid\s*\=\s*(Q\d+) and then use this to replace {{Authority control}} with {{Lighthouse identifiers|qid=$1}} but I'm not sure if it's possible to use the capture in this way. Can anyone help? Thanks — Martin (MSGJ · talk) 20:51, 20 November 2021 (UTC)

@MSGJ: Could you please give us an example article? Thanks! GoingBatty (talk) 23:09, 21 November 2021 (UTC)
Yes, I will be running through Category:Pages using infobox lighthouse with custom Wikidata item doing edits like this. Thanks — Martin (MSGJ · talk) 08:14, 22 November 2021 (UTC)
And then a little more ambitiously [1] — Martin (MSGJ · talk) 08:17, 22 November 2021 (UTC)
Could you also provide a list of articles, maybe by linking to some categories? Thanks. –Novem Linguae (talk) 08:25, 22 November 2021 (UTC)
I did in my post above — Martin (MSGJ · talk) 10:58, 22 November 2021 (UTC)
Ah, I missed the cat, I only saw the examples. My bad! –Novem Linguae (talk) 11:27, 22 November 2021 (UTC)
@MSGJ: I made the change to Fanad in this edit by adding a Find and Replace rule: (\| *qid *\= *)(Q\d+)(.*?)\{\{authority control\}\}$1$2$3{{Lighthouse identifiers | qid2=$2}} with the Regex and SingleLine boxes checked. However, if you click "Edit source" in Wikipedia on Coquet Island or Fanad, there's an error message at the bottom of the page stating Preview warning: Page using Template:Authority control with "extralist", please move this to Wikidata if possible. Hope this helps, and happy editing! GoingBatty (talk) 15:49, 22 November 2021 (UTC)
Thanks GoingBatty. I didn't think of using three capture groups like that! And you happen to know what produces the warning on preview, because I don't think that's in Module:Authority control — Martin (MSGJ · talk) 15:51, 22 November 2021 (UTC)
@MSGJ: That's from Module:Check for unknown parameters:
{{#invoke:Check for unknown parameters|check|arts|state|ignoreblank=1|showblankpositional=1|unknown=[[Category:Pages using authority control with parameters|_VALUE_]]|preview=Page using [[Template:Authority control]] with "_VALUE_", please move this to Wikidata if possible}}
 ― Qwerfjkltalk 17:24, 22 November 2021 (UTC)
Got it, thanks — Martin (MSGJ · talk) 21:18, 22 November 2021 (UTC)

The auto-generated summary is useless in this case because it is basically replacing the whole page with a slightly different version of the whole page and it obviously can't fit that into the edit summary. Is there any way I can stop it displaying the auto-generated bit? — Martin (MSGJ · talk) 21:38, 22 November 2021 (UTC)

@MSGJ: Two solutions:
  1. Add the rule to the "Normal settings" and uncheck the "Add replacements to edit summary", or
  2. Add the rule to "Advanced settings", because none of those rules are added to the edit summary.
Happy editing! GoingBatty (talk) 06:36, 23 November 2021 (UTC)

Remove Amazon ref codes for a userEdit

search. Any string /ntt_dp_epwbk_0 in these 56 pages should be removed. It is the Amazon referral code for one of our editors, I think. -- GreenC 07:45, 23 November 2021 (UTC)

  Doing... @GreenC: - Google seems to say this parameter is for the referring domain, rather than a referral code? --Jack Frost (talk) 07:50, 23 November 2021 (UTC)
Oh I see, didn't know. Probably no harm to leave it then. Thanks for checking. -- GreenC 08:10, 23 November 2021 (UTC)
  Resolved - No worries, I've left it for now.   --Jack Frost (talk) 09:18, 23 November 2021 (UTC)

Inside Soap AwardsEdit

A large number of links to the Inside Soap Awards currently lack italicisation in them; Inside Soap needs to be italicised using piping per MOS:ITALICS since it's a magazine/journal; would this be a change possible for an AWB user to perform? – DarkGlow • 20:56, 23 November 2021 (UTC)

  Doing... ― Qwerfjkltalk 17:52, 24 November 2021 (UTC)
@Qwerfjkl: Thanks for trying to help, but a lot of your edits have added links to the inside of the link, meaning that the links don't work. See this diff as an example. – DarkGlow • 17:56, 24 November 2021 (UTC)
Yes, I realised that immediately and reverted them. ― Qwerfjkltalk 18:01, 24 November 2021 (UTC)
  Not done sorry, this is trickier than I initially thought. I leave this for someone else to do. ― Qwerfjkltalk 18:22, 24 November 2021 (UTC)
  Doing...Novem Linguae (talk) 21:57, 24 November 2021 (UTC)
  Done. Hello DarkGlow. I think I got all the wikilinks. I did not do the non-wikilinks since that was not requested and there's around 500. Here's the search query for non-wikilinks. Let me know if I missed any wikilinks, or if you want us to do the non-wikilinks. –Novem Linguae (talk) 23:31, 24 November 2021 (UTC)
@Novem Linguae: Thank you so much! Doing the non-wikilinks would also be of great help if you had the time.  DarkGlow • 23:35, 24 November 2021 (UTC)
@DarkGlow. Any idea what the MOS says/what I should do about italics in the reflist? Example page: Elisabeth Dermot Walsh. There's around 8 references with Inside Soap in the article title parameter of the cite. Should that be italicized? –Novem Linguae (talk) 14:26, 26 November 2021 (UTC)
@Novem Linguae: There is actually no mention of italicising works within the citation titles within the MOS; I too have wondered about this before. I'm going to bring it up on the WP:TEAHOUSE in case there's something I've missed. – DarkGlow • 16:46, 26 November 2021 (UTC)
@Novem Linguae: Got a reply; based on there being no MOS or dictation on the refs, I'd say it's best to italicise them.  DarkGlow • 20:22, 26 November 2021 (UTC)