Wikisource:Bot requests - Wikisource, the free online library
Jump to content
From Wikisource
Latest comment:
9 days ago
by EncycloPetey in topic
Remove spacing flanking dashes
Community pages
Bot requests
archives
current
sister projects
Wikipedia article
Commons gallery
definition
textbook
Wikidata item
Shortcut
WS:BOTR
WS:BR
This page allows users to request that an
existing bot
accomplish a given task. Note that some tasks may require that an entirely new bot or script be written. This is
not
the place to ask for help running or writing a bot.
A bot operating performing a task should make note of it so that other bots don't attempt to do the same. Tasks that are permanently assigned or scheduled for long-term execution are listed on
Persistent tasks
. See also
Wikisource:Bots
SpBot
archives all sections tagged with
{{
section resolved
|1=~~~~}}
after 5 days.
Template:Autoarchive resolved section/parameter timecompare set to 'resolved'
Move all subpages of
Who's Who in the Far East
to use title case
edit
Latest comment:
2 years ago
6 comments
3 people in discussion
I was informed by
User:Beeswaxcandle
that I should use title case instead of all caps in article names. So I request to move all subpages of
Who's Who in the Far East
to use title case. Although I can use a bot to move it myself, that would leave tons of redirects for admins to delete. But if an admin can easily batch-delete a list of pages, I can move it myself and then provide the list of pages to delete. I'm sorry for the inconvenience. Thanks, --
Stevenliuyi
talk
08:58, 6 May 2021 (UTC)
Reply
Stevenliuyi
Please review the list at
Wikisource:Bot requests/sandbox
. I notice that there is at least one English name that needs to be fixed, and the Chinese names didn't convert on the regex that I used. Would you fix or create the
target
(only) in the list in the pair list, and I will get it done. No need to fix those that are broken though you should fix the previous/next links of the articles either side. To note that as I did for your other work, I will look to get a work specific template in place, though will do that afterwards. —
billinghurst
sDrewth
13:10, 24 May 2021 (UTC)
Reply
I suppose that I really to want to ensure that the Chinese names are capitalised properly. —
billinghurst
sDrewth
02:57, 25 May 2021 (UTC)
Reply
Stevenliuyi
and @
Billinghurst
: Has this request been actioned (i.e. can it be closed as resolved)?
Xover
talk
10:34, 10 April 2022 (UTC)
Reply
Stevenliuyi
: Please see
Billinghurst
's request (above) for quality control of the list of targets in
Wikisource:Bot requests/sandbox
. They have done the legwork to prepare for the move, but it is unable to progress until you've checked and corrected the target page names.
Xover
talk
05:33, 3 September 2022 (UTC)
Reply
Stevenliuyi
: This is blocked on your input here.
Xover
talk
10:19, 7 November 2023 (UTC)
Reply
Wikidata bulk edit
edit
Latest comment:
3 years ago
8 comments
4 people in discussion
I made a query for works on enWS that have WD items with no "instance of" statement
. The criteria I used are:
Pages in mainspace
No redirects or disambiguation pages (this includes Versions and Translations btw)
Does not contain a forward slash in the page name (in order to exclude subpages)
Is linked to Wikidata, and linked Wikidata item does not have a P31 statement
This query returns 13889 results, which is more than even QuickStatements can handle. Would it be possible for a bot to update these Wikidata items with P31=Q3331189 (instance of = version, edition, or translation)?
Thanks :) —
Beleg Tâl
talk
13:22, 1 November 2021 (UTC)
Reply
I think we could be more specific for certain groups, e.g I have addressed "Presidential Radio Address" articles as "instance of speech". There are several groups of articles that can be identified and then addressed with QuickStatements. After that, the bot can be run on what is left.
Mpaa
talk
23:13, 1 November 2021 (UTC)
Reply
Mpaa
Except they are editions as we host them, the speech would be the parent to the item, per
d:WD:Books
as there may be other published editions of the same speech. —
billinghurst
sDrewth
12:17, 5 September 2022 (UTC)
Reply
Billinghurst
I see. I saw other were linked that way and I followed along. If it is not correct, it should be cleaned up but I do not master wikidata tools enough to write a bot for it.
Mpaa
talk
21:34, 5 September 2022 (UTC)
Reply
We desperately need better Wikidata tools (so we're not dependent on Billinghurst to be on eternal vigilance here). But the current gadget we have for this is loaded from some user's personal page on Russian Wikisource (which is kinda iffy in itself these days), and its code is completely incomprehensible. If anybody knows of or runs across
good
API docs for how to talk to Wikidata I'd be very interested. As far as I can tell, the only existing API is the main MW:API with some very minor additions for WD, and that's way way too painful to use for our purposes.
Xover
talk
06:15, 6 September 2022 (UTC)
Reply
Xover
Maybe we should just be bold and create a phabricator task and see where we go. We probably should have put this into the desired toys to be built for 2023, though we have missed that boat as it is currently in final stages of voting (I think). —
billinghurst
sDrewth
05:40, 22 February 2023 (UTC)
Reply
User:Beleg Tâl
why not just do it with Petscan itself, from memory it could additions. Also note that there is the interwiki Petscan: for these. —
billinghurst
sDrewth
12:14, 5 September 2022 (UTC)
Reply
Comment
wondering whether we need to chip out components of this task. For example, something like
petscan:23959659
shows works using {{
Act of Congress
}} which would not be
edition
, and would instead by another item, and they also have components that could have other elements added through QuickStatements. Yes, this will still need a large slab of works that need
version, edition or translation
(Q3331189)
added, though at least it will allow for something less than the blunderbuss approach. —
billinghurst
sDrewth
05:24, 27 February 2023 (UTC)
Reply
Copy the proofread text from
Index: The last man (Second Edition 1826 Volume 1).djvu
to
Index:The last man vol 1.djvu
edit
Latest comment:
3 years ago
3 comments
2 people in discussion
The three volumes of The Last Man only have a different title page between the first and second edition, could the proofread text of the three-volumes of the second edition be copied to the scans of the first edition.
Languageseeker
talk
23:29, 16 July 2022 (UTC)
Reply
Mpaa
If it is OK to copy also the Page status, better wait for all 3 vols to be validated.
Mpaa
talk
13:53, 18 July 2022 (UTC)
Reply
Makes Sense.
Languageseeker
talk
13:49, 22 July 2022 (UTC)
Reply
Collected works of Ibsen moves
edit
Latest comment:
8 months ago
7 comments
3 people in discussion
Index:The collected works of Henrik Ibsen (Volume 5).djvu
-->
Index:The collected works of Henrik Ibsen (Heinemann Volume 5).djvu
Index:The collected works of Henrik Ibsen (Volume 6).djvu
-->
Index:The collected works of Henrik Ibsen (Heinemann Volume 6).djvu
Index:The collected works of Henrik Ibsen (Volume 7).djvu
-->
Index:The collected works of Henrik Ibsen (Heinemann Volume 7).djvu
Index:The collected works of Henrik Ibsen (Volume 8).djvu
-->
Index:The collected works of Henrik Ibsen (Heinemann Volume 8).djvu
Index:The collected works of Henrik Ibsen (Volume 9).djvu
-->
Index:The collected works of Henrik Ibsen (Heinemann Volume 9).djvu
Index:The collected works of Henrik Ibsen (Volume 10).djvu
-->
Index:The collected works of Henrik Ibsen (Heinemann Volume 10).djvu
Index:The collected works of Henrik Ibsen (Volume 11).djvu
-->
Index:The collected works of Henrik Ibsen (Heinemann Volume 11).djvu
Each Index above needs to have (a) the
File
on Commons renamed; (b) the
Index
on Wikisource moved; (c) all
Page
(s) moved. The issue is that we have an incomplete (UK) Heinemann edition set and a partial (US) Scribner's edition set, with further scans from the Scribner's on Commons, and the two sets of editions ought to be disambiguated before any further confusion or ensues.
Each File / Index / Page should be renamed so that "Heinamann: is added in the position to make the following change:
"The collected works of Henrik Ibsen (Volume 5).djvu" --> "The collected works of Henrik Ibsen (
Heinemann
Volume 5).djvu"
The template {{
The collected works of Henrik Ibsen
}} is the only item linked to these Indices right now, and therefore it should be updated following the change(s). None of the Pages seem to be transcluded, so no mainspace editing should be required. --
EncycloPetey
talk
18:51, 13 July 2024 (UTC)
Reply
EncycloPetey
: Sigh. I went to move the files and found the following:
File:The collected works of Henrik Ibsen (Heinemann Volume 5).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 6).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 7).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 8).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 9).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 10).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 11).djvu
That is, Languageseeker apparently uploaded
different
scans of vols. 5, 6, 8, and 9—but not vols. 7, 10, and 11—using that naming schema. And since Commons policy doesn't permit overwriting these we're kind of stuck on that.
Maybe we could put these at…
File:The collected works of Henrik Ibsen, vol. 5 (Heinemann).djvu
File:The collected works of Henrik Ibsen, vol. 6 (Heinemann).djvu
File:The collected works of Henrik Ibsen, vol. 7 (Heinemann).djvu
File:The collected works of Henrik Ibsen, vol. 8 (Heinemann).djvu
File:The collected works of Henrik Ibsen, vol. 9 (Heinemann).djvu
File:The collected works of Henrik Ibsen, vol. 10 (Heinemann).djvu
File:The collected works of Henrik Ibsen, vol. 11 (Heinemann).djvu
… possibly along with moving vols. 1–4 to the same schema? --
Xover
talk
11:56, 21 July 2024 (UTC)
Reply
Gah, this is an even bigger mess than I thought. Can we not request an admin to move the low-quality scans for 5, 6, 8, 9 out of the way, and then move the good scans into the now vacant names? We've had to deal with complex moves like that before, and from what I can see, none of those four files have an Index page or other bits associated with them requiring a move. Otherwise, we'd not only have to make the move you suggest but
also
move our current scans on volumes 1, 2, 3, 4, and 12, as well as all their pages, to make the naming convention consistent. --
EncycloPetey
talk
16:39, 21 July 2024 (UTC)
Reply
You'd need to make a move request on Commons, and hope you get an admin to look at it within a reasonable time plus to understand the point of the request (I am not certain they would accept this move reason without a lot of explanation). Most file moves are made by file movers, not admins, but they don't have the permissions for this kind of thing (they can technically suppress redirects, but aren't allowed to use the permission for this kind of move).
BTW, while not trivial, bulk moving pages from one index to another isn't too bad with the pywikibot script Inductiveload made, and usually you can just run a search&replace by bot in mainspace to fix the transclusions. If you decide to go that route it should be fine (even if annoying).
Xover
talk
17:09, 21 July 2024 (UTC)
Reply
┌─────────┘
EncycloPetey
: Ok, to get some progress on this I propose we do as follows.
1.
Move the File:s as follows:
File:The collected works of Henrik Ibsen (Heinemann Volume 1).pdf
File:The collected works of Henrik Ibsen, vol. 1 (Heinemann).pdf
File:The collected works of Henrik Ibsen (Heinemann Volume 2).djvu
File:The collected works of Henrik Ibsen, vol. 2 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 3).djvu
File:The collected works of Henrik Ibsen, vol. 3 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 4).djvu
File:The collected works of Henrik Ibsen, vol. 4 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Volume 5).djvu
File:The collected works of Henrik Ibsen, vol. 5 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Volume 6).djvu
File:The collected works of Henrik Ibsen, vol. 6 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Volume 7).djvu
File:The collected works of Henrik Ibsen, vol. 7 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Volume 8).djvu
File:The collected works of Henrik Ibsen, vol. 8 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Volume 9).djvu
File:The collected works of Henrik Ibsen, vol. 9 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Volume 10).djvu
File:The collected works of Henrik Ibsen, vol. 10 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Volume 11).djvu
File:The collected works of Henrik Ibsen, vol. 11 (Heinemann).djvu
File:The collected works of Henrik Ibsen (Heinemann Volume 12).djvu
File:The collected works of Henrik Ibsen, vol. 12 (Heinemann).djvu
2.
Optionally upload a new DjVu of vol. 1 to make the set consistent.
3.
Move all the Index: pages from the old file name to the new one.
4.
Move all the Page: pages from the old file names to the new ones.
5.
Replace all the links (including transclusions) to the old file names in mainspace so they point at the new file names.
All these new file names are currently unused so we can just move them directly there without needing multiple requests to admins at Commons. Making file names consistent within a set is one of the permissible move reasons for file movers (i.e. I can make the moves myself). And since we don't need to old file names for anything we can leave redirects behind which widens the scope of what I'm permitted to do with my filemover rights.
Moving the Index: pages will be done manually (12x), but for Page: pages and references/transclusions in mainspace I should be able to do it by bot for each file (i.e. I have to set stuff up per file, but for that file it will be two bot tasks that takes care of each Page: and each replacement). It's not a trivial amount of work, but I can do all of it myself and I can do it one file at a time, as and when I have time, until we have them all moved.
Thoughts? --
Xover
talk
07:57, 13 August 2025 (UTC)
Reply
PWidergren
who has been working on these volumes. --
EncycloPetey
talk
17:33, 13 August 2025 (UTC)
Reply
EncycloPetey
Xover
I will try to pay attention to what happens to this multi-volume work and, of course, defer to whatever you do. I might point out the vol. 13 from the Scribner's version has already been proofread once and needs find a place somewhere. Also there is this entry page
The_Collected_Works_of_Henrik_Ibsen
which would have to be updated, but do to a lack of understanding about bots, perhaps that is already in the mix. My major focus on Wikisource will continue to be contributing to
Swedish Wikisource
], but I will try to keep an eye on what happens here.
PWidergren
talk
12:09, 14 August 2025 (UTC)
Reply
Replace simple uses of override-contributor
edit
Latest comment:
1 year ago
1 comment
1 person in discussion
Please make the following replacements in
Category:Pages with override contributor type
is
(\|\s*(contributor|section(\-|_|\s)author)\s*=\s*)?\|\s*override(\-|_|\s)(contributor|section(\-|_|\s)author)\s*=\s*
Assume patterns are on a single line which otherwise contains only whitespace.
\| section\-author =
\| section\-author1 =
\| section\-author =
\| section\-author = anon
CalendulaAsteraceae
talk
contribs
08:15, 2 October 2024 (UTC)
Reply
US Supreme Court decisions with no license
edit
Latest comment:
8 months ago
14 comments
4 people in discussion
This PetScan query
lists 440 US Supreme Court decisions that are missing license tags. Would it be possible for a bot to add {{
PD-EdictGov
}} to each of these pages? —
Beleg Tâl
talk
21:29, 6 July 2025 (UTC)
Reply
Beleg Tâl
: No it doesn't. It lists 7464 more or less random other texts.
Xover
talk
07:36, 9 August 2025 (UTC)
Reply
Xover
: filtering by
Category:United States Supreme Court decisions
, though, we
do get 460
pages that don't look like false positives. —
Alien
3 3
11:03, 9 August 2025 (UTC)
Reply
Ok. And are we sure these are actually {{
PD-EdictGov
}}? The Opinion of the Court, concurrances, and dissents are, certainly, but the top level pages appear to be syllaby by the reporter and those are not generally PD.
Xover
talk
11:14, 9 August 2025 (UTC)
Reply
Beleg Tâl
/ @
Beleg Âlt
: I can probably (havn't tested, but assume so) add the template, but I'd like a double check that the licensing is correct first. Could you take a look?
Xover
talk
17:29, 12 August 2025 (UTC)
Reply
Wouldn't the syllaby by the reporter be a work under their offical duties as a government employee and be {{
PD-USGov
}}.
ToxicPea
talk
17:53, 12 August 2025 (UTC)
Reply
Nope.
Xover
talk
18:23, 12 August 2025 (UTC)
Reply
Why not?
ToxicPea
talk
18:24, 12 August 2025 (UTC)
Reply
The reporter is not necessarily a government employee and the reporting (authoring of the syllabus) may not be within the scope of their duties if they are (see
w:Reporter of Decisions of the Supreme Court of the United States
).
Xover
talk
19:14, 12 August 2025 (UTC)
Reply
wait, are we saying that these are potential copyvio? —
Beleg Âlt
BT
talk
20:01, 12 August 2025 (UTC)
Reply
{{
PD-EdictGov
}} says that "judicial decisions" are in the public domain - so if these are not {{
PD-EdictGov
}}, then they should not be in
Category:United States Supreme Court decisions
, unless I am missing something —
Beleg Âlt
BT
talk
20:00, 12 August 2025 (UTC)
Reply
Beleg Âlt
: Supreme Court cases consist of the "Opinion of the Court", which is the main thing; a common-but-not-always "Concurrence by …" one or more of the other judges who agree with the Opinion but want to ge their own points in; and a also common-but-not-always "Dissent by …" someone on the court that disagrees. And, finally, there is often a short summary of the case known as the syllabus of the case. The top level pages in the search above are the syllaby (the ones I checked, anyway), and links on to the Opinions, Concurrences, Dissents, etc. as subpages. All the Opinions, Concurrences, and Dissents are written by judges on the court and are unquestionably, by the court's own repeated rulings, public domain. The syllabus, however, is written by a reporter, not a judge, and so
may
be eligible for copyright. There's an official reporter that is paid by the government and whose duties it is to publish this in the
United States Reports
. The syllaby appearing here you can assume are public domain unless there's evidence of some extraordinary circumstance. But there are also
un
official reporters who make their living by adding better summaries, notes, etc. and publishing them (see
Reporter of Decisions of the Supreme Court of the United States
). The additional parts added by these are
not
public domain.
So… Before we go bot-adding {{
PD-EdictGov
}} to the ~450 texts in this category we need to have at least
some
idea where these came from and whether the syllaby are actually public domain or not. I'll bet these are all
BenchBot
imports, which may or may not count in their favour.
Xover
talk
05:11, 13 August 2025 (UTC)
Reply
Should we move this discussion to
WS:CV
then, do you think? —
Beleg Âlt
BT
talk
14:11, 13 August 2025 (UTC)
Reply
Beleg Tâl
/ @
Beleg Âlt
: Not neessarily, allthough in-depth research on these (and all of BenchBot's imports, if that's what these are) would be good to get done at some point (not to mention scan-backing this stuff to the actual
United States Reports
volumes). I just need someone to do some due dilligence on these to exclude obvious signs of them coming from something like the
Lawyer's Edition
(or Westlaw, or…) and at least
some
evidence making it likely that they're
actually
covered by {{
PD-EdictGov
}} before I go bot-adding the template to them. I just don't have the spare cycles to do it myself.
Xover
talk
15:29, 13 August 2025 (UTC)
Reply
Remove spurious breaks from
Once a Week (magazine)
section parameters
edit
Latest comment:
7 months ago
1 comment
1 person in discussion
A number of
Once a Week
articles have a
following the section parameter. I'd like to fix this. To that end, could a bot operator please make the following replacement in subpages of
Once a Week
\|\s*section\s*=\s*([^\n\|\<]*)\
(\n)
| section = $1$2
CalendulaAsteraceae
talk
contribs
21:47, 29 August 2025 (UTC)
Reply
Migrate two-parameter invocations of
Template:RunningHeader
edit
Latest comment:
7 months ago
2 comments
2 people in discussion
Following up on
Wikisource:Scriptorium/Archives/2024-01#Updates to Template:RunningHeader
, please make the following replacement in the pages in
Category:Running headers with two entries
\{\{([Rr]unning[ ]?[Hh]eader|[Rr][Hh]|[Rr]unningFooter|[Rr]f)\|([^\{\}\|\n]*)\|([^\{\}\|\n]*)\}\}
{{rh|$2|$3|}}
CalendulaAsteraceae
talk
contribs
19:24, 15 September 2025 (UTC)
Reply
The proposed regex encompasses some edge cases, so an entirely automated process will not be sufficient to migrate all uses as intended. In a sample batch undertaken using AWB recently, The above regex would migrate some misformed running headers, omitting page numbers present in the scan, or which had failed to include a blank first parameter need to match the scan. If the proposal was to allow tool-assisted, (with manual confirmation of egde cases) The concern is mitigated.
ShakespeareFan00
talk
20:54, 21 September 2025 (UTC)
Reply
Add {{
Gap
}} after {{
pn
}}
edit
Latest comment:
2 months ago
3 comments
2 people in discussion
In
Index:For Women Scotland Ltd v The Scottish Ministers (2025, UKSC).pdf
the paragraph numbers are formatted with {{
pn
}} followed by a "." followed by a " ". Please replace the " " with {{
gap
}}.
ToxicPea
talk
00:46, 15 October 2025 (UTC)
Reply
ToxicPea
Done
Beleg Tâl
talk
13:48, 10 January 2026 (UTC)
Reply
This section is considered resolved, for the purposes of archiving. If you disagree, replace this template with your comment.
ToxicPea
talk
01:44, 30 January 2026 (UTC)
Reply
Replace PUA characters in
Ælfric's Lives of Saints
edit
Latest comment:
3 months ago
2 comments
1 person in discussion
Please replace the Private Use Area character
with the full spelling used in the source scan:
þ''æ''t
This change needs to be done on the following pages:
All subpages of
Ælfric's Lives of Saints
All pages under
Index:Aelfric's Lives of Saints Vol 1.djvu
Unfortunately AWB can't process PUA characters so a bot needs to do it —
Beleg Tâl
talk
13:41, 10 January 2026 (UTC)
Reply
Thanks @
ShakespeareFan00
for taking care of this :) this is now
Done
Beleg Âlt
BT
talk
15:09, 12 January 2026 (UTC)
Reply
Page numbers in
Index:En obs v8.pdf
edit
Latest comment:
2 months ago
1 comment
1 person in discussion
The page numbers from
Page:En obs v8.pdf/17
onwards are offset by 2 (e.g. the transcription says "17" where it should say "15"). Could someone please fix this? —
Beleg Tâl
talk
16:04, 17 February 2026 (UTC)
Reply
Retroactive "header" fill
edit
Latest comment:
12 days ago
2 comments
2 people in discussion
Index:Dawn and the Dons.pdf
has a very simple header setup, one that
{{rvh|{{{pagenum}}}|THE ROMANCE OF MONTEREY|DAWN AND THE DONS}}
would easily produce. However, a bunch of pages are already created. Could a bot go in and retroactively apply the header to pages 1–231 (aka 23–253)?
Eievie
talk
22:44, 9 April 2026 (UTC)
Reply
Meh. The simple approach doesn't work here because
{{{
pagenum
}}}
is interpolated by Proofread Page, not MediaWiki. It's interpolated when PRP fetches it from the associated Index page, and not as a MediaWiki pre-save transform, which means that at the point a bot tries to insert it that interpolation has already happened. I'll chew on it a bit more and see if there are any other reasonable options.
Xover
talk
05:22, 10 April 2026 (UTC)
Reply
Remove spacing flanking dashes
edit
Latest comment:
9 days ago
3 comments
3 people in discussion
In
Chess Fundamentals
and
My Chess Career
practically all of the em dashes are flanked by spaces which violates style guide. Could a bot be used to remove all these extra spaces?
ToxicPea
talk
04:17, 12 April 2026 (UTC)
Reply
ToxicPea
: In a technical sense, yes, quite easily. But the style guide must be weighed against respecting the approach taken by the first / main contributor, so I'm not sure its guidance is strong enough to
impose
this change as a matter of policy if, say, the contributor is strongly opposed. Which means the issue should probably have some sort of discussion somewhere to back it, after which a bot can run through and make the change.
Xover
talk
16:36, 13 April 2026 (UTC)
Reply
The flanking spaces are not present in the prose (as can be seen by inspection), and in the prose text there are no flanking spaces around the em dashes. The flanking spaces only appear in chess notation. Our policy on style concerns the formatting of prose text, and does not necessarily apply to unusual situations such as the rendering of special notation. --
EncycloPetey
talk
17:25, 13 April 2026 (UTC)
Reply
Retrieved from "
Hidden category:
Bots
Wikisource
Bot requests
Add topic
US