Wikipedia:Request a query/Archive 7

Archive 1←Archive 5Archive 6Archive 7

Quarry help

Looking for some Quarry assistance... Trying to write a query that list every Infobox template AND the number of transclusions that each has. Doesn't seem to be working... Any help apprecaited!

SELECT 
    p.page_title AS template_name,
    COUNT(tl.tl_from) AS transclusion_count
FROM page p
LEFT JOIN templatelinks tl 
    ON p.page_id = tl.tl_target_id
WHERE p.page_namespace = 10                  
  AND p.page_title LIKE 'Infobox%'          -- Starts with "Infobox"
  AND p.page_title NOT LIKE '%/%'           -- Excludes any title containing a slash "/"
  AND p.page_is_redirect = 0                -- Exclude redirect templates
GROUP BY p.page_id, p.page_title
ORDER BY transclusion_count DESC;

-- Zackmann (Talk to me/What I been doing) 05:16, 20 June 2026 (UTC)

mw:Manual:Templatelinks table. tl_target_id is a foreign key into linktarget, not page; this is why it's possible to transclude redlinks. —Cryptic 10:16, 20 June 2026 (UTC)
@Cryptic: I'll be honest, I don't follow... Can you help me out with what change I can/should make? Zackmann (Talk to me/What I been doing) 21:12, 20 June 2026 (UTC)
The only thing it makes sense to join templatelinks.tl_target_id to is a lt_id in linktarget. The way you get from there to a row in page is by joining linktarget on namespace and title. The page table only has rows for pages that actually exist, so templatelinks can't logically point at a page_id for its target, or you wouldn't be able to see entries in Special:Whatlinkshere for redlinked templates. Before the linktarget table was created a couple years ago, templatelinks had columns for the transcluded template's namespace and title instead of the current tl_target_id.
Whether the current iteration of your query at quarry:query/106488 is correct depends on what precisely you're looking for. There's two things you can do that make sense here: look at all transclusions of templates named 'Infobox%', whether the template being transcluded actually exists or not; or look at all templates named 'Infobox%', whether they're ever transcluded or not. In the first case, you won't be able to see existing templates that aren't transcluded anywhere; in the second, you won't be able to see failed attempts to transclude appropriately-named templates that are redlinks. The current version on Quarry does the first; your query above looks like an attempt to do the second. To make it actually do it correctly, add a LEFT JOIN linktarget ON lt_namespace = page_namespace AND lt_title = page_title and change the join condition for templatelinks to be ON tl_target_id = lt_id.
Though, to be honest, it probably doesn't make a lot of difference either way, what with the LIMIT 1000 - if there's ever any redlinked infobox templates being transcluded that many times, it's almost certainly because they were just deleted and they're waiting to be depopulated (for the first query), and there's well over a thousand existing template pages that are transcluded (for the second). The second query does make it a little more straightforward to exclude redirects, at least; in the first, those will be counted both the titles for the template redirect and the template it's pointing to. There's about 270 such redirects in your results. The highest among those is Template:Infobox NFL biography→Template:Infobox gridiron football biography with 27321 transclusions through the redirect out of 39664 total to the target template. —Cryptic 02:54, 21 June 2026 (UTC)
Are you working on a way to automate the counts in Wikipedia:List of infoboxes? If so, I will remove it from my TODO list... — GhostInTheMachine talk to me 10:22, 21 June 2026 (UTC)

Top-level user pages that are categorized into categories which have Template:Template category

I cobbled together a query – quarry:query/106853 – that uses the name of the category, but this is a bad idea, because of false positives (e.g. Category:Wikipedians who program conditional templates and Category:Pages using New York City Subway service templates – categories only related to templates, but aren't template categories) and false negatives (e.g. Category:Navigational boxes, name of which doesn't end in the word "templates").

Could someone please help rewrite the part for checking if a category is a template category from checking its name to checking the presence of Template:Template category? This is needed to remove incorrect categorizations such as Special:Diff/1361893658. —⁠andrybak (talk) 18:52, 30 June 2026 (UTC)

An alternative to checking Template:Template category is to check whether the candidate for template category is in Category:Wikipedia template categories. —⁠andrybak (talk) 19:20, 30 June 2026 (UTC)
quarry:query/106856 (sans alternative]). —Cryptic 19:32, 30 June 2026 (UTC)

database query: Unusualy short IPv6 range blocks

I want it because they are very uncommon and definiton is: range blocks with subnet smaller than /64 ~2026-31625-14 (talk) 04:06, 29 June 2026 (UTC)

quarry:query/106854. Far more uncommon than I would've guessed.
This is only currently-blocked addresses (and excludes autoblocks). It's not feasible to find expired or removed blocks; there's far too many to look through and no useful indices. —Cryptic 19:17, 30 June 2026 (UTC)
@Cryptic also make a query where IPv6 blocks address did not start with 2 ~2026-33676-45 (talk) 02:55, 1 July 2026 (UTC)
No current blocks, and only one historic one. It was a typo. —Cryptic 05:08, 1 July 2026 (UTC)
@Cryptic please also query legacy ip countribution for any IPv6 adress not starting with 2 ~2026-31625-14 (talk) 06:21, 1 July 2026 (UTC)
quarry:query/106964. Six edits among three ips, all still live. —Cryptic 20:27, 3 July 2026 (UTC)

Fetching page title in regex

Moved from WT:AutoWikiBrowser § Fetching page title in regex
 – Sdkb talk 19:41, 3 July 2026 (UTC)

I'm interested in using AWB to help make redundant section names more concise, e.g. changing "Perceptions of red tape" to just "Perceptions" at Red tape. However, to make a regex query for this, I'd need to fetch the article title to compare it to the section title. Is this possible? And how would I make a list of articles where this change could be considered? Sdkb talk 05:00, 2 July 2026 (UTC)

Might be better to request a query, as I'm not sure a blanket search would be able to find something like that. Primefac (talk) 06:18, 2 July 2026 (UTC)
Within JWB (and, I assume, AWB), $x refers to the page title. However, finding which pages to edit is hard.
I don't think Wikipedia's search (Cirrus) can do this, as it has no syntax to access the page title. We can't even cunningly search for text like '''Red tape''' is .* Red tape== because its regex implementation lacks backreferences. The main resource used at "Request a query" is Quarry, which runs on a database which does not contain the page text, or even section headings. I don't think that works here, but someone who monitors that page might have a bright idea. I doubt that PetScan could do the job either. It would probably need simple custom software run on the large database dump. Certes (talk) 18:29, 2 July 2026 (UTC)
Gah, I thought Quarry had in-text (I feel like I've seen it). Petscan has an insource search but last I looked it was only in-text and couldn't necessarily be used to bodge this. Primefac (talk) 06:24, 3 July 2026 (UTC)
Only indirectly, through the same sorts of things you can see in Special:Whatlinkshere and Special:Linksearch (that is, redirects, transclusions, links, and external links). If there's a redirect to an article's section, the section name can be found, but the overwhelming majority of sections don't have such redirects. So yeah, I agree with Certes: the most practical way forward is working with a full text dump. —Cryptic 20:11, 3 July 2026 (UTC)
PetScan allows an insource search, which it can combine with other searches in useful ways (e.g. pages containing insource:/xyx/ which are in Category:Whatever but not linked from article Foo.) However, although it can be post-processed cleverly, it's just the standard Cirrus search. Certes (talk) 22:09, 3 July 2026 (UTC)

Query for pages with 1,250 or more images

Parsoid has a limit of 1,250 images per page, but there is no tracking category yet. See T430854 for details.

https://quarry.wmcloud.org/query/107136 purports to list pages with more than 1,250 images, but I think it is showing page IDs instead of page titles. I suppose I could ask ChatGPT for SQL, but I'd rather ask a human. Can someone please modify this query to output page titles including namespace names (e.g. "List of flags" or "Wikipedia:WikiProject flags/list of flags"), along with the number of images on each page? – Jonesey95 (talk) 19:57, 9 July 2026 (UTC)

quarry:query/107149, but I don't think it or the original query do what they need to - they show pages with at least 1250 different images, and (without having actually looked at the source to confirm) I suspect the actual limit is for total images. —Cryptic 20:34, 9 July 2026 (UTC)
(You could've gotten to the pages without this, btw, with e.g. Special:Redirect/page/17179817. —Cryptic 20:35, 9 July 2026 (UTC))

Student edits per year

If it's in the mainspace now, that's fine. I'm mainly trying to exclude talk-page comments, The Wikipedia Adventure, bots, and other non-article edits.

My goal is to write a sentence such as "Wiki Edu students contribute n% of all edits to articles each year." @Tryptofish may be interested in the answer as well. WhatamIdoing (talk) 00:44, 18 July 2026 (UTC)

I don't think this is good data.
  1. 23 of the users there don't exist: User:4caddit, User:Atrowbridge1, User:Chanel.Young001, User:Cozycardigan, User:Ellieghayward, User:Enginhori, User:Erfowler1, User:Grape Jelly Toast, User:Hannahcheney, User:Isab.6703, User:Isabellalopexx, User:Karlaneaudet, User:Kelsh9610, User:KoreanChristianAmerican, User:KylieRumsey23, User:Ladyoflorien75, User:LunaSHSU, User:Nadpnw, User:Nataliehermosill0, User:Ninambeans, User:PunxsutawneyPhilPennsylvania, User:Ssharmin825, User:Zestychickensalad. Following redirects isn't practical on this scale, even for the users who hadn't deleted their userpage either before or after renaming, and even with the reasonable assumption that the redirect targets are always accurate. Following the page move or rename logs is much less so. I guess if I was thinking I'd have just updated your subpage to fix these.
  2. Near as I can tell, this only has the student users active in the program in 2023. There are 12294 registered in 2023, 172 in 2022, 59 in 2021, 33 in 2020, and 52 total in 2005-2019. Ideally this query should use a list of all students ever, but even assuming that almost all of them stop editing when their course is over, I'd be more confident of the results if I had at least a list of students enrolled in the current and previous years for the year I'm querying.
That said, quarry:query/107417. 0.18% in 2023. —Cryptic 19:00, 18 July 2026 (UTC)
In round numbers, we're looking at (for 2023):
  • Students made about 75,000 edits to articles
  • IPs made about 7,000,000 edits to articles
  • Non-student registered editors made about 30,000,000 edits to articles
This works out to 0.18% of mainspace edits, or a little less than 1 in 500 mainspace edits. Thanks. WhatamIdoing (talk) 19:57, 18 July 2026 (UTC)
Responding to the ping, I can think of two, opposite, ways of looking at this data. One is that student edits make only an insignificant contribution to Wikipedia content, and probably never will. The other is that student edits are unlikely to be a major contributor to problem edits, because they are such a small percentage. I'm inclined to think that both of these interpretations are at least partially wrong, because the analysis does not distinguish between different edits in terms of the quality of the contribution. (On the other hand, there is something unrelated to student editing, that looks statistically significant here: registered editors make a lot more content edits than IP/temp accounts do. I hadn't expected that.) --Tryptofish (talk) 20:46, 18 July 2026 (UTC)
Registered editors have Wikipedia:AutoWikiBrowser and other tools that make high-volume editing possible, and we can edit semi-protected pages (which tend to get more edits), so it's not surprising if we make most of the edits.
I think you are correct about both interpretations having a problem with Wikipedia:Editcountitis. We could re-run the numbers for just unreverted edits, and we might be able to do something about edit size. Adding two paragraphs and two sources is more significant than fixing a typo (and I say that even though my own first edit was almost certainly fixing a punctuation error). I should go clean up the list of editors who changed their usernames (or maybe get a 2025 list instead) before we try anything else. WhatamIdoing (talk) 20:54, 18 July 2026 (UTC)

UPPER

Resolved

Please can someone remind me of the mystic incantation to make UPPER() work? I would like this to return "MERCURY" rather than "Mercury":

SELECT UPPER(page_title MYSTIC INCANTATION GOES HERE) FROM page WHERE page_namespace=0 AND page_title='Mercury'

Thanks in advance, Certes (talk) 18:32, 19 July 2026 (UTC)

Ah, I found it in an old query. For future reference, UPPER(CONVERT(page_title USING latin1)) works. Certes (talk) 19:58, 19 July 2026 (UTC)
USING utf8mb4 is the preferred enchantment. latin1 fails for non-latin text; utf8 fails (more more rarely and confusingly) when it comes across a four-byte character. —Cryptic 21:32, 20 July 2026 (UTC)

Wiki Ed student retention (redux)

I would like to re-run a query about Wiki Ed student retention created in 2023 that took five hours minutes to complete at the time, but I am aware that some tables may have changed in the interim, and I don't wish to burden the servers needlessly. Can someone have a look at this, to see if the old query needs to be updated for any table changes or other reasons, before I attempt a re-run to update the results?

In 2023, this RAQ question about edit activity of Wiki Education student editors after their course ends, resulted in three Quarry queries being generated. As described by Soni at the time, they were:

Query 72703 took five hours minutes to run at the time. Is it okay to clone and re-run it as is? (The other queries are interesting, too, and if fixing those is easy I am interested, but if it's rather involved, then just one is sufficient, and probably 72703 is the best choice in that case.) Thanks! Mathglot (talk) 19:44, 10 July 2026 (UTC)

Speaking of the burden of long-running queries: we do not need up-to-the-minute info from this query, so if there is a day-old or even a week-old db backup, it's perfectly okay to run it against the backup in order not to burden the live tables. Thanks, Mathglot (talk) 20:17, 10 July 2026 (UTC)
346.43 seconds is about five (well, most of six) minutes, not hours. They'll fail if you just clone and rerun, though, since I see they use categorylinks.cl_to. Might be a while before I have enough time stuck together in a row to update them, particularly if I have to understand the queries instead of just doing the usual mechanical updates for the new schema.
I wouldn't worry in general about "burdening the live tables". Quarry doesn't query the production servers, but replicas set up specifically for the use of tools like it. Actually setting up a backup db from the dumps is a fairly major undertaking. —Cryptic 20:35, 10 July 2026 (UTC)
Oh, duh! Guess I can't read, lol. I'm glad it's only minutes, then. Good news about the replica, also. No hurry at all on this, and if you get some time, either for fixing that one, or to to try a wholly new approach of your own design that yields interesting results, that would be great. The end goal is to gain insight on how many and which ex-students formerly enrolled at Wiki Ed stick around after their class is over and keep editing on their own afterward. That question has room for interpretation (see the original thread), and anything that yields insight into the issue would be great. Thanks for the quick status update. Mathglot (talk) 21:15, 10 July 2026 (UTC)
quarry:query/107208, quarry:query/107209, and quarry:query/107210 respectively. —Cryptic 18:59, 11 July 2026 (UTC)
The first ("All WikiEd students by number of edits since program ended") finds 28,743 post-class continuing editors making a total of 359,148 post-class edits.
However, all of these also include instructors and staff (e.g., Merlinderhindergrinder and User:Will (Wiki Ed)), which is probably not intended. WhatamIdoing (talk) 19:17, 11 July 2026 (UTC)
(post-ec) Oh, well, that's something in the original query structure; maybe Soni can comment. But I think that means there are extraneous table rows, not that the count field or sort order is wrong for those rows that represent students, right? So, probably a WHERE clause somewhere needs to be more restrictive (just guessing, here). Tanks for spotting that. Mathglot (talk) 19:23, 11 July 2026 (UTC)
Is there a way to tell these apart programmatically? Maybe some template or category that's always on instructors' and not students' pages, or vice-versa? —Cryptic 20:52, 11 July 2026 (UTC)
Yes. Students always have a template identifying their course; I have never seen an exception; I think the template is added programatically by Wiki Ed when the student Talk page is created. I will get you the name in a minute. Mathglot (talk) 21:00, 11 July 2026 (UTC)
Template:Dashboard.wikiedu.org talk course link appears on student user talk pages: (what links here, 119684 transclusions). Afaict, it is also on their User page, if that is easier/faster for the query. The transclusion count is identical for ns User, so it seems you can use either one. Mathglot (talk) 21:08, 11 July 2026 (UTC)
This query already only shows users with that template on their (root) user talk page. There's only 31 transclusions on subpages or outside user-talkspace (quarry:query/107214). —Cryptic 21:57, 11 July 2026 (UTC)
Also, is it intentional that users without any edits in the requested time range aren't listed at all? It looks like there's an attempt to show them with a 0 in the edits column, but it's defeated by the time range check. —Cryptic 21:01, 11 July 2026 (UTC)
I suspect not, but you'd have to ask Soni to be sure. I remember he said he spent half a day on it, so maybe that slipped in along the way. Mathglot (talk) 21:11, 11 July 2026 (UTC)
Wait, I may have read you wrong. Since we are trying to find editors still active after X elapsed time following their course end/start date (whichever is easier; after the end date preferred), we definitely want to exclude editors with no edits after X; including them with a 0-count in the row just means the table would have 119,684 rows, right? We don't need that. But I suspect you may have meant something different, which I don't quite get. Mathglot (talk) 21:17, 11 July 2026 (UTC)
Redacted to add that after the course end date is preferred. Mathglot (talk) 21:31, 11 July 2026 (UTC)
Well, my point was, the first query shows users with the relevant template who made any edits at all after (what I assume is) the course page was created last edited. Of 28744 users listed, 5126 (18%) have only a single edit, and 20867 (73%) have ten or less. With the numbers skewing that low already, why not include the zeros, too, so there's some idea of retention overall? A single post-course edit isn't meaningfully more active than none at all.
Though, as you say, we can get that number by counting template transclusions anyway. These queries only count transclusions in the user talk namespace and that aren't subpages; there are 119653 of those (out of 119684 total transclusions). ...which is another problem with these queries. I'd expect the most active retained users will archive the template eventually. Though two of the three with significant total editcount who've already done so look more likely to be instructors than students, judging from their userpages. —Cryptic 21:57, 11 July 2026 (UTC)
I believe that we can get a reasonably complete and accurate list of all student editors (from Wiki Ed's records). Would that be more appropriate?
For myself, it looks like approximately 5% of the students who made any post-course edits have made >10, which is not a bad retention rate compared to the usual. WhatamIdoing (talk) 22:02, 11 July 2026 (UTC)
Omg; re: I'd expect the most active retained users will archive the template eventually – I hadn't thought of that! That seems like it could be a serious complication. Not sure how messy it would be to query users who had the template at the time the course began (or ended), even assuming the replica even has old revisions; does it? Not at all sure how to deal with the archived template issue, but glad you thought of it.
I'm trying to think of other ways to identify student editors. Normally, they go through training modules which leave subpages with specific titles in their user space; that might be one way. Another way, might be to start from the course pages, where the student editors are linked from. I'll have to think more about this. Mathglot (talk) 01:46, 12 July 2026 (UTC)
Have a look at https://dashboard.wikiedu.org/campaigns. WhatamIdoing (talk) 01:54, 12 July 2026 (UTC)
Yeah, I thought of that, and campaign to course, and course to student. But I think there may be a better way. I'm pretty sure the Wiki Ed program maintains their own database of enrollments. I can just ask them to export a list of students that could be imported as a temp table for the query. I know who to ask, but before I do, let's figure out what we need. For starters, they must have all students enrolled in a Wiki Ed course. I'm not sure what else they maintain, such as whether the student has mainspace edits. What else would be useful? Then I can formulate a question over at WP:ENB. Mathglot (talk) 02:33, 12 July 2026 (UTC)
I think we really just need a list of usernames. We can sort the rest from there. WhatamIdoing (talk) 02:37, 12 July 2026 (UTC)
Sage (Wiki Ed), can you export a list of usernames from the Wiki Ed db? Not sure if there is anything else in your db that might be interesting here. Guessing that the list may be on the order of 120k names (unless there are lots of students that enrolled but never got a course template added to their UTP, but that's done programmatically, right?). Thanks, Mathglot (talk) 02:53, 12 July 2026 (UTC)
I see how to get a list of students by campaign (e.g., Fall 2025 csv), but not how to get them all. Mathglot (talk) 20:09, 12 July 2026 (UTC)
It seems like it would be easy to merge and de-duplicate the lists. WhatamIdoing (talk) 20:43, 12 July 2026 (UTC)
Getting each of the fall/summer/spring campaign CSVs would be my recommendation. That way, you don't get the usernames that are not from our Student Program. They should all have consistent URL slugs, `spring|fall|summer_20XX`. Sage (Wiki Ed) (talk) 20:27, 21 July 2026 (UTC)
Thank you for this; and it runs 3x faster, too. (Probably something in the table re-org somewhere, I suppose; a new indexed field perhaps?) Followers of the WP:Education noticeboard will be happy to see this. (edit conflict) Mathglot (talk) 19:20, 11 July 2026 (UTC)

Files with a duplicate on Commons

Special:ListDuplicatedFiles only considers local file so could I get the list on the files, like File:Judo World Championship.png, has a duplicate on Commons? Jonteemil (talk) 04:40, 21 July 2026 (UTC)

Since the enwiki and commonswiki databases aren't on the same server, they can't directly be queried together. I can see two ways around that, both a great deal of effort.
  1. Import their image tables from the most recent dump into a user database. The image table on commons is really, really big - the dump's over 17 gigabytes. When I similarly imported enwiki's page table a couple months ago, IIRC it took well over an hour for just over 2 gigabytes. So if nothing goes wrong, we're looking at something at least on the order of eight hours to do; plus, the results will only be accurate as of the last dump, from around the first of the month.
  2. enwiki's image table is "only" about 84 megabytes, with around a million rows. (Currently {{NUMBEROFFILES}}→981,617.) It's just barely feasible to paste their hashes and titles into user subpages on Commons: 31 bytes for the hash, an average of 27.2 bytes for the image name, 4 bytes for square brackets to link them, and a linefeed is 64 bytes each. That fits 32768 onto a maximum-length page, so about 30 of them. Results will be up-to-date, and overall time probably faster, but it's a lot more manual effort.
So either way, I'd want to see some serious motivation for this before going to the trouble. Idle curiosity, or cleaning up just for the sake cleaning up, aren't going to be sufficient. It's not like the duplicates are hurting anything. —Cryptic 16:36, 21 July 2026 (UTC)
I see. Thanks for your reply. Jonteemil (talk) 00:56, 24 July 2026 (UTC)

Dedipath blocks

Can I get a list of all active blocks with the string dedipath, case-insensitive? Dedipath is no longer an active colocation provider, so all of those blocks are candidates to be lifted. For extra credit, would it be possible to get a list of all such WP:GLOBALBLOCKs? Thanks in advance :) HouseBlaster (talk • he/they) 03:41, 22 August 2026 (UTC)

In the log comment, I assume? quarry:query/108514 for local blocks; quarry:query/108515 for global (there aren't any). —Cryptic 07:29, 22 August 2026 (UTC)
Yep, thank you so much :) HouseBlaster (talk • he/they) 15:31, 22 August 2026 (UTC)

AfC accepts in NPP queue

Relating to the "emergency measures" discussion at NPP, I was curious if it's possible to get a count of articles that were accepted to mainspace via AfC, and have then sat in the unreviewed queue at NPP for >1 month, >3 months, >6 months and >9 months? In solidarity, nil nz 00:17, 27 August 2026 (UTC)

quarry:query/108643. Not going to matter; only about one in forty unreviewed pages were afc accepts to begin with. —Cryptic 01:51, 27 August 2026 (UTC)
Appreciated! In solidarity, nil nz 01:55, 27 August 2026 (UTC)

Newcomer reversions in math articles

I'm looking for (what I think is) a simple query:

My goal is a sentence that sounds like "Looking at the math-related articles, I see 1,234 edits with this newcomer task this year, and 5% of them were reverted". WhatamIdoing (talk) 01:12, 2 September 2026 (UTC)

quarry:query/108882. Few enough that I could give you a list of diffs. —Cryptic 02:19, 2 September 2026 (UTC)
Thanks. It looks like 11 add-a-link edits were made each day, and about three of them were reverted each week, or 4%. Both numbers might go up if this is run later, since we recently changed the number of suggested links (to limit it to one link per edit, to make reverting easier).
I'll let you know if I need the list of individual diffs. WhatamIdoing (talk) 00:07, 3 September 2026 (UTC)

After seeing Korea-related vital articles such as Yi Wanyong, Miracle on the Han River, Tan'gun, Yongin, etc. in awful conditions, I decided it would be nice to have a list of Korea related vital articles so I can keep an eye on any that I wish to improve.

The query should generate a list of English Wikipedia articles that meet these following conditions:

~delta {talk • cont • 🇰🇷 • 🎢} 00:49, 3 September 2026 (UTC)

I'm not familiar with WP 1.0 bot. I take it that being linked from that page is equivalent to having a talk page tagged {{WikiProject Korea}}? (The numbers roughly match up.) —Cryptic 01:43, 3 September 2026 (UTC)
Yes, indeed. ~delta {talk • cont • 🇰🇷 • 🎢} 01:47, 3 September 2026 (UTC)
quarry:query/108907. 331 level-5, 59 level-4, and 3 (Confucianism, East Asia, and South Korea) level-3. —Cryptic 02:01, 3 September 2026 (UTC)

Homonymous project pages

I'd like a list of every homonymous non-redirect page in both the Help: and Wikipedia: namespaces, such as WP:Books and Help:Books. We need this at Wikipedia talk:Requests for comment § Deprecate the Help: namespace. FaviFake (talk) 20:29, 4 September 2026 (UTC)

It looks like there are 28 such pairs, although I haven't verified them all, just a random handful. J11csd (talk) 21:46, 4 September 2026 (UTC)
Having checked a bit further, it appears that about one third of these pairs are both soft redirects to other Wikimedia projects. J11csd (talk) 23:12, 4 September 2026 (UTC)
Thanks!
I see these real links:
and these soft redirects to another wiki:
WhatamIdoing (talk) 00:48, 6 September 2026 (UTC)

Net unreverted article contributions

Is any of this even possible?

WhatamIdoing (talk) 21:07, 20 July 2026 (UTC)

Mostly. I'd need a manual list of student accounts. Detecting "unreverted" would only go by the presence of the mw-reverted tag, so not, for example, one where it took more than... 30?... days to revert, nor one where the reverting edit didn't exactly match a previous revision, like undoing an edit where an unrelated intervening edit is left intact. Only way to detect size of an edit is by looking at the size of revisions, so reverting a page blanking is an addition the size of the previous page, while completely rewriting a page in-place will often look like removing bytes. Ref tags aren't detectable at all, and the only visibility of external links is of those currently on a page, so that's not possible at all. —Cryptic 21:44, 20 July 2026 (UTC)
Do you think that comparing the tag editcheck-newreference would be fair? I think that only turns up for edits in the visual editor, and I don't know if the two groups use the visual editor in approximately equal amounts. WhatamIdoing (talk) 21:13, 21 July 2026 (UTC)
I was going to say that I'd never seen that tag in the wild, but it seems it's set up not to display anyway (why?!), so I wouldn't have. And also have no idea how common it is or isn't. So I can't begin to guess. —Cryptic 21:35, 21 July 2026 (UTC)
Visual editor only, but both desktop and mobile. phab:T325713#8718860 has an explanation for keeping it hidden. That was three years ago, and it's triggered about three million times since then, so it's about 1K per day on average. However, if 100% of students use the visual editor and 100% of non-student newbies don't, then that wouldn't produce a useful response. Consequently, this might add another needed datapoint: What percentage of edits were in the visual editor for the two groups? WhatamIdoing (talk) 21:58, 21 July 2026 (UTC)
Tell you what. Give me a list of tags (internal names are easiest) and groups, and I can give you totals for every combination of them. —Cryptic 22:38, 21 July 2026 (UTC)
Is "editcheck-newreference" (in the "Tag name" column of Special:Tags) what you mean by internal name? WhatamIdoing (talk) 18:32, 22 July 2026 (UTC)
Yes. —Cryptic 20:45, 22 July 2026 (UTC)
Okay, I've been giving this some thought, and I want to compare new student accounts vs new non-student accounts for:
  1. Mainspace edits (i.e., to any page presently in the mainspace) that have mw-reverted. The goal is a sentence such as: "New student accounts were n% as likely to have their edits reverted as new non-student accounts."
  2. Mainspace edits that have visualeditor and do not have mw-reverted split by whether they also have the editcheck-newcontent tag. The goal is a sentence such as: "New student accounts using the visual editor were n% as likely to add unreverted content to an article than new non-student accounts using the visual editor."
  3. Mainspace edits that have visualeditor split by whether or not they also have the editcheck-newreference tag. The goal is a sentence such as: "Edits from new student accounts using the visual editor were n% as likely to add a ref than edits from new non-student accounts using the visual editor."
  4. Mainspace edits (in any editing environment) that have possible unreferenced addition to BLP. The goal is a sentence such as "New student accounts were n% as likely to make unsourced BLP content as new non-student accounts."
The first two are measurements of overall edit quality (Did it get reverted? If it didn't get reverted, did the edit add a significant amount of content, or just tweak something small?), and the second two are measures of adding sources (Did they add refs? In BLPs specifically?).
I'll have to assemble a list of student usernames for you. Do you want them from a calendar year or from a school year? WhatamIdoing (talk) 23:57, 10 August 2026 (UTC)
Whichever you prefer. Will also want you to pick the time range for the actual edits. —Cryptic 01:09, 11 August 2026 (UTC)
Output's going to look similar to the mockup at quarry:query/108251. —Cryptic 01:19, 11 August 2026 (UTC)
About the time range, I think it should be at least "months" ago, so there's plenty of time for a bad edit to get noticed and reverted. At minimum, that feels like September for classes ending in June. I'll have a clearer answer when I assemble the list of students. WhatamIdoing (talk) 01:54, 11 August 2026 (UTC)
(I haven't forgotten. Getting this list of editors to you is still on my list.) WhatamIdoing (talk) 01:06, 2 September 2026 (UTC)
Tangential, I know, but the reverted tag is not in any way time-limited and does apply to edits undone using the "undo" feature. See these edits for a demonstration; the user I was reverting was almost certainly acting in good faith. Graham87 (talk) 10:09, 7 September 2026 (UTC)

Vanished Wikipedia essay

Resolved

Graham87 (talk) 07:00, 8 September 2026 (UTC)

I'm looking for a Wikipedia essay about AI proofreading that was overwritten or deleted. Nothing is known about its title, but it was likely in userspace or project space. I'd suggest searching for pages that were once Wikipedia essays but were subsequently deleted or overwritten. See Wikipedia_talk:WikiProject_AI_Cleanup#Lumberjack_essay_about_AI_proofreading. –LaundryPizza03 (dc̄) 04:41, 7 September 2026 (UTC)

I was the one who suggested this venue; as I said at the above discussion, I'm not that good at queries. However, I know that we can't ask for most of those things, primarily because the wiki replicas don't store any revision text. However, we can establish that if the essay was deleted, it didn't contain "lumberjack" in its title at the time of its deletion, unless I'm really missing something. I think all we can do is nibble at the edges of the question, but database queries seem like the least bad method of nibbling, if that makes any sense, because regular searches haven't been fruitful. Graham87 (talk) 08:32, 7 September 2026 (UTC)
Per the discussion where @Gnomingstuff: said they contributed to the page, here's a list of deleted edits by Gnomingstuff outside the article and talk namespaces, ordered by length of the text in bytes, longest first. I can't find anything promising in the first two pages of that list though, but maybe it might ring a bell to someone else. A key to the namespace numbers can be found at Wikipedia:Namespace. Graham87 (talk) 09:48, 7 September 2026 (UTC)
How about searching for the word "proofread"? –LaundryPizza03 (dc̄) 19:16, 7 September 2026 (UTC)
Nope. If you log in to Quarry, fork my query, and replace the search string in the SQL with something different, you can conduct your own searches like this, but they're fairly slow ... and as I said at the other discussion, the chance that a page like that would've been outright deleted is very, very low anyway. Graham87 (talk) 03:02, 8 September 2026 (UTC)
Much faster if you give it a namespace. Adding AND ar_namespace IN (2, 4) cuts runtime down to a few seconds. And LOWER(ar_title) won't work since ar_title isn't text; LIKE is case-insensitive anyway, for types that have cases. Convert it to utf8mb4. Here you go. Nothing recent. —Cryptic 03:26, 8 September 2026 (UTC)
How about rewrit%? –LaundryPizza03 (dc̄) 04:39, 8 September 2026 (UTC)
Ironically with AI assistance, inspired by the deleted edits query above, I tried making a list of distinct live pages @Gnomingstuff: had edited sorted by the maximum page size when they edited them, at first in all namespaces besides user and talk restricted to 2026, then, inspired by the above messages which I noticed in the meantime, just in the Wikipedia and user namespaces with no timestamp restriction. . Here's the first one, followed by the second; I went down to a few thousand bytes on both and couldn't find anything that grabbed my attention. Graham87 (talk) 04:50, 8 September 2026 (UTC)
Hi - I appreciate your doing this, since I don't really have time to go through these myself, but there's no need to ping me. Gnomingstuff (talk) 04:53, 8 September 2026 (UTC)
The mystery has been solved. Graham87 (talk) 07:00, 8 September 2026 (UTC)

Redoing some queries

Cryptic, (or someone else) could you someone redo these six queries from last year, and this time publish them in continuously updated database report pages? RanDom 404 (talk) 15:06, 12 September 2026 (UTC)

User:RanDom 404/Single-article editors for the category-based ones.
SDZeroBot has a low enough max query time that the first set, over all of mainspace, couldn't possibly finish unless split into very small batches, no more than one or maybe two letters each. And those would eventually break too. —Cryptic 17:02, 12 September 2026 (UTC)
Thank you! Can an additional query be made for articles created by users whose other edits were all reverted? RanDom 404 (talk) 18:05, 12 September 2026 (UTC)
Two variants, at quarry:query/109222 and quarry:query/109224. The second also allows unreverted edits to the same article. Both are very inaccurate, since most of 2001's history is lost (e.g. Special:Permalink/343672423 is the oldest edit in Belgium's history, but probably wasn't its actual creation), and since edits only started getting tagged as reverted in 2021. Neither is well-suited for running through {{database report}}. —Cryptic 20:04, 12 September 2026 (UTC)
That is a massive list. Could you create a version of the first of the two queries where the article must be part of Category:Articles lacking sources? RanDom 404 (talk) 20:09, 12 September 2026 (UTC)
quarry:query/109227. —Cryptic 21:00, 12 September 2026 (UTC)

Discussion at Wikipedia:AI noticeboard § "MediaWiki MCP Server"

 You are invited to join the discussion at Wikipedia:AI noticeboard § "MediaWiki MCP Server". sapphaline (talk) 09:37, 3 October 2026 (UTC)

New Page Reviewers

Could you please provide a lists from the 800+ holders of the WP:NPR user right who have:

Thanks. Kudpung กุดผึ้ง (talk) 04:01, 3 October 2026 (UTC)

quarry:query/109891 has the full list and counts. Click on the columns to sort. —Cryptic 04:46, 3 October 2026 (UTC)
Thank you so much for that quick reply. Kudpung กุดผึ้ง (talk) 05:07, 3 October 2026 (UTC)
All of the listed users with 0 edits are known alt accounts, btw; there's a list in the query at Wikipedia:Database reports/Inactive users with advanced permissions (edit to see). —Cryptic 05:13, 3 October 2026 (UTC)
As a follow on, is it possible to obtain the number of new articles created over the last 30 days where the creators had less than 100 edits? Kudpung กุดผึ้ง (talk) 08:53, 3 October 2026 (UTC)
1594. Will vary widely depending on what you consider a "new article created"; "any page created from a redlink directly in the main namespace" was most convenient. Number of edits at time of creation isn't feasible. —Cryptic 16:47, 3 October 2026 (UTC)
That's perfect thanks. Very revealing - 2 users had fewer than 10 edits which is below the autoconfrmed threshold for creating new articles. If you can possibly now now provide:
  • How many of those creators are blocked or partially blocked?
  • How many of those 1945 articles are tagged with the {{AI-generated}} tag?
Then we are done, and many thanks again. Kudpung กุดผึ้ง (talk) 21:37, 3 October 2026 (UTC)
Edited and re-run in place. Those two users were manually granted the confirmed group; their logs say they were at editathons. —Cryptic 22:14, 3 October 2026 (UTC)
Thanks :) Kudpung กุดผึ้ง (talk) 00:44, 4 October 2026 (UTC)

April 1 queries

I'm requesting two additional queries:

First one should be easier. RanDom 404 (talk) 19:42, 3 October 2026 (UTC)

To what purpose? What of use will, say, the first one tell you that Category:Articles lacking sources from April 2026 doesn't? I mean, I'm happy to datamine for things that will help Wikipedia, but if this is just to satisfy curiosity, I (or anyone else) am only likely to go along if it satisfies my/their curiosity too. —Cryptic 21:59, 3 October 2026 (UTC)
Those categories are for articles tagged in April, not articles created in April. The reason I'm requesting the queries is because I'm trying to detect hoax articles. RanDom 404 (talk) 23:38, 3 October 2026 (UTC)
None for 2026/04/01, so I reran it for April 1 in any year. quarry:query/109921. Only user with no edits except to that page is Graham Taylor for Thebarton Senior College in 2006. —Cryptic 01:42, 4 October 2026 (UTC)

Four queries

Cryptic, (or someone else) I am requesting the following queries. Hope this isn't too much work. If possible copy some of these to subpages of Wikipedia:Database reports:

(Would those last two take too long?) RanDom 404 (talk) 15:00, 15 September 2026 (UTC)

A query here addresses the first one. I've taken "articles" to mean "mainspace pages which are not currently redirects". As for the second one, my effort purports to show that there aren't any, but that may well be a bug. (Do you have any examples?) I've not attempted the third or fourth queries. Someone may like to combine the single-user query above with this query once the definitions are clear. Certes (talk) 16:00, 15 September 2026 (UTC)
That's going to be missing just about all article titles with spaces in them. actor_name is usually like user_name in that it doesn't replace spaces with underscores the way page_title does. Most (all?) exceptions are from imported edits, which is why Enter_the_Dragon is the only one in your results that shows up. —Cryptic 16:09, 15 September 2026 (UTC)
D'oh, I should have spotted that they were all single words! Thank you. There is also the issue of what is an "article": many pages have switched between article, redirect and dab over the years and it might be pragmatic just to declare that anything with rev_len > 100 was created as an article. And I expect many of them have had a page move which means the current title doesn't match that at creation. A bit of a minefield calling for many heuristics. Certes (talk) 16:26, 15 September 2026 (UTC)
User renames is also a stumbling block, and harder to detect. —Cryptic 16:50, 15 September 2026 (UTC)
Are there any updates on this, Cryptic? RanDom 404 (talk) 17:06, 3 October 2026 (UTC)
quarry:query/109922 is a fork of Certes' query with a column for edits to other pages, and also fixes the checked-for category to Category:All articles lacking sources (there are still only 18). quarry:query/109923 has mainspace pages with zero transclusions whose creator edited no other page. I don't think that criterion is a good indicator for what you're looking for; someone who creates a page as their first edit A) is already viewed with suspicion by their new page patroller, and B) can't have done that in mainspace to begin with, not for many years, so either someone moved it into mainspace for them or they're going to have another live edit at the redirect they left in Draft: or User: or wherever it was they moved it from. Besides, people who deliberately create hard-to-detect hoaxes usually build up a buffer of "good" edits to avoid those two issues: both lessening suspicion for A and getting able to create directly in mainspace without help for B. —Cryptic 02:50, 4 October 2026 (UTC)
This may be true with more elaborate hoaxes like Alan MacMasters, but in the majority of cases seen on the WP:HOAXLIST you'll find that the majority of Wikipedia's longest lasting hoaxes were created by users with few to no other edits. RanDom 404 (talk) 15:16, 4 October 2026 (UTC)

Intersection of Special:ActiveUsers and another set of users

What I would like is some way, maybe a Quarry query, of getting the intersection of Special:ActiveUsers and the list of editors at Wikipedia:WikiProject_Notability/Member_List#Inactive_or_former_members, so that I can send an encouraging message to re-sign up to the project, to all historical members of Wikipedia:WikiProject_Notability who are still active editors. Cheers, SunloungerFrog (talk) 21:58, 5 October 2026 (UTC)

A nice round quarry:query/110000.
Tracking down what precisely Special:ActiveUsers does was an adventure. "With any edits (or even any edits or logs) in the last n days" would have been much more straightforward.
Six of the usernames listed there aren't registered: Adam Black GB, ArchieMartin, DarkGlow, Explodicle, GeorgeLouis, Shruti14. Given the page's age, it's also quite likely some of those users have gotten renames and the listed username is just there to prevent impersonation; I didn't check for that.
Also, it's impossible to distinguish which section a link is in, so you're getting the six from the first section too. —Cryptic 02:10, 6 October 2026 (UTC)
That's brilliant, thanks! Cheers, SunloungerFrog (talk) 05:14, 6 October 2026 (UTC)

User lists

Hi Cryptic. If I give you a list of members of a WikiProject, can you make a separate list of the ones that have not edited Wikipedia for 24 months, and if so, what format do you need the list to be in? Kudpung กุดผึ้ง (talk) 03:27, 15 October 2026 (UTC)

(edit conflict) Not Cryptic, but that depends on how many members there are. Probably just a comma separated list, names in quotes. For example "BilledMammal", "Kudpung", "Cryptic". If there are several hundred, then a page with links to all their user pages would be better. BilledMammal (talk) 04:25, 15 October 2026 (UTC)
If there's more than a dozen or so, the easiest way to do it is to link them all from the same page, with no other userpage links. User talk links, or a mix of user and user talk, are ok too, like at Wikipedia:WikiProject Notability/Member List from the section above. —Cryptic 04:33, 15 October 2026 (UTC)
The list is at Wikipedia:WikiProject_Schools/Participants Kudpung กุดผึ้ง (talk) 04:38, 15 October 2026 (UTC)
quarry:query/110353. —Cryptic 05:03, 15 October 2026 (UTC)
Thanks! Kudpung กุดผึ้ง (talk) 11:18, 16 October 2026 (UTC)

Pages in Special:NewPagesFeed by how long they have been in the queue

For example, New Village Arts was created on 2023-10-14 but has only been in the NPP queue for a few weeks.

As a first pass, I'd like to have only those articles that have been in the queue for >90 days (which entails being older than 90 days, I guess). Knowing the number of those would be helpful for the RFC at Wikipedia:New pages patrol/2026 backlog discussion/RFC phase#Q5: Draftification permissibility in particular.

quarry:query/99823 does part of what I want, but as explained at User talk:Novem Linguae#Oldest pages in the queue it includes recent page moves. WhatamIdoing (talk) 06:23, 3 November 2026 (UTC)

This is hard. Thinking out loud:
  • Pagetriage doesn't itself keep track of when a page enters the queue. This right here is the real problem. It really really should, not to make datamining easier, but because that's the order that pages should be presented to reviewers in. Arguably it's the only reasonable order.
  • Page moves are logged only at the source title, not at the target title. The recent page move from Paul Galligan to Peter Paul Galligan, for example, shows no log entries at all for the latter. The only reason that the log entry on Paul Galligan shows the target page is because there's a serialized php data structure stuffed into it; it looks like a:3:{s:9:"4::target";s:19:"Peter Paul Galligan";s:10:"5::noredir";s:1:"0";s:17:"associated_rev_id";i:1383543811;}. That's not robustly parseable in sql (at least, not without functions, which we don't have permissions to create), though while you can sort of hack it apart with regex replacements to make it look pretty (and I've actually done that a couple times), it falls apart if some joker tries moving a page to a title like 4::target";s:496;"Ha ha ha";. More importantly, it's not indexed, and there's just too many log entries to deal with, even cutting it down to just the move log and just to entries post-dating the creation time.
  • The other approach that could maybe sort of work is looking for the dummy revision created during a page move, in this case Special:Diff/1383543811. That's at least indexable to the right page, but it's still much more fragile than I'd like. The lazy approach is to search by comment text, something like comment_text LIKE CONCAT('% moved page [[%]] to [[', REPLACE(REPLACE(page_title, '_', ' '), '%', '_'), ']]%'). Which is an awful hack, and just as ugly as it looks when you know sql as when you don't, but would probably work? Especially if I then compared its text to the revision just in front of it, which used to be easy - you couldn't and still can't see the actual page text, but there was a hash of it right in the revision table. Now that looks like it's been moved to content.content_sha1, with slots as a junction table. But I haven't followed its development, or even seen it before today, so I'm not so confident in writing queries against it.
  • Pages can also enter the triage queue if they're changed from a redirect to a nonredirect. There's a tag for that, mw-removed-redirect, so at least we can be confident that's really what happened, but it adds complexity.
  • Pages can also enter the triage queue if someone unreviews them, I think? I don't know what that looks like at the database level, or even if it's separately recorded at all except maybe in a log entry, that may or may not be reasonably searchable.
  • And, anyway, if a page entered the queue four years ago, and sat there and sulked until yesterday, when someone misclicked and reviewed it and then immediately unreviewed it, should it be considered as four years or one day old?
Novem Linguae's query looks like it's pulling from the entire page triage table, not just x days old. Which is good, since I can plug that into toolserver and get an idea of how efficient or not "not reviewed" is (very) and how many pages I'm looking at (a bit under 31000). Cut that down to ones that show a creation date at least 90 days ago, and there's 19033 pages with 468742 revisions among them. That's probably few enough that looking for the this-page-was-just-moved dummy revisions and the not-a-redirect-anymore tags can probably work. The fragility of it all makes me very very unhappy, though, and I haven't even started to write it.
Would it do any good to rant a while about how we know what the real problem with NPP is, and have for going on twenty years now? The backlog sure isn't it, and the software isn't either. —Cryptic 07:58, 3 November 2026 (UTC)
Just in case this is helpful: I came up with quarry:query/105716 a while back as part of some (still unfinished) work to look at prolific article creators. I convinced myself at the time that this was a good query to return moves from somewhere else to mainspace. But maybe it isn't: I freely admit this was lashed together with Copilot helping me, while eyeballing the results to see if they looked plausible. Cheers, SunloungerFrog (talk) 08:58, 3 November 2026 (UTC)
That only works while it's still in recentchanges, which only goes back 30 days. (Also it isn't querying where the page was moved to, just where it was moved from and where it currently is. Which looks right so long as you only test pages that were only moved once.) —Cryptic 09:09, 3 November 2026 (UTC)
On the plus side, it did get me to wondering if anyone had ever gotten around to fixing where log_page points at for moves (it was set to the newly-created redirect's page_id, which was almost entirely useless). Apparently they did in 2014, so 1. I've been killing myself with kludges for it for all this time for no reason, and 2. this suddenly got a whole lot simpler. —Cryptic 09:23, 3 November 2026 (UTC)
Well, I'm glad it was of some tangential benefit! Cheers, SunloungerFrog (talk) 09:27, 3 November 2026 (UTC)
Draft at quarry:query/110878, with very limited sanity checking, and not yet restricted to more than 90 days ago (except if page creation was too). Will check on how bad it looks tomorrow. —Cryptic 09:55, 3 November 2026 (UTC)
At least one element's missing, page undeletion. Gnar Lif3, which the query claims is the oldest queue entry, is (predictably) an example. Not sure offhand if there's a way after the fact to easily distinguish a complete undeletion from an undeletion of history behind an existing page. I'd hope pagetriage wouldn't put the latter back on the queue. —Cryptic 10:10, 3 November 2026 (UTC)
The date on which a page enters the queue is not currently tracked. It's been requested.
Can this be done through a multi-step process? For example, could we run a query to get a short list, then set a bot to check the page history for page moves between namespaces, and post an updated list on wiki?
I looked at items 96–100 (i.e., the last five on the first page when you sort by the 'reviewed_updated' column). They are:
All of them look like what I'm looking for. More recently (~90 days ago), there are:
If we could get a reliable list by queue date, then it would be possible to use it to provide extra points during a backlog drive (e.g., 1 point for a new article, 2 points for articles that have been in the queue for 91–364 days, 3 points for 365+ days). WhatamIdoing (talk) 17:49, 3 November 2026 (UTC)
We're not going to get a reliable list by queue date unless and until that bug is fixed properly.
And sort by last_entered_queue, not review_updated. I don't know what ptrp_review_updated is supposed to do, but it's not what it's documented to. (Or maybe it's documented right, but is just unusably broken.) Mirror (Yi Sang poem) was the "oldest" queue entry on another iteration of this. It has a ptrp_review_updated of 20240621094322, but was unreviewed by Pppery (alt) on 2026-06-24. (Possibly related that its initial review was before its move from Mirror (Yi Sang)?) There's no "added...to the New Pages Feed" log entry for plenty of the other cases, alas, in particular for restores. —Cryptic 18:38, 3 November 2026 (UTC)
Oh, I didn't realize there were so many columns. I could only see:
page title || created || reviewed_updated || last_un
I'm seeing about ~1600 that are over a year old. At exactly 1 year, that includes articles such as:
I don't think we need perfection in this task at the moment. WhatamIdoing (talk) 20:04, 3 November 2026 (UTC)
I used ptrp_review_update at https://quarry.wmcloud.org/query/110326 because it seemed sufficient for my interest in charting approximately how many articles created per day are still unreviewed, including to find the "back" of the queue. I didn't need precision, just a general sense. Dreamyshade (talk) 01:32, 4 November 2026 (UTC)
I don't currently think that it's imprecise. I think it does something else entirely, and we don't know what. Whatever it is, it definitely doesn't include "this page became unreviewed at this time", except perhaps by coincidence. —Cryptic 02:29, 4 November 2026 (UTC)

Most consecutive citations

In the vein of WP:Citation overkill, can someone write a query to find the most consecutive citations on a a page? 77551enpassant (talk) 19:47, 28 October 2026 (UTC)

Queries can't even detect citations on a page at all. I don't think the underpowered regex engine in search can do this either. You could in theory do it with a database dump, but it'd be really, really slow. (If someone does, WP:RECORDS would probably be interested in the answer too.) —Cryptic 21:13, 28 October 2026 (UTC)
A few years back I did see this calculated from a dump, but tragically I am now unable to find the analysis! (It was in a discussion on twitter and finding old stuff on there is a right pain these days). I don't think the result at that point exceeded any of the worst cases noted in Wikipedia:Citation overkill, however. Andrew Gray (talk) 18:27, 8 November 2026 (UTC)