[00:12:40] Aha. "Aggregate group" [00:15:30] It's beginning to take shape. [00:44:17] The method in question is https://www.mediawiki.org/wiki/Help:Extension:Translate/Unstructured_element_translation [04:59:54] There is no clear way to get a *sorted* prefix list via the API is there? [05:03:25] Nope. Random order. How... not helpful. [05:04:47] Coren: huh? [05:05:06] what's the query you're using? [05:07:45] action=query&list=prefixsearch [05:07:57] But that's okay, I'll just hit the DB [05:08:29] Coren: er, there is an API module, that's not it though :) [05:08:30] one sec [05:09:43] Coren: https://www.mediawiki.org/w/api.php?modules=query+allpages use the apprefix parameter [05:09:59] Coren: also see https://lists.wikimedia.org/pipermail/mediawiki-api/2015-December/003678.html :) [05:10:03] Yeay! You rock! [05:11:12] :) [09:18:49] [[Tech]]; 49.150.158.8; [none]; https://meta.wikimedia.org/w/index.php?diff=15221148&oldid=15218106&rcid=7237238 [11:18:20] [[Tech]]; Az1568; Reverted changes by [[Special:Contributions/49.150.158.8|49.150.158.8]] ([[User talk:49.150.158.8|talk]]) to last version by Zebulon84; https://meta.wikimedia.org/w/index.php?diff=15221645&oldid=15221148&rcid=7237897 [14:26:19] Anyone here would like to give me a hand writing a small module for me? [14:27:28] Coren, perhaps - whatcha got in mind? [14:28:15] myrcx: Not very complicated, conceptually. I'd like a function that places the page it is on in a category iff it is in no other categories. [14:28:52] I am presuming here that lua will allow you to check what categories a page is in. [14:29:57] If that's not possible, the next best thing would be a function that places a page in a category if that function is the only thing on the page. [14:30:42] I.e.: {{#invoke:blahblah|foo}} would place the page it is on in category foo if and only iff the only content of the page is the {{#invoke}}. [14:34:41] Coren, just checking to see if any of the LUA modules supports checking categories [14:35:10] might as well check to see if there's a 'native' way of doing it first [14:36:45] At first glance the title objects don't; which is why I expect the second way is the only way. [14:37:18] yeah it's looking like it [14:41:32] At least getContent() returns the unparsed content so I expect it's possible to do that on the {{FULLPAGENAME}}-equivalent and decide from there. [14:42:43] You know what, myrcx? Lemme try it first - I need to get some scribunto experience anyways. If I run into trouble, I'll run to you for help. :-) [14:43:31] Coren, oh I wouldn't if I were you :P I'm now half way through a random doc page :D I get distracted easily.. [14:43:52] good luck though, lemme know if you manage to get it going, I'd be interested to have a look [14:44:00] Thank you. [15:35:34] myrcx: https://wikimania2017.wikimedia.org/wiki/Template:Check_empty [15:37:31] more Wikimania stuff! Looks good - working? [15:38:02] It works. Its usefulness is not all that obvious right now, but that will become clear later. [19:05:42] Coren: instead of Anonymous.js, you can use MediaWiki:Group-user.css / MediaWiki:Common.css [19:06:20] Ooooh. Group-user.css Didn't think of *that* usergroup. [21:20:22] * Coren is learning to hate lua.