[09:56:46] Does anyone know if there is a tool that counts the number of times a template is used? [09:56:46] I know there are several ways to count the _number of pages_ a template is used on, but I'm interested in the _number of invocations_ of the template. For example, in [[:en:Queen (band)]], the "Cite web" template is used 193 times. [10:31:16] We don't record that. Your only option is to parse the wikitext via mwparserfromhell or something like that and count it which wouldn't count indirect transclusions (re @jhsoby: Does anyone know if there is a tool that counts the number of times a template is used? [10:31:16] I know there are several ways to count ...) [10:43:39] Thanks, that's what I suspected. I could write a script to do that, but what I'm interested in is the number of times `{{cite web}}` (and other citation templates, but that one is by far the most used) is used in the English Wikipedia, so that would basically involve parsing and counting practically every single article, which is not really feasible. But maybe I [10:43:39] could check a sam [10:43:40] ple of 10,000 articles or so, and extrapolate from that (re @Ladsgroup: We don't record that. Your only option is to parse the wikitext via mwparserfromhell or something like that and count it which w...) [10:45:47] You could get the html and look for some html markers maybe? I think parsoid output has something like that [10:46:06] yeah, that's true [12:25:13] We are excited to announce that *WikiForHumanRights 2025 in Nigerian communities is here again!* [12:25:13] This year’s campaign, themed *“Our Right, Our Future, Right Now,”* will feature vibrant contributions from *Anambra, Imo, Rivers, Gombe, Kaduna, Osun, and Kogi communities* as we come together to highlight the *Right to a Healthy Environment and Knowledge for a Sustainable Future*. [12:25:15] Kindly Check the meta page and register in your respective communities https://meta.m.wikimedia.org/wiki/WikiForHumanRights_2025_in_Nigeria [12:25:16] Time: Oct 2, 2025 05:00 PM West Central Africa [12:25:18] Join Zoom Meeting [12:25:19] https://us05web.zoom.us/j/81623340029 [12:25:21] Join us as we raise awareness, share knowledge, and take action to build a healthier, more sustainable future through open access to information. [12:25:22] Your voice matters. Your action counts. [12:25:24] Best Regards, [12:25:25] WikiForHumanRights 2025 in Nigeria Organizing teach [12:34:11] Hmm, is this related to hacking / code development? (re @Rushina99: We are excited to announce that *WikiForHumanRights 2025 in Nigerian communities is here again!* [12:34:12] This year’s campaign, themed *...) [13:27:43] I have some notes from over a decade ago mentioning a tool called TemplateTiger at Toolserver, which apparently has been migrated to Toolforge: https://templatetiger.toolforge.org — It might do something close to what you're after, though in my notes I wrote that it's about usage statistics of template parameters, not of templates themselves; but it seems likely [13:27:43] that it does su [13:27:43] pport the latter as well. There's some documentation (in English) here: https://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Vorlagenauswertung/en (re @jhsoby: Does anyone know if there is a tool that counts the number of times a template is used? [13:27:45] I know there are several ways to count ...) [15:04:51] signs point to no, I did also check a couple sections of the linked meta page (re @malyacko: Hmm, is this related to hacking / code development?) [15:13:05] Ah, you had my hopes going there for a second! I found TemplateTiger immensely useful when it worked, but it's been quite a few years since it did. (On the page you linked, it lists dumps from mostly 2017, but even disregarding that, it does nothing when you click the dbname.) (re @waldyrious: I have some notes from over a decade ago mentioning a tool called [15:13:06] TemplateTiger at Too [15:13:06] lserver, which apparently has been migrate...) [15:14:23] Is the source code open? I wonder if it might be worth getting it working again as opposed to making a similar tool from scratch 🤔 (re @jhsoby: Ah, you had my hopes going there for a second! I found TemplateTiger immensely useful when it worked, but it's been quite a few...) [15:16:11] T253424 [15:16:12] T253424: Determine if templatetiger is abandoned - https://phabricator.wikimedia.org/T253424