To run a
bot on the English Wikipedia, you must first get it
approved. Follow the instructions below to add a request. If you are not familiar with programming consider
asking someone else to run a bot for you.
If your task could be controversial (e.g. most bots making non-maintenance edits to articles and most bots posting messages on user talk pages), seek consensus for the task. Common places to start include
WP:Village pump (proposals) and the talk pages of the relevant policies, guidelines, templates, and/or WikiProjects. Link to this discussion in your request for approval.
You will need to create an account for your bot if you haven't already done so. Click
here when logged in to create the account, linking it to yours. (If you do not create the bot account while logged in, it is likely to be blocked as a possible
sockpuppet or unauthorised bot until you verify ownership)
Create a userpage for your bot, linking to your userpage (this is commonly done using the {{bot}} template) and describing its functions. You may also include an '
emergency shutoff button'.
II
Filing the application
easy-brfa.js can be used for quickly filing BRFAs. It checks for a bunch of filing mistakes automatically! It's recommended for experienced bot operators, but the script can be used by anyone.
Enter your bot's user name in the box below and click the button. If this is a request for an additional task, put a task number as well (e.g. BotName 2).
Complete the questions on the resulting page and save it.
Your request must now be added to the correct section of the main approvals page:
Click here and add {{BRFA}} to the top of the list, directly below the comment line.
For an additional task request: use {{
BRFA|bot name|task number|Open}}
III
During the approvals process
During the process, an
approvals group member may approve a trial for your bot (typically after allowing time for community input), and
AnomieBOT will move the request to
this section.
Run the bot for the specified number of edits/time period, then add {{Bot trial complete}} to the request page. It helps if you also link to the bot's contributions, and comment on any errors that may have occurred.
AnomieBOT will move the request to the
'trial complete' section by moving the {{BRFA}} template that applies to your bot
If you feel that your request is being overlooked (no BAG attention for ~1 week) you can add {{BAG assistance needed}} to the page. However, please do not use it after every comment!
At any time during the approvals process, you may withdraw your request by adding {{BotWithdrawn}} to your bot's approval page.
IV
After the approvals process
After the trial edits have been reviewed and enough time has passed for any more discussion, a BAG member will approve or deny the request appropriately.
For approved requests: The request will be listed
here. If necessary, a bureaucrat will flag the bot within a couple of days and you can then run the task fully (it's best to wait for the flag, to avoid cluttering recent changes). If the bot already has a flag, or is to run without one, you may start the task when ready.
For denied/expired/withdrawn requests: The request will be listed at the
bottom of the main BRFA page in the relevant section.
Function details: I already have approval for running my bot to add image maps to infoboxes of Indian state legislative assembly constituency pages. I would like to add constituency numbers as well, which are listed in the filenames for the image maps. These numbers are obtained from Election Commission of India (must have an Indian IP address to access). My bot loops through all the pages in a given category where {{Infobox Indian constituency }} is present. Where there is already a constituency number the page would be skipped, just as it is skipped if there is already an image in the image_map section. Otherwise the constituency number would be added preserving infobox formatting (if any). This is in addition to adding the map in the same manner. This is editing pages which are not generally sufficiently important to have the Bots template.
Discussion
(not-BAG) if the page already has a value in the relevant field, will the bot log/change it if it doesn't match the value produced by the map? This is probably worth trying to do.
Mdann52 (
talk)
18:05, 28 June 2024 (UTC)reply
Estimated number of pages affected: up to 20000 - Seems to be a real mix between bare references and ref tags, so estimating this high, but expecting to be less
Function details: The bot will replace bare URL links in the | report = parameter in {{Football box}} with a bare reference tag, this is per discussion on BOTREQ and the relevant WikiProject. One time AWB run with genfixes. Handles both bare links and links with titles.
Discussion
I know I know what I'm reading above, but it's not parsing properly in my head. Could you please give an example of the type of edit the bot will be making?
Primefac (
talk)
15:27, 27 June 2024 (UTC)reply
This might be a dumb question, but if every page indicating that it is missing coords is already on Wikipedia, why do we have this template? Why not just make it a wrapper/redirect to {{coord}}? I know that
MSGJ asked for this, and I trust their judgment, but this seems like a lot of work if it's that trivial of an issue.
Primefac (
talk)
14:26, 7 February 2024 (UTC)reply
Do you mean that if coordinates are on Wikidata then we can just change the behaviour of {{coord missing}} so that it uses those coordinates instead of populating the maintenance category? Yes, that could be possible. The only disadvantages I can think of:
It will still say "coord missing" in the wikicode which could be misleading
The template may not be placed in the usual place (e.g. at the top) that the coord template is usually placed.
I'd be happy to support this, with one proviso, that the {{coord}} template be changed so that transclusion from Wikidata was gated via a "source=wikidata" parameter, so that it was clear on the enwiki side why the edit was made, and where the coordinates were being pulled from. So {{
coord missing|Name of region}} would become {{
coord|source=wikidata|display=title}}. —
The Anome (
talk)
17:02, 7 February 2024 (UTC)reply
That parameter is not required by the template, so are you just putting that in for explanatory purposes and the template will just ignore it? — Martin (
MSGJ ·
talk)
17:07, 7 February 2024 (UTC)reply
Putting it there for explanatory and tracking purposes, so we can see how it got there and why. Right now, the template should ignore it, but might also be useful to let us add extra semantics to {{coord}}. For example: right now, if you add {{
coord|display=title}} to an article that doesn't have coordinates on Wikidata, it blows up in an uninformative and mystifying way. Having this extra parameter might let the error message be improved, and also let such erroneous articles be put in a tracking category.
From my viewpoint as a maintainer of the {{coord missing}} ecosystem, the more tracking metadata we have, the better. I'm committed to a long-term transition to Wikidata as the master source of geodata, but it's going to be a long process, and the more we can smooth the transition by having backward and forward compatibility during the transition process, the better. —
The Anome (
talk)
17:09, 7 February 2024 (UTC)reply
Thanks. I'm glad you're stepping up for this; ecosystems made out of multiple single-purpose bots that use wikitext, templates and categories for orchestration are generally more robust that those which rely on complex multi-purpose bots. —
The Anome (
talk)
17:30, 7 February 2024 (UTC)reply
Thanks all, I noticed the lack of "where is this data coming from" earlier but got distracted and never came back to express my concern; this seems to deal with the issue in a suitable manner.
Primefac (
talk)
21:07, 7 February 2024 (UTC)reply
@
The Anome and
MSGJ: If it's the template deciding when it pulls data from WikiData (presumably when no parameters are supplied and data is available on WD), then wouldn't it make sense for the template/module to add things into a tracking cat, rather than it be a parameter. Because the parameter might not be accurate as it's not the source of truth, right? e.g.:
One could write {{
Coord|57|18|22|N|4|27|32|W|source=wikidata}}, so the actual data isn't shown via WD but the parameter is still there
One could write {{
Coord}}, and the actual data is from WD but the source parameter hasn't been supplied, so is not in a tracking cat
In India, elections are held in 5-6 states every year. As the elections approach or conclude, the ECI moves data from previous elections to this subdomain. This means that many URLs will become invalid after each year's elections. –
DreamRimmer (talk)
22:19, 27 May 2024 (UTC)reply
Apologies if this is coming across as dense, just want to make sure I'm on the same page. Let's arbitrarily say that there's an election in July 2024, and the URL for those pages starts with https://eci.gov.in/ since it's a "recent election". At what point will that URL get archived to the https://old.eci.gov.in/ prefix? If it is archived after the subsequent election, why not just update the URL with the new election information along with the data it represents?
Primefac (
talk)
15:00, 6 June 2024 (UTC)reply
The problem is that I don't know when ECI moves older election results to the old.eci URL. The recent elections, held in November 2023 in
six states, were six months ago. So far, the ECI has moved three sets of election data to the old.eci domain. This suggests that they archive election data within six to ten months. For now, we can fix all these broken links, but we might need to do this again for future elections. If the BRFA folks think it's unnecessary to do this regularly (every six months), it's fine to handle it once. I'll try to submit a new BRFA in the future, and we can continue regularly if needed. –
DreamRimmer (talk)
14:01, 7 June 2024 (UTC)reply
Previous discussion
Wikipedia:Link_rot/URL_change_requests#ECI_-_Election_Commission_of_India. Geoblocking is preventing outside-India bots and DreamRimmer has India IP access. DreamRimmer, to caution, there are many non-obvious problems that can arise when operating on URLs. Probably the biggest is archive URLs you don't want to modify. This PCRE regex should capture only non-archive URLs (untested):
Also verify the new URL is working before switching, do a header check, don't assume, websites always have error rates some higher than others. Other issues might arise, most problems will show up during the first 100 or so edits. Common trouble points are |url-status=, {{
webarchive}} and {{
dead link}}. Also links that are square and bare. It might too difficult to get all these exactly right, if you can change the main |url= and square URLs and verify the new URL works, that will go a long way! --
GreenC15:51, 8 June 2024 (UTC)reply
Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Let's see how things get on.
Primefac (
talk)
15:25, 27 June 2024 (UTC)reply
I'm currently on mobile, but doesn't MusikBOT do that task? Or some other bot? While I was active at NPP, I think we had automated the chart somehow. On mobile, I could find only
this BRfA. Maybe we should ask
MusikAnimal in case
DreamRimmer hasn't spent a lot of time on programming. —usernamekiran
(talk)05:45, 19 June 2024 (UTC)reply
Thanks for the ping. Indeed,
NPPChart and the similar
CategoryCounter tasks are not very useful now that graphs are not a thing. Which reminds me, I probably should have looked into disabling those tasks some time ago! @
DreamRimmer Before I do so, is it any easier for your bot to go off of the JSON pages MusikBot populates (
hourly,
daily,
weekly and
monthly)? I'm happy to keep it running if it helps, but the multi-bot dependency is probably best avoided. — MusikAnimaltalk05:23, 20 June 2024 (UTC)reply
Approved for trial (60 edits or 30 days, whichever happens first). Please provide a link to the relevant contributions and/or diffs when the trial is complete.Primefac (
talk) 15:18, 27 June 2024 (UTC) numbers updated.
Primefac (
talk)
16:36, 28 June 2024 (UTC)reply
@
Primefac, Thanks for approving the trial. Could you please let me know how many times this month I'm allowed to run the script? I'd like to run it every two days during this trial period to check for any potianal issues with the graph data or file uploads. –
DreamRimmer (talk)
16:12, 28 June 2024 (UTC)reply
Function overview: Automatically mark redirects created by
Wikipedia:Page moversas part of a page move as "patrolled" in the new page patrol / page curation system
Function details: The code will be added to my current redirect patrolling bot rules (see
User:DannyS712 bot III/rules for the current rules) once I write it. You can see the implementation I intend to use is to patrol all redirects based on the query below.
If possible, I'd like to request speedy approval and/or a time-based trial, so that I don't need to add a whole bunch of logic to the bot to count how many redirects have already been patrolled in the trial.
Query to run
SELECT
page_id AS 'pageid',
page_title AS 'title',
ptrpt_value AS 'target',
actor_name AS 'creator'
FROM
page
JOIN pagetriage_page ON page_id = ptrp_page_id
JOIN pagetriage_page_tags ON ptrp_page_id = ptrpt_page_id
JOIN revision rv ON page_latest = rev_id
JOIN actor ON rev_actor = actor_id
JOIN user_groups ON actor_user = ug_user
WHERE
ptrp_reviewed = 0
AND ptrpt_tag_id = 9 # Snippet
AND page_namespace = 0
AND page_is_redirect = 1
AND EXISTS (
# Only 1 revision based on rev_count page triage tag
SELECT 1
FROM pagetriage_page_tags tags2
WHERE tags2.ptrpt_page_id = page_id
AND tags2.ptrpt_tag_id = 7
AND tags2.ptrpt_value = 1
)
AND EXISTS (
# Move log from the same time by the same person
SELECT 1
FROM logging_logindex lgl2
WHERE log_namespace = page_namespace
AND log_title = page_title
AND log_timestamp = rev_timestamp
AND log_actor = rev_actor
AND log_type = 'move'
AND log_action = 'move'
)
AND ug_group = 'extendedmover'
LIMIT 100;
Discussion
Approved for trial (100 edits or 14 days, whichever happens first). Please provide a link to the relevant contributions and/or diffs when the trial is complete.ProcrastinatingReader (
talk) 10:58, 9 May 2024 (UTC) count updated.
Primefac (
talk)
17:03, 29 June 2024 (UTC)reply
@
ProcrastinatingReader the bot reports to
User:DannyS712 bot III/Redirects.json every 15 minutes with the redirects that it patrols and why - a 14 day trial will be 1344 entries to scan through, and I would expect that almost all of the relevant entries would be on the first run (for any existing backlog) - would a shorter trial be okay? Like a day (or even less)? --
DannyS712 (
talk)
16:13, 9 May 2024 (UTC)reply
Is there a reason that a single day trial (as requested by Danny) would be a Bad Thing? Of course, I am not a bot op, so there might be something I am unaware of :) HouseBlaster (
talk · he/they)
22:39, 29 June 2024 (UTC)reply
I'm also wondering that - also the "whichever happens first" means I would still need to add some logic to count how many redirects have been patrolled in the trial already --
DannyS712 (
talk)
12:18, 1 July 2024 (UTC)reply
Time filed: 03:19, Saturday, February 17, 2024 (
UTC)
Function overview: Automatically populate sandboxes for modules listing disambiguation templates, set index templates or soft redirect templates; and if necessary issue edit requests to update the main modules.
The bot uses the following algorithm. This has not changed since
task 1.
The bot constructs a list of disambiguation templates, set index templates or soft redirect templates. The list includes template redirects. It does this by iterating through all templates in a specific category (the -cat option). Non-templates are ignored, as are templates in the bot's exclusion list (the -exclude option). It then retrieves redirects for all of these templates.
It formats the list of templates and template redirects as a Lua table, and saves the result in a module sandbox (the -data-page-sandbox option). Saving is skipped if the module's content would not change. You can see sample output from the bot
here.
If the sandbox module was updated, and if its new content is different from that of the main module (the -data-page option), then the bot adds an edit request to update the main module to the relevant talk page (the -data-talk-page option). There is a sample edit request
here.
The bot will be used to update the following modules:
Approved for trial (one-time run). Please provide a link to the relevant contributions and/or diffs when the trial is complete. –
SD0001 (
talk)
05:58, 17 February 2024 (UTC)reply
Time filed: 00:14, Wednesday, June 14, 2023 (
UTC)
Function overview: This task checks the
Top 25 Report page frequently to see if the current report has updated. If it was updated, then it will go through all pages in the new report and add or update the
Template:Top 25 Report template on their talk pages.
Function details: This task first checks the page
Wikipedia:Top 25 Report to see if the transcluded link was modified. (This should mean that the report was updated.) If it has, then it uses the first revision of the transcluded page, which is always a basic list, to get a list of article talk pages to modify. It then goes through each talk page, updating the
Template:Top 25 Report template if it exists and adding it if not. As for exclusion compliance, I have not added that feature in yet.
Additionally, some reports (including the one for last week) are finished late, and do not get added until later on. I wanted to ensure that the pages on the report get the template on their talk page. If the next report is done on time, then the maintainers of the report will replace the transclusion to the late report with the new one less than a week after the old report replaced the one before it. I agree that twice a day was a bit too excessive. Daily should be fine. Capsulecap (
talk •
contribs)14:28, 14 June 2023 (UTC)reply
If that happens, then there will be no difference from if it was featured twice with more than a four month gap. There is nothing that says to do anything different for pages on T25 which are featured multiple times in a small timespan, and pages like
Talk:ChatGPT feature multiple such examples. Capsulecap (
talk •
contribs)23:56, 21 June 2023 (UTC)reply
Approved for trial (1 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. I'm trying to wrap my head around what's this bot supposed to do exactly, so I'm going to approve it for a one-time run of 1 day. This should give me (and perhaps others) a better idea of what this is about. Headbomb {
t ·
c ·
p ·
b}17:34, 2 July 2023 (UTC)reply
@
Headbomb: Although I did a trial run, the bot made test edits with numerous errors. I have fixed the code causing these issues, and will (with permission) restart the trial when the next report comes in. Capsulecap (
talk •
contribs)19:51, 3 July 2023 (UTC)reply
See edits 4 through 29. Note that the newest three edits were a test run for a fix to something which happened in
Talk:Elemental (2023 film), and that many incorrect edits were caused by other editors modifying talk pages to add the template before the test run was done. Although the bot will not add redundant templates assuming that nobody adds the top 25 placement before it, I am considering adding redundancy protection. One problem — the one on the page about the Titan submarine incident — was one I didn't think of, as the talk page was moved with the main page, causing the top 25 report template to be placed on a redirect instead of the actual talk page. This is a problem I am working on fixing, as I have noticed that "current events" pages that show up on the report often frequently get moved. The bot also ended up creating the page "Talk:Errible things in Russia, the North Atlantic and HBO have the most attention this week.", but I fixed the source issue and tagged the page for CSD. few of the edits are fine, and most would be fine if there was redundancy protection or if the top 25 templates didn't already have the week in there. One question, though — since the bot will run daily, and people wouldn't need to modify top 25 templates anymore — should I implement redundancy protection? Capsulecap (
talk •
contribs)02:46, 4 July 2023 (UTC)reply
"Should I implement redundancy protection" I would say that's a good idea, regardless of how often it comes into play. Headbomb {
t ·
c ·
p ·
b}02:52, 4 July 2023 (UTC)reply
I just finished implementing the redundancy protection along with the redirect traversal stuff. The bot should work just fine now. Do I have to redo the trial? Capsulecap (
talk •
contribs)04:35, 4 July 2023 (UTC)reply
Trial complete.See 21 most recent contributions. Out of the 25 pages in the June 25th to July 1st edition, 21 pages were correctly edited, two pages (Talk:Money in the Bank (2023) and Talk:Titan submersible implosion) were not edited because of unexpected and likely erroneous formatting in the report's first revision (a space was in place of the usual tab after those two pages' titles), and two pages were not edited as they already had this week in their templates. For context on those two pages which didn't get the template on accident, the first revision of the report is always an imported set of tab delimited data — in this case, spaces were in place of tabs for the names of those two articles. The bot created two new talk pages on accident, which I quickly tagged for CSD. Capsulecap (
talk •
contribs)05:48, 7 July 2023 (UTC)reply
Approved for extended trial (25 edits or 7 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. One week's worth, or 25 edits, whichever you need. Headbomb {
t ·
c ·
p ·
b}17:16, 7 July 2023 (UTC)reply
Trial complete. See
See 25 most recent contributions. This time, I verified that all edits the bot would make would be correct on a script that had editing commented out. They were all good edits, so I ran the full script. All 25 pages on the report had the template added or changed on their talk pages. Capsulecap (
talk •
contribs)01:57, 15 July 2023 (UTC)reply
Most seemed fine, but there was
this that stood out.
I noticed that and didn't pay much attention to it as it was merely cosmetic. Since that was considered problematic, I'll get to fixing that and keeping the collapse as the last edit. Capsulecap (
talk •
contribs)14:57, 21 July 2023 (UTC)reply
Well... the collapsed stuff is handled correctly, but now it's inconsistent the other way around. It should list the ranks when they're there, or omit them when they're not.
I think it's a good idea to retroactively add the rankings to the templates, but I'm not sure of where to obtain consensus for that, and it would either require a bot task or lots of manual work. The other way you listed is probably easier, but causes inconsistency between pages. Something else I thought of is a Lua module that automatically grabs the placements, but I'm not sure if such a thing is supported. Capsulecap (
talk •
contribs)20:30, 21 July 2023 (UTC)reply
What if it deleted what was there first, then re-added the template with all dates and ranks? In the same edit that is. Headbomb {
t ·
c ·
p ·
b}20:46, 21 July 2023 (UTC)reply
It could work, but I think I would have to submit a separate bot task for that. A separate (and much simpler) approach would be to add a "ranks" parameter that does nothing to the bot category. If set to yes, then the bot will add ranks when it updates the report. Otherwise or if unset, the bot will only add the date. This maintains consistency within talk pages, but not between talk pages; the latter would require consensus strongly towards either using ranks or not. Capsulecap (
talk •
contribs)21:03, 21 July 2023 (UTC)reply
Approved for extended trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Indeed, consistency within talk pages is usually a lesser threshold to clear. I'm giving you trial for that (make sure to include a mix of both types of edits), but if you want to have that (should we always rank things) discussion first, you can also wait for consensus to emerge before trialing. Headbomb {
t ·
c ·
p ·
b}21:11, 21 July 2023 (UTC)reply
Yes. As I said a long time ago, I wasn't really maintaining activity onwiki or paying attention to this page. I've decided to come back to wikipedia at some point in the near future (within 1-2 months) but I can add the features to the project. Thanks for reaching out. Capsulecap (
talk •
contribs)22:27, 5 January 2024 (UTC)reply
@
Primefac: I've added support for that ranks attribute, as is seen in the
5 most recent bot edits, all of which are to my test pages. I've also created support for converting preexisting top25 templates of the alternate form into regular form top 25s, and made it so top 25 report templates longer than 800 bytes are collapsed. I will test the bot once the report is switched to the current week, which should be on Saturday or Sunday. Capsulecap (
talk •
contribs)01:34, 6 January 2024 (UTC)reply
@
Primefac: Status: Apparently what I said above was wrong. The bot works fine on the average page but I forgot to put the ranks parameter on new templates. That has since been fixed. However, there are several larger problems that I discovered on this run — the bot broke another bot's template that was split over two lines (how rude of it!), and the entries in the report were changed from the first entry, necessitating me to delete templates from two talk pages. For some reason it also ignored the page
Franz Beckenbauer in the first revision, but that shouldn't be a problem once I manage to switch over to using the newest revision with tables. Also created a list at
User:CapsuleBot/Todo. Capsulecap (
talk •
contribs)02:36, 20 January 2024 (UTC)reply
Function details: Go through
Category:Unassessed articles (only deals with articles already tagged as belonging to a project). If an unassessed article is rated as a stub by ORES, tag the article as a stub.
Example
Discussion
Note: This bot appears to have edited since this BRFA was filed. Bots may not edit outside their own or their operator's userspace unless approved or approved for trial.
AnomieBOT⚡00:10, 28 March 2023 (UTC)reply
The Bot run only affects unassessed articles rated as stubs by
mw:ORES. The ORES ratings for stubs are very reliable (some false negatives – which wouldn't be touched under this proposal – but no false positives).
Hawkeye7(discuss)00:03, 31 March 2023 (UTC)reply
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Sounds reasonable as ORES is usually good for assessing stub articles as such. –
SD0001 (
talk)
11:41, 1 April 2023 (UTC)reply
Comment: Some behavior I found interesting is that the bot is reverting start-class classifications already assigned by a human editor, and overriding those with stub-class.
[3] and
[4]EggRoll97(
talk) 03:28, 18 May 2023 (UTC)reply
The question is: what should be happening? The article were flagged because some of the projects were not assessed. Should the Bot (1) assess the unassessed ones as stubs and ignore the assessed ones or (2) align the unassessed ones with the ones that are assessed?
Hawkeye7(discuss)04:21, 18 May 2023 (UTC)reply
Per recent consensus assessments should be for an entire article, not per WikiProject. The bot should amend the template to use the article wide code. If several projects have different assessments for an article it should leave it alone.
Frostly (
talk)
05:03, 18 May 2023 (UTC)reply
@
Hawkeye7: Courtesy ping, I've manually fixed up the edits where the bot replaced an assessment by a human editor. 6 edits total to be fixed out of 52 total edits. EggRoll97(
talk) 07:16, 18 May 2023 (UTC)reply
{{BAG assistance needed}} This has been waiting for over 2 months since the end of the trial, and over 4 months since the creation of the request. Given the concerns expressed that the bot operator has since fixed, an extended trial may be a good idea here.
EggRoll97(
talk) 05:19, 8 August 2023 (UTC)reply
Approved for extended trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. –
SD0001 (
talk)
19:10, 15 October 2023 (UTC)reply
Yes. I wrote the bot using my C# API, and due to a necessary upgrade here, my dotnet environment got ahead of the one on the grid. I could neither build locally and run on the grid nor on build on the grid. (I could have run the trial locally but would not have been able to deploy to production.) There is currently a push to move bots onto Kubernetes containers, but there was no dotnet build pack available. The heroes on Toolforge have now provided one for dotnet, and I will be testing it when I return from vacation next week. If all goes well I will finally be able to deploy the bot and run the trial at last. See
phab:T311466 for details.
Hawkeye7(discuss)22:54, 31 December 2023 (UTC)reply
A user has requested the attention of the operator. Once the operator has seen this message and replied, please deactivate this tag. (user notified)
Primefac (
talk)
20:10, 18 February 2024 (UTC)reply
Function details: Using the
AmputatorBot API, replaces AMP links with canonical equivalents. This task runs on all pages with citation templates which have URL parameters (e.g. {{cite news}}, {{cite web}}, etc).
Discussion
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.Primefac (
talk)
10:27, 8 March 2023 (UTC)reply
There's been a few issues with the API that have been difficult to tackle; I think pivoting to self-hosting the API backend on Toolforge is a good solution (working on that this month). —
Frostly (
talk)
22:41, 21 February 2024 (UTC)reply
Bots that have completed the trial period Information
This task number might be reused by me for future mass-fixing of syntax errors. As a straightforward operation, I'd like to see approval for future mass-message syntax error fixing, if possible.
Discussion
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. For the record, I am not viewing this as anything other than fixing this singular MassMessage issue, as it is the very first task for this bot.
Primefac (
talk)
15:21, 27 June 2024 (UTC)reply
Function details: The bot will initally remove all instances of {{FMQ}}/{{AMQ}} following TfD, updating those and the templates that currently transclude them. It will query the new FCC public API, and if the callsign has a FCC Facility ID it will update the template and update the relevant Wikidata entry (seperate BRFA filed over there). If the facility ID is not found, then it will remove the template (this will largely affect Mexican and Canadian stations, which have been removed from the new database).
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Please do 25 for each template.
Primefac (
talk)
15:19, 27 June 2024 (UTC)reply
Trial complete.50 edits done. There may be more than 25 of each, as some pages use both templates (such as
this edit), and other pages were caught as they used templates that link to those two
Few issues encountered I want to flag up:
this edit - was due to a regex issue in my code, now fixed. Bot reran on page,
here
A number of stations (callsign represented by [A-Z][0-9]{3}[A-Z]{2}) are present in FCC data but not in the API. I've manually excluded these for now, will have to get the data from the FCC in another way. I don't think this will affect the bot, other than having an extra bit of CSV processing, and doing a second sweep (or manual fixes).
Additional wrapper template was noted - {{LPFM station data}}, in addition to the ones mentioned in the BRFA ({{AM station data}}/{{FM station data}}). The bot will also now fix these, as they just wrap the basic templates above. Apologies I forgot to mention these would be changed above.
this edit where the bot reverted itself. I've added validation that the callsign looks "right" (starts with A-Z) before processing it, if not it will skip.
Some FM radio stations don't include the FM in the callsign, as the previous template and site handled it. I've had to change so the bot can do
this to add it back in to make the new search work
I'm happy, after a few issues being found while supervising the first few edits, the bot is working as expected. Happy to do an extended trial if you want to further test the issues in the first few edits, but I don't think it will help (I've manually run the bot against those revisions and all now looks ok)
Mdann52 (
talk)
21:01, 27 June 2024 (UTC)reply
Function details: The bot will remove all instances of the parameters |archive_bot=, |archive_age=, |archive_units=, |minthreadsleft= from all occurences of {{Talk header}}.
The search may contain some false positives; the bot will skip those where it doesn't make any changes, of course.
Discussion
Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Consensus appears to exist for this, and the task is straightforward. –
SD0001 (
talk)
04:07, 6 June 2024 (UTC)reply
Per
this diff, all the params that start with the string archive_ have an alias without the prefix; thus the alias of |archive_bot= is |bot=, and so on. Param |minthreadsleft= has no alias.
Here are some examples.
Mathglot (
talk)
02:06, 9 June 2024 (UTC)reply
Approved for extended trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Let's make sure the parameter alts are working as intended.
Primefac (
talk)
15:05, 27 June 2024 (UTC)reply
Function details:{{Wikisource author}} recently was updated to allow for a |lang= parameter to link directly to non-English versions of wikisource for an author. A similar template, {{Wikisourcelang}}, links to a generic search on said language wiki for said author. This task will change {{
Wikisourcelang|<lang>|otherstuff}} into a {{
Wikisource author|lang=<lang>|otherstuff}} call.
Trial complete.Edits. As a note, I did not run genfixes just to make the proposed change more obvious, but if this task does proceed I will be running genfixes alongside them.
Piotrus, I think this request is a little more convoluted than initially requested. Languages such as de do not use an "author" prefix (see e.g.
Adolph Friedrich Johann Riedel and his corresponding page on
de Wikisource), but I can't figure out which languages it holds to. I am not necessarily seeing a specific pattern between what languages do and do not. My thoughts are of two possibilities - run this task only for languages where the proposed change has the intended effect, or just scrap this BRFA and do these changes manually.
Primefac (
talk)
12:52, 4 July 2023 (UTC)reply
@
Primefac I think we can run it for some languages that we can determine now, it shouldn't be that hard as long as it is consistent for each language (ex. German never uses, Polish always uses it, etc.). We could create a list for all languages that wikisource exists on, or just run it for now for some editions that are the biggest (ex. the ones with interwikis
here). I did some checks and it seems it's pretty consisten - just a wikisource naming convention. Note that depending on the language, the "author" prefix is different - Polish is "autor". Swedish is "Författare", etc. In the end, what we need to fix is not the outgoing links but the text on our side. Consider this case, similar to the German one you quote, where we improved the language or our template but messed the link:
before,
diff,
after. Since the links work, can we just figure out the way to change the wording in the template but retain the same link as before? The older template was able to do it, somehow, seems we are introducing a new error somehow? Piotr Konieczny aka Prokonsul Piotrus|
reply here04:48, 5 July 2023 (UTC)reply
If you wouldn't mind making a list of which languages use the Author (in whatever language) prefix, I can hard-code their use into the template so that there isn't any issue.
This wasn't a problem before because {{wikisource author}} only linked to to the English version so no translation or odd coding was necessary. As mentioned in the original discussion, {{wikisource lang}} just links to a general search (which does sometimes turn up the author page directly) and thus does not require the "Author:" prefix.
Primefac (
talk)
08:06, 5 July 2023 (UTC)reply
Should do, thanks for that. Going to keep this on hold for a bit longer, there's a TFD for merging all of these together and I might be able to enact these proposed changes during the merge process.
Primefac (
talk)
08:13, 7 July 2023 (UTC)reply
Somewhat stalled, been rather busy myself and it doesn't look like anyone has started work on the template merger. I think I might have cleared my on-wiki plate somewhat (
touch wood) so I'll see about prioritising the merger.
Primefac (
talk)
10:51, 22 September 2023 (UTC)reply
Approved requests Information
Bots that have been approved for operations after a successful BRFA will be listed here for informational purposes. No other approval action is required for these bots. Recently approved requests can be found
here (
), while old requests can be found in the archives.
Bots that have been denied for operations will be listed here for informational purposes for at least 7 days before being archived. No other action is required for these bots. Older requests can be found in the
Archive.
These requests have either expired, as information required by the operator was not provided, or been withdrawn. These tasks are not authorized to run, but such lack of authorization does not necessarily follow from a finding as to merit. A bot that, having been approved for testing, was not tested by an editor, or one for which the results of testing were not posted, for example, would appear here. Bot requests should not be placed here if there is an active discussion ongoing above. Operators whose requests have expired may reactivate their requests at any time. The following list shows recent requests (if any) that have expired, listed here for informational purposes for at least 7 days before being archived. Older requests can be found in the respective archives:
Expired,
Withdrawn.