Open main menu

Wikipedia:Bot requests

  (Redirected from Wikipedia:BOTREQ)

This is a page for requesting tasks to be done by bots per the bot policy. This is an appropriate place to put ideas for uncontroversial bot tasks, to get early feedback on ideas for bot tasks (controversial or not), and to seek bot operators for bot tasks. Consensus-building discussions requiring large community input (such as request for comments) should normally be held at WP:VPPROP or other relevant pages (such as a WikiProject's talk page).

You can check the "Commonly Requested Bots" box above to see if a suitable bot already exists for the task you have in mind. If you have a question about a particular bot, contact the bot operator directly via their talk page or the bot's talk page. If a bot is acting improperly, follow the guidance outlined in WP:BOTISSUE. For broader issues and general discussion about bots, see the bot noticeboard.

Before making a request, please see the list of frequently denied bots, either because they are too complicated to program, or do not have consensus from the Wikipedia community. If you are requesting that a template (such as a WikiProject banner) is added to all pages in a particular category, please be careful to check the category tree for any unwanted subcategories. It is best to give a complete list of categories that should be worked through individually, rather than one category to be analyzed recursively (see example difference). If your task involves only a handful of articles, is straightforward, and/or only needs to be done once, consider making an AWB request instead. URL changes may seem deceptively simple, however a search-replace of text within a URL is not advised due to archive URLs and other issues. A number of bots specialized for URL work can be notified for requests at WP:URLREQ.

Note to bot operators: The {{BOTREQ}} template can be used to give common responses, and make it easier to keep track of the task's current status. If you complete a request, note that you did with {{BOTREQ|done}}, and archive the request after a few days (WP:1CA is useful here).

Please add your bot requests to the bottom of this page.
Make a new request

navbox wikitable → wikitableEdit

if you compare the fan polls section on mobile vs. non-mobile you will see that the table is missing in mobile. this is because the table is using "navbox wikitable" for the class. nothing with class navbox appears on mobile :( in this particular case, the navbox class is basically superfluous. it would be amazing if we could change all the pages using navbox wikitable to use just wikitable instead to avoid empty sections on mobile. there are probably more, but this is a start. Frietjes (talk) 16:00, 24 May 2019 (UTC)

Well, a thing that is different is


Month Winner Other candidates
June Bob Others

So it's not just a matter of blindly removing "navbox", which makes it very likely to be a WP:CONTEXTBOT, so an WP:AWB run is likely best over a bot. Could be wrong though. Maybe every instance is easily replaceable (with e.g. centering styles instead). Headbomb {t · c · p · b} 17:26, 27 June 2019 (UTC)

in that case, just restrict the changes to places where it's followed by "width:100%" or "margin:[0-9]em auto". Frietjes (talk) 14:19, 4 August 2019 (UTC)
I would advocate for removal of the extra styling without replacement. Additional styling is generally less accessible. --Izno (talk) 23:00, 7 August 2019 (UTC)
I also think this navbox wikitable should be deprecated. I'm impartial to style but the current situation is simply unacceptable. --Trialpears (talk) 22:30, 8 August 2019 (UTC)

AnomieBOT for converting WikiProjects to taskforces of WP:MOLBIOEdit

Similar to request Wikipedia:Bot_requests/Archive_22#Change_from_WikiProject_Neurology_to_task_force

Hi there. I'm converting WP:MCB, WP:GEN, WP:BIOP, WP:COMBIO, WP:CELLSIG, and WP:WikiProject_RNA into taskforces of a centralised WP:WikiProject Molecular Biology (see this discussion, and page move requests); however, all of the articles under these projects now need to have their talk page banners replaced with a different one that classifies it under a task force of WP:MOLBIO. Is it possible to edit the banners for all the pages under the relevant categories to have their talk page banners replaced from {{WikiProject XYZ|class=|importance=}} to {{WikiProject Molecular Biology|class=|importance=|XYZ=yes}}, keeping the classes and importance as the existing class already existing on the talk page and merging into a single template where a page is tagged with the templates of multiple taskforces of WP:WikiProject Molecular Biology?

Thank you in in advance for any assistance! T.Shafee(Evo&Evo)talk 11:42, 15 June 2019 (UTC)

Evo, yes, it should be possible. All that is required is to convert each of the "old" banners into wrappers for the "new" banner, and then add {{subst only|auto=yes}} to the documentation. Primefac (talk) 11:51, 15 June 2019 (UTC)
@Primefac: Brilliant! Let me know if there's any additional info you'd need from me. There's also a comment here about setting up WP 1.0 bot for a {{WikiProject Molecular Biology}} template that I might need some help with. Thanks again, T.Shafee(Evo&Evo)talk 12:49, 16 June 2019 (UTC)
@Primefac: I also just noticed that there should also be a |Metabolism-pathways=yes parameter imported over from some articles tagged with the {{WPMCB}} template. I hope that doesn't complicate the bot function too much. Thanks again! T.Shafee(Evo&Evo)talk 11:19, 7 July 2019 (UTC)
Shouldn't be an issue as long as the code is added before the wrapper is subst. Primefac (talk) 15:42, 7 July 2019 (UTC)
@Primefac: Sorry to bother, I've been trying to work out how to do that site-wide subst to replace all the {{WikiProject Biophysics}} with {{WikiProject Molecular Biology|taskforce=biophysics}}, but I'm not managing to get the syntax right. See test wrapper template in my sandbox, that I've transcluded into the main sandbox as a test doesn't substitute the template as expected. Could you give an example for one of them that I can reproduce? Does it not require a bot to do it? Thanks! T.Shafee(Evo&Evo)talk 06:14, 1 August 2019 (UTC)
I think you're overthinking this. When I converted {{WikiProject A1 Grand Prix}} into a wrapper for {{WikiProject Motorsport}} I used the following:

<includeonly>{{WikiProject Motorsport |class={{{class|}}} |importance={{{importance|}}} |a1grandprix-taskforce=yes |category={{{category|}}}}}</includeonly><noinclude>This template is deprecated, please use {{t|WikiProject Motorsport}} using {{para|a1grandprix-taskforce|yes}}.</noinclude>

So if you want to change {{WikiProject Biophysics}} you would use {{WikiProject Molecular Biology|importance={{{importance|}}}|biophysics=yes}}. Adding a {{subst only|auto=yes}} on the template itself would then get it subst'd by the bot. Primefac (talk) 18:49, 1 August 2019 (UTC)
I'm also not sure that MCB is the natural place to host something like biophysics... Headbomb {t · c · p · b} 17:02, 9 August 2019 (UTC)
@Primefac: I think I see what you're saying, but I would have thought that's lead to duplicate notices on many pages (e.g. Talk:KCNE2). Part of the reason for the merge is that there's an >75% overlap between WP:MCB and WP:GEN tagged pages. When Neurology was merged into WP:MED, it seemed to require use of user:Anomie's bots. @Headbomb: The idea is to merge WP:BIOP into WP:MOLBIO rather than WP:MCB. You can see the longer discussion here. T.Shafee(Evo&Evo)talk 07:00, 16 August 2019 (UTC)
Ah, didn't realize there was that much duplication. In that case, a bot/AWB run might be better. I did one recently for a template conversion somewhere... on holiday so I don't have time for a BRFA, so you might be better off with someone else. Primefac (talk) 06:16, 17 August 2019 (UTC)

Automatically Update IUCN StatusesEdit

Good afternoon, Does anyone have a program that can carry out the menial task of updating IUCN statuses? All of these can be retrieved from the IUCN's website, and finding the information is easy, just tedious. Of course this program would have to fetch some external information, such as the current version and the species ID number, but one of these are things that require too much expertise. — Preceding unsigned comment added by AidenD (talkcontribs) 01:46, 19 June 2019 (UTC)

@AidenD: I looked into this and will say up front it is not easy. There is an IUCN API which is helpful. If we use African elephant as an example, how does one find the IUCN record? The API requires the name field to be set to loxodonta africana but this exact name/string does not exist in the Wikipedia article so that is not a reliable method. The API also accepts an IUCN taxon number (12392 for elephant) and these IUCN numbers appear to be sporadically populated in Enwiki and Wikidata. So the correct way is populate Wikidata with IUCN taxon IDs for the target species (all those with a Wikidata record). Then populate Wikidata with the IUCN status ("NT", etc) and reference URLs. Then create template(s) that are added to Speciesbox taking the IUCN ID as the argument which then display the status and reference pulled from Wikidata. The hardest part is creating a list of IUCN taxon numbers (12392) matched to the appropriate Wikidata number (Q185038). Once that list is available everything else becomes possible. -- GreenC 13:58, 21 July 2019 (UTC)
"loxodonta africana" is actually African bush elephant (not that I knew that before looking for it). --Gonnym (talk) 17:20, 26 July 2019 (UTC)
ID matching seems like a job for Mix n Match (Wikidata:Q28054658) which is a tool on Wikidata. I agree that status should be added to Wikidata if anywhere after IDs are matched. In the scenario above, I do not see utility in the template requiring the foreign ID on Wikipedia. Speciesbox would just grab the associated data from Wikidata. A local template might take the Wikidata item and retrieve the species classification, but that would be for the case of a non-infobox invocation, which I do not believe is the primary need here. --Izno (talk) 17:16, 26 July 2019 (UTC)

replace bad apostropheEdit

I frequently come across an accent mark used as an apostrophe and it drives me bonkers. The ´ accent does have uses in linguistics articles but it should never be used as an apostrophe. I'm guessing it comes from copy-pasting.

Unfortunately the Wikipedia Search tool does not work to find it and general search on Google also doesn't work (´s Would it be possible to create a bot that is sensitive this character, and eradicates this when it's used as a possessive or contraction? I also see it with an extra space. For example:

  • King´s → to King's
  • King´ s → to King's

This isn't just a cosmetic thing. The ´ is not a real apostrophe and screenreaders probably won't read it that way. Thanks. МандичкаYO 😜 22:51, 4 July 2019 (UTC)

Seems very much of a WP:CONTEXTBOT Headbomb {t · c · p · b} 22:59, 4 July 2019 (UTC)
The following search will find them: [1] -- WOSlinker (talk) 11:52, 16 July 2019 (UTC)
Depending on the language and libraries used, it also should be possible to semantically check that the word preceding the ´ is a noun —Wingedserif (talk) 23:38, 21 July 2019 (UTC)
Doesn't seem like a contextbot issue to me; just find every instance in which a string of letters is followed by the ´ character, which then is followed by a space and an "s" and another space, or followed by an "s" and a space. I've never seen this character used in properly written English in a place where an apostrophe would make sense. Nyttend (talk) 02:16, 13 August 2019 (UTC)
Nyttend I fixed 600 of these issues yesterday and found a few (about five) that I think was legitimate non-English uses. If creating a typo up to 1% of the time is acceptable error rate I'm not sure. I personally think adding it as a typo fix for AWB would be a better option. --Trialpears (talk) 09:59, 13 August 2019 (UTC)
@Wikimandia and Trialpears: this has been an AWB typo rule since October 2018, see Wikipedia talk:AutoWikiBrowser/Typos#Move "'s" rule to WP:GENFIXES?.   ~ Tom.Reding (talkdgaf)  14:43, 17 August 2019 (UTC)
Tracked in T231012.   ~ Tom.Reding (talkdgaf)  14:26, 22 August 2019 (UTC)

Pages using deprecated image syntaxEdit

Hello. I was wondering if there was a bot that could go through the backlog of Category:Pages using deprecated image syntax. I have zero bot experience, and I would rather leave it to the experts :) I don't think this falls under any of the commonly requested bots either. Thanks! --MrLinkinPark333 (talk) 17:29, 27 July 2019 (UTC)

There's roughly three types of pages in this category:
  1. Images used without any additional metadata, like |image=[[File:Example.png|thumb]]. These can be easily fixed by removing the excess markup.
  2. Images used with additional information, like |image=[[File:Example.png|thumb|175px|Logo for Example]]. This additional markup should not be removed automatically, but should instead be moved to the appropriate parameters in the template.
  3. Pages where markup is used to do something more complicated, like displaying two images side-by-side. As far as I can tell, there isn't really anything to fix here.
The other problem is that the various infobox templates are not always consistent with their parameters. Module:Infobox supports upright scaling, but not all infoboxes have been updated with the correct parameter. Some infoboxes have multiple different image fields (image, logo, seal, flag), while others alias them together into one. The Type 1 pages could be fixed pretty easily, but the Type 2 ones may have more issues requiring testing and human review. --AntiCompositeNumber (talk) 18:44, 27 July 2019 (UTC)
@AntiCompositeNumber: Hmm. That's complex. Would it be useful to go through #1 only with a bot then #2 done manually? Also, why would #3 be there in the category if nothing needs to be fixed? --MrLinkinPark333 (talk) 19:25, 27 July 2019 (UTC)
@MrLinkinPark333: Currently, Module:InfoboxImage basically says "If the image paramater starts with [[ and it isn't a thumbnail, then it's deprecated image syntax." (Thumbnails get put in their own category). As a first step, it might be a good idea to have the module categorize image parameters with multiple files differently. AntiCompositeNumber (talk) 21:19, 27 July 2019 (UTC)
Is this just a cosmetic change? If it is adding it as a default AWB fix may be a better way to fix this as that would couple it with more substantial edits. --Trialpears (talk) 19:50, 27 July 2019 (UTC)
@Trialpears: I'm just more interested in finding a way to take a chunk out of the backlog. If AWB is more suitable, feel free to point me that way :) --MrLinkinPark333 (talk) 20:12, 27 July 2019 (UTC)
MrLinkinPark333 I've been looking a bit and it seems all standard AWB fixes are only made outside of templates, so it can't just be added to Wikipedia:AutoWikiBrowser/Typos wouldn't work. I suggest asking at WT:AWB or the AWB phabricator. If the edit isn't considered cosmetic I would happily make the bot. Pinging @WOSlinker: since they created the module and can probably answer the cosmetic edit question. --Trialpears (talk) 23:03, 12 August 2019 (UTC)
I created the module and added the tracking category but the category added at the request of User:Zackmann08, see Module talk:InfoboxImage/Archive 1#Pages_using_deprecated_image_syntax -- WOSlinker (talk) 11:57, 13 August 2019 (UTC)

Fixing incorrect footnote formattingEdit

This is a bit of a cosmetic task, so perhaps it could be added when a bot is doing other work already rather than as a stand-alone operation. But I've seen lots of footnotes that violate MOS:REFPUNCT by having a space before the footnote or a by having punctuation after it. I can't immediately think of any exceptions to the rule, although there are probably some. Could a bot help with this? - Sdkb (talk) 20:21, 2 August 2019 (UTC)

This is already part of standard AWB typofixing, so they should be semi regularly fixed, but some help from the bots would always be welcome as well if it has high enough accuracy. --Trialpears (talk) 20:34, 2 August 2019 (UTC)

Stub sortingEdit

When an article has multiple stub templates, say {{X-stub}} and {{Y-stub}} and if there exists a template {{X-Y-stub}} or {{Y-X-stub}}, a bot should replace the two stub templates with the combined one. SD0001 (talk) 14:18, 17 August 2019 (UTC)

Example edit. Existing stubs tags should be removed from wherever they are and the new tag should be placed at the very end of the article with 2 blank lines preceding it per WP:STUBSPACING. SD0001 (talk) 14:26, 17 August 2019 (UTC)

SD0001, the number of permutations of name combinations seems huge. Using a brute-force method, the bot would need a list of every category on Wikipedia and then for each article, it would generate every possible permutation of combined names for each category in that article, and check each one against every category name on Wikipedia - sort of like cracking a safe by trying every possible combination. Can you think of a better way to narrow it down? -- GreenC 13:23, 22 August 2019 (UTC)

You could start with a list of templates of the form Foo-Bar-stub, check whether Foo-stub and Bar-stub both exist, and consider editing articles which use both. Beware of false positives: {{DC-stub}} plus {{Comics-stub}} denotes a comic in Washington, not necessarily a {{DC-Comics-stub}}. Certes (talk) 14:39, 22 August 2019 (UTC)
@GreenC: There are about 30,300 stub templates on Wikipedia. Store their names as strings in a hash table (not an array) so that we can search whether a given string is in the list in O(1) time (rather than O(n) time). Most programming languages have built-in support for hash tables. Strictly speaking, it's O(length of string) rather than O(1), though the lengths of strings are small enough. We could use advanced data structures like ternary search tries that can be searched even faster. But of course they are very difficult to code and the use would be justified only if we had millions of strings to search from.
Additionally, there are about 3400 single-word stub templates (eg "castle-stub") for which we'd never be looking for, and hence can be removed from the list. But again this is not necessary as efficiency of search in hash table doesn't depend on the number of items in the table.
Regarding the generation of permutations: (i) if there are two stub tags, X-stub and Y-stub, there are only two permutations: X-Y-stub and Y-X stub and its really unlikely that both are available so this is an easy case. (ii) if there are 3 stub tags: X-stub, Y-stub and Z-stub, then first check the 6 all-in-one permutations: X-Y-Z, Z-X-Y etc. If not found, search for the 6 two-in-one combinations: X-Y, Y-Z, Y-X etc. If 2 of them match, add both. If 3 of them match (very unlikely) add the page to a list for human review. (iii) if there are 4 or more stub tags: (there shouldn't be that many) ignore it and add the page to a list for human review. SD0001 (talk) 15:31, 22 August 2019 (UTC)
Ok. Any thoughts on the context problem raised by Certes with {{DC-stub}} + {{Comics-stub}} != {{DC-Comics-stub}}. -- GreenC 16:20, 22 August 2019 (UTC)
I think this would be really rare given the stringent stub type naming conventions which specifically try to avoid this sort of thing. I can't think of any other such exception even though I have been stub-sorting a lot lately. Regarding the one given, clearly DC-stub and Comics-stub won't be present together on any page. So I don't think this is an issue (unless someone finds more such exceptions). SD0001 (talk) 17:05, 22 August 2019 (UTC)
The way to go here is not by analysing stub templates, but by looking at their categories to see if they have a common subcategory. For example, an article might have {{Scotland-stub}} and {{Railstation-stub}} - the former categorises to Category:Scotland stubs, the latter to Category:Railway station stubs - but if you go deep enough in the category tree, these have a common subcategory, Category:Scotland railway station stubs for which the stub template is {{Scotland-railstation-stub}}. --Redrose64 🌹 (talk) 22:17, 22 August 2019 (UTC)
That definitely sounds ideal. But I don't think it is possible because of no one-to-one correspondence b/w stub templates and categories. Example: {{Oman-cricket-bio-stub}} categorises into both Category:Omani sportspeople stubs and Category:Asian cricket biography stubs, both of which have a lot of stuff unrelated to Oman cricket bios. SD0001 (talk) 03:11, 23 August 2019 (UTC)
That is what we call an "upmerged stub template", and pretty much all of these are dead-ends as far as further specialisation goes. There won't be, for example, any decade-specific templates like {{Oman-cricket-bio-1970s-stub}} (compare {{England-cricket-bio-1970s-stub}}). --Redrose64 🌹 (talk) 23:20, 23 August 2019 (UTC)
I see. That is great. But can you think of a way to find whether two cats have a common subcat, Redrose64? SD0001 (talk) 04:35, 26 August 2019 (UTC)
Is there any indication of how many pages have multiple stub templates? Would it be possible to create a report of the most common combinations and knock those off first? Spike 'em (talk) 20:24, 22 August 2019 (UTC)
Not all articles with multiple stub templates have the potential for refinement. For example, an article such as Cheltenham High Street Halt railway station might have {{SouthWestEngland-railstation-stub}} and {{Gloucestershire-struct-stub}}, which categorise to Category:South West England railway station stubs and Category:Gloucestershire building and structure stubs respectively - they have no common subcategory, so no further refinement may be preformed by a bot. --Redrose64 🌹 (talk) 22:17, 22 August 2019 (UTC)
BTW, just discovered that there used to be a bot long back approved for this task. That bot also did resortings based on categorisation and infoboxes (manually triggered by op for each infobox/category type, I think). SD0001 (talk) 03:15, 23 August 2019 (UTC)
Another complication templates can have multiple names ie. redirects. It might be safe to assume the template's primary name is what should be used but a database of redirect names mapped to primary template names would also be needed. -- GreenC 03:37, 26 August 2019 (UTC)
Redirects are very uncommon for stub templates. But if they do pop up, I don't think there's a problem whether we use the primary name or redirect name. SD0001 (talk) 14:59, 27 August 2019 (UTC)

Operator to take over Legobot Task 33Edit

See discussion at Wikipedia:Bots/Noticeboard#User:Legobot Request. Legoktm is no longer taking feature requests for User:Legobot (just keeping the bot alive), specifically at WP:GAN. Since Legobot runs many important tasks, it would be helpful if a new operator would be willing to take over control and maintenance of the tasks Legobot performed, either as a whole or as a subset of the task (i.e. only WP:GAN tasks). Legoktm mentioned they are happy to hand off the task(s) to another operator. Anyone interested? « Gonzo fan2007 (talk) @ 16:04, 19 August 2019 (UTC)

Gonzo fan2007, a similar request was made here this past February 6 by Mike Christie: Wikipedia:Bot requests/Archive 77#Take over GAN functions from Legobot, which also has a great deal of information about the work likely involved and a number of the known bugs. Pinging TheSandDoctor and Kees08, who were active in that discussion; the final post was from TheSandDoctor, who had been working on new code and checking the GAN database made available by Legoktm, on June 25. I believe Wugapodes has expressed some interest in further GAN-related coding (they took over the /Reports page last year), though I don't know whether they had this in mind. BlueMoonset (talk) 16:29, 19 August 2019 (UTC)
Thanks for the background discussion BlueMoonset. « Gonzo fan2007 (talk) @ 16:32, 19 August 2019 (UTC)
Looking into the existing code, I agree that the best course is probably a port from PHP to a new language so TheSandDoctor's work so far is probably a good starting point. I don't know PHP at all and the database uses SQL which I don't know, so I am probably not a great candidate for taking this task on. I'm willing to help out where I can because this is a big task for anyone, but I'm pretty limited by my lack of knowledge of the languages. Wug·a·po·des​ 18:43, 19 August 2019 (UTC)
Occasionally bug reports are posted at User talk:Legobot or User talk:Legoktm concerning user talk page notifications suggesting that a GA nom has failed whereas the reality is that it passed. These seem to be second or subsequent attempts at putting a page through GA after the first failed. Looking at some of the bot source, I find SQL code to create tables, to add rows to those tables - but little to update existing rows and nothing to delete rows that are no longer needed. --Redrose64 🌹 (talk) 22:14, 19 August 2019 (UTC)
Speaking as an end user (and not a bot operator) and as the person requesting the bot, if User:Legobot failed at WP:GAN, there would be significant disruptions to the project. Its GA work is completely taken for granted. I think that the preference would be for a new bot to take on just the GA tasks (note that Legobot has other active tasks). It would appear based on my review and a look back at past comments that this would include:
  1. Updating Wikipedia:Good article nominations after {{GAN}} has been added to an article talk page, or if a step in the review process has changed (on-hold, failed, passed, etc)
  2. Notifying nominators of new status of reviews (begin review, on-hold, failed, passed, etc)
  3. Adding {{Good article}} to promoted articles
  4. Update individual topic lists at Wikipedia:Good article nominations/Topic lists
  5. Updating User:GA bot/Stats
  6. Adding |oldid= to {{GA}} when missing (Legobot Task 18)
As previously mentioned, it would also be beneficial to fix some bugs and streamline the process. I'm not sure if it is preferable to go this way, but maybe if a bot owner wants to take this on, that we work on slowly weaning User:Legobot from GA tasks, instead of trying to completely replace it in one shot. As an example, sub-task 3, 5, and 6 are fairly straightforward items (in my limited understanding of coding) and could probably be submitted to WP:BRFA as individual tasks. That way, as individual sub-tasks are brought on-board, we (the end users) could work with the new bot owner to ensure each process is working smoothly. It would be wonderful if a naming structure like User:Good Article Bot (similar to User:FACBot) or something similar could be utilized to specialize the process. Just my input and thoughts on how to go about this. Obviously need an interested party first; I am happy ot assist with manual updating of pages and working through the new process. « Gonzo fan2007 (talk) @ 23:12, 19 August 2019 (UTC)
Before Legobot took over the tasks by taking over the code base, the bot handling the GAN page was known as GAbot, run by Chris G (who I think got the code base from someone else). I'm not sure how easy it would be to peel off some but not all of the update tasks into a new bot while leaving Legobot with the rest; someone who's looked at the code would have a better idea of how to turn off parts of the GAN code (if it can be) as the new bot is activated piece by piece. The one thing that has been long requested that isn't covered above is the ability to split topics into more subtopics. I didn't see that this was a part of the SQL database—there didn't seem to be a table there for topics and their subtopics—so perhaps if someone can take a dive into the code they can figure out how the bot makes those determinations and therefore what modifications we would need to make. Just a thought. (And believe me, Legobot's GAN work is not taken for granted; we've had a few outages over the years that have been extremely disruptive, but Legoktm has been able to patch things together.) BlueMoonset (talk) 05:19, 20 August 2019 (UTC)
Perhaps Hawkeye7 would be interested in expanding out FACbot to include GAbot functionality (depending on Sand Doctors progress etc). Kees08 (Talk) 15:31, 20 August 2019 (UTC)
I had considered it in the past. There are various technical issues here though. Like the others I am not too familiar with PHP or Python (I normally write bot code in Perl and C#) although I do know SQL well. (No deletions is a bad sign; if true it means that the database will continue expanding until we run into limits or performance problems.) The Legobot runs frequently and having another bot performing tasks could result in causing the very problems we have been discussing. Shutting it down is guaranteed to be disruptive and any full replacement is likely to be buggy for a while. (I would personally appreciate a bot updating Wikipedia:Good articles instead of a reviewer having to do it.) Hawkeye7 (discuss) 19:55, 20 August 2019 (UTC)
BlueMoonset, as long as User:Legobot is {{nobots}} compliant, we could fairly easily exclude Legobot from editing specific pages for tasks 1, 4, and 5 from the list above. Task 6 is also a separate Legobot task, so presumably this is separate coding from other GA-related tasks (and could more easily be usurped by the new bot). We could also develop mirrored pages that would allow the new bot to edit concurrently with Legobot for a certain time until all tasks are running smoothly. « Gonzo fan2007 (talk) @ 20:01, 20 August 2019 (UTC)
@BlueMoonset, Hawkeye7, TheSandDoctor, Wugapodes, Legoktm, Kees08, and Mike Christie: any additional ideas or information to add? I would be especially interested to hear from TheSandDoctor on their status, if any. « Gonzo fan2007 (talk) @ 21:01, 26 August 2019 (UTC)
Hello @Gonzo fan2007, BlueMoonset, Hawkeye7, Wugapodes, Legoktm, Kees08, and Mike Christie:. My apologies for my delayed response - I am quite busy "in the real world" at the moment unfortunately. I currently have a GitHub repo relating to this, but haven't been able to dedicate the time required, nor has DatGuy. If someone is willing to assist with this, I would be quite open to the idea of another hand to help out. Most - if not all - of the existing PHP code has been translated/updated to Python, but I have not been able to test it as of yet. It might be ready, but I simultaneously think that it needs further tests of sorts prior to filing a BRFA (thus allowing for testing). --TheSandDoctor Talk 05:25, 28 August 2019 (UTC)

──────────────────────────── @TheSandDoctor: Oh wow this is great! If all we need is to test it some I could probably do that over the next couple weeks. I'll make a pull request if I need to make changes to get it working. Wug·a·po·des​ 05:43, 28 August 2019 (UTC)

@TheSandDoctor: thanks for the update! Appreciate the work you have done so far. Let me know if you need any assistanc. « Gonzo fan2007 (talk) @ 16:07, 28 August 2019 (UTC)

Bot to clear Category:Journal articles needing infoboxesEdit

If you find {{Infobox journal}} on these pages, could you remove |needs-infobox= from {{WikiProject Academic Journals}} (and its redirects). Could run nightly/weekly/monthly too. Headbomb {t · c · p · b} 16:11, 21 August 2019 (UTC)

I wonder, would such a task be generalizable? I.e a bot that removes that parameter from other templates that have it when a page has an infobox? Jo-Jo Eumerus (talk, contributions) 17:59, 21 August 2019 (UTC)
I've been thinking the same thing and feel like using a check page where WikiProjects can add instructions such as whether they want a one time run or recurrently, if only certain infoboxes are acceptable as with academic journals and so on. I would gladly implement this task. --Trialpears (talk) 18:21, 21 August 2019 (UTC)
I'm sure there's thing that are generalizable. But there will likely be some exception as well. However, while that's in the cooking pot, the above task is straightforward and won't have issues. Headbomb {t · c · p · b} 20:05, 21 August 2019 (UTC)
It would be interesting to see how many articles have any type of infobox on them while also having |needs-infobox= in any WikiProject banner. Just to get an idea of the extent of the problem, if any. « Gonzo fan2007 (talk) @ 20:43, 21 August 2019 (UTC)
  BRFA filed I have filed a BRFA and looked at how many pages this would affect. For Category:Journal articles needing infoboxes roughly a quarter of the pages would be affected. --Trialpears (talk) 22:35, 21 August 2019 (UTC)

A Bot to update Portal's In the news sectionEdit

I would like to have a bot update this page once daily and then transfer the resulting content to the target page here. Purpose: If I directly link the daily news feed generation code to the portal main page, the portal's main page script takes too long to run as it already has heavy scripts to generate the "Did you know.." (DYK) section. Unlike DYK the news does not need to update every time the reader refreshes the portal - so it can be a static post updated once a day. So, I'd like to run the news generation code only once daily and only link the resulting output to the portal main page. If this cane be done for one portal (i.e. Portal:Asia), same/similar bot can be used for other portals as well. Arman (Talk) 09:03, 29 August 2019 (UTC)

@Armanaziz: User:JL-Bot/Project content with |content-mainpage-in-the-news may do what you need. Certes (talk) 09:39, 29 August 2019 (UTC)
@Certes: Could you please suggest how I can use this bot to specifically update this page and convert the content into flat text? Please note this page runs a template to randomly pick the desired DYK entries. Arman (Talk) 11:08, 29 August 2019 (UTC)
You could try something like {{User:JL-Bot/Project content|template = WikiProject Asia|content-mainpage-in-the-news}}. I've only used it as a DYK experiment; see the history of Portal:Bangladesh/Recognized content for an example of that. News will only appear when the bot runs, which may take several days. An alternative is to use {{Transclude selected recent additions}} in either the portal or a transcluded subpage. Basic usage is {{Transclude selected recent additions|Asia}}. If you want to exclude Asian etc., filter on |Asia%f[%A] instead of |Asia. |not= can avoid irrelevant similarly named topics like Asia Bibi and Asia (band).
Transclude selected recent additions for Asia
Hope that helps, Certes (talk) 12:07, 29 August 2019 (UTC)
@Certes: Thanks for taking time to explain. I am familiar with the use of transclusion templates and I can directly use it on the portal page. But for Asia portal I have to set the template parameter to include ~50 different country names which makes the script very slow. If I directly run two such scripts (one for DYK, one for news) on the portal main page, the page crashes. That's why I was looking for a bot which could run the news code at certain intervals and paste only the "output" as a flat text (no LUA coding) - which I can then link to the portal main page. So, my requirement is slightly different. Arman (Talk) 12:37, 29 August 2019 (UTC)
Does putting the slow-running templates on a subpage help? In other words, does transcluding the subpage just take its current content quickly or does it repeat the time-consuming work of rebuilding the subpage including calling all its templates? I'm not familiar enough with MediaWiki to be sure. Certes (talk) 12:43, 29 August 2019 (UTC)
It does not help. When main page calls the subpage template it effectively runs the code again. So, my goal was to put the flat text in a subpage and not the code itself - and I was hoping a bot could help produce the flat text from the code at regular interval than someone to have to do it manually. Arman (Talk) 13:44, 29 August 2019 (UTC)
What might help here is a general purpose substitution bot. There may already be such a thing but my quick search didn't find one, so this may really be a bot request. The idea is that Portal:Asia/News would contain text like {{Newbot|/Source}} and Portal:Asia/News/Source would contain the complex template stuff. {{Newbot}} is a dummy template producing no text. Newbot should process each page with that template, replacing the rest of the page by the substituted contents of the page named in the parameter (prepending the current page name if the parameter begins with "/"). Then Portal:Asia can transclude Portal:Asia/News quickly: it's just text; the clever template work has already been done. Any comments from the bot regulars please? Certes (talk) 14:46, 29 August 2019 (UTC)
I could make such a bot, I would just have to request toolforge access for the scheduling. It may take some time due to low BAG activity and toolforge requests though. --Trialpears (talk) 15:04, 29 August 2019 (UTC)
Thanks Trialpears. It sounds like a flexible thing to have, if it's not too powerful to get approval, and fairly simple to write. To steal an idea from JL-Bot, it's safest to wrap the output in brackets such as <--! Newbot start --> ... <--! Newbot end --> and only replace that section of the page, in case someone added other text that they want to keep. If it's going to run frequently then the template might need a |frequency= parameter for pages that don't need to be updated every time it runs. Those brackets also give a place to store the last run time, if that's not getting too complex. Certes (talk) 15:24, 29 August 2019 (UTC)
All of those features sound good and I will make sure they're included. To start with I intend on running it once a day, increasing it if desirable. --Trialpears (talk) 15:40, 29 August 2019 (UTC)
  BRFA filed --Trialpears (talk) 22:39, 30 August 2019 (UTC)
Thanks Trialpears and Certes. I was out of WP for a couple of days and really impressed to see that you have taken this ahead so far! Great going. Arman (Talk) 04:22, 1 September 2019 (UTC)

Bot to fix gazillions of formatting errors in "Cite news" templatesEdit

Recently, apparently due to some change in the way the Template:Cite news works, it is no longer permissible to italicize the publisher name in the "publisher=" parameter. There are therefore now countless articles with error messages in the footnotes saying "Italic or bold markup not allowed in: |publisher=". It would be nice, therefore, if a bot could sweep through and remove the preceding and following '' (and, I guess, ''' or ''''') formatting occurring in these "publisher=" parameters. bd2412 T 01:24, 10 September 2019 (UTC)

It is this: Category:CS1 errors: markup. 39k pages. -- GreenC 01:51, 10 September 2019 (UTC)
@BD2412: Wikipedia:Bots/Requests for approval/DannyS712 bot 61 - not just for cite news DannyS712 (talk) 01:56, 10 September 2019 (UTC)
WP:Bots/Requests for approval/Monkbot 14. --Izno (talk) 02:13, 10 September 2019 (UTC)
Good, I'm glad someone is doing this. I started doing it manually and calculated it would take about twenty years by hand. bd2412 T 02:14, 10 September 2019 (UTC)

Adminbot to automatically remove permissions for inactivityEdit

I think it's about time a bot removed permissions for inactive administrators and bureaucrats as per WP:INACTIVE and WP:BURACT. The bot would also automatically update the various lists at Wikipedia:Former Administrators and Wikipedia:Bureaucrats#Former bureaucrats. ToThAc (talk) 17:20, 12 September 2019 (UTC)

Just to clarify, this would need to be a "cratbot", not an adminbot. Also, not sure there is a strong need for this. It only happens like once a month and usually only has single digits. As an example, the most recent desysop for inactivity was on September 1 and had only two accounts. Looking back a few years, it seems to average between two and five accounts, once a month. Seems like an easier task for a crat to do by hand. « Gonzo fan2007 (talk) @ 17:57, 12 September 2019 (UTC)
I recall seeing this proposal in the past and it was rejected partly because it's not much of a workload and partly because having userrights removed by a machine is a bit jerkish. Jo-Jo Eumerus (talk, contributions) 18:10, 12 September 2019 (UTC)
Ah, found it Wikipedia:Bot requests/Archive 43#Cratbot for desysopping inactive admins? Discussion for possible idea, not actual request. Jo-Jo Eumerus (talk, contributions) 18:10, 12 September 2019 (UTC)

Complete merge of Template:WikiProject PatnaEdit

Per Wikipedia:Templates for discussion/Log/2019 September 1#Template:WikiProject Patna I would like to complete the merge of this template into {{WikiProject India}}. I did have a look at doing this with AWB but it doesn't seem to be up to the task (or at least, I'm not). There are 590 transclusions of {{WikiProject Patna}}, these can all be replaced as so:

otherwise (and there may not be many of these)

Let me know if anything else is needed. PC78 (talk) 11:20, 15 September 2019 (UTC)

PC78 I've made a substitutable version of {{WikiProject Patna}} in it's sandbox which could be used when {{WikiProject India}} isn't present. Some more testing should be done, but I believe it's functional. I also have some regex for AWB from a previous merger that should work here as well. I do not trust it unsupervised though, so make sure to properly review all edits if you decide on using it. Search for ({{WikiProject India[^}]*)((a|[^a])*)({{WikiProject Patna[^}]*\|importance=)([^}|=]*)([^}]*}}) and replace with $1|patna=yes|patna-importance=$5$2 if WP Patna is after WP India and use ({{WikiProject India[^}]*)((a|[^a])*)({{WikiProject Patna[^}]*\|importance=)([^}|=]*)([^}]*}}) and $3$5|patna=yes|patna-importance=$2 if WP Patna is before WP India. --Trialpears (talk) 12:01, 15 September 2019 (UTC)
Your regex looks good, I'm giving it a go now. Cheers! PC78 (talk) 14:20, 15 September 2019 (UTC)
PC78   Done --Trialpears (talk) 17:05, 16 September 2019 (UTC)

Tag untagged drafts with {{draft}}Edit

I'm seeing quite a few new editors with questions like these, they start articles in draftspace but can't figure out how to submit them for review because they deleted the line {{subst:AFC submission/draftnew}}<!-- Important, do not remove this line before article has been created. -->.

We have 10,000 draft articles that don't include the instructions "Click here to submit your draft for review", many of the authors just give up and the draft is then deleted in 6 months.

Could a bot maybe regularly slap {{draft}} or {{subst:AFC draft}} onto these drafts and ping the author in the edit summary, encouraging them to finish? Some experienced editors do keep stuff in draftspace so maybe we'd want to exempt creations by experienced editors.

Thjarkur (talk) 14:16, 15 September 2019 (UTC)

Þjarkur,   Needs wider discussion. I agree that this is a frequent problem among new contributors, and telling someone that the draft they thought they submitted 3 months ago wasn't in the queue is never fun. I seem to recall similar proposals facing opposition in the past, so I'd suggest you start a discussion at WT:AFC or one of the Village Pumps before anyone starts work on a task. --AntiCompositeNumber (talk) 16:17, 16 September 2019 (UTC)

List of Wikipedians by article countEdit

Hi. This page has been dormant for two years. Would it be possible to re-activate this list so it is updated daily, much like the edits list? I contacted the bot owner who used to do this some time ago, and they suggested I try here. Nothing fancy with this, same as before with a basic count of number of pages and number of redirects. Thanks. Lugnuts Fire Walk with Me 12:47, 16 September 2019 (UTC)

Should we update daily or weekly? --Kanashimi (talk) 22:34, 18 September 2019 (UTC)
@Kanashimi: ideally daily, if possible, but a weekly update would be better than nothing. Thanks. Lugnuts Fire Walk with Me 08:18, 19 September 2019 (UTC)
Hrm, is it really a (socially) good idea to have such a "ranking" of Wikipedians? Jo-Jo Eumerus (talk, contributions) 08:37, 19 September 2019 (UTC)

WikiProject Diptera talk page templatesEdit

Hi, I'm helping out the newly-created WP:WikiProject Diptera, who wants to add their template to talk pages without having to do so manually (there are very many flies). Below is a mostly recursive list of categoreis within Category:Flies. I've scanned the categories and removed those related to fly-fishing, but it appears that most are related to taxonomic groupings of flies. The talk page template is here. Let me know if I need to provide additional detail. Thanks, Enwebb (talk) 02:00, 17 September 2019 (UTC)

Enwebb, do you see the template being added without |class= values, or is the intention to import them from other existing WikiProject templates (if applicable)? Primefac (talk) 00:50, 18 September 2019 (UTC) (please do not ping on reply)
Importing existing class is fine, I think they just want some of the gadgets like article alerts and hot articles to get up and running. My second choice would be lacking the class parameter. Enwebb (talk) 02:57, 18 September 2019 (UTC)