[11:21:59] Does PetScan or some other tool allow to query by template value? https://commons.wikimedia.org/wiki/Category:Kuusalu_Cemetery - I'd be nice to be able to use https://commons.wikimedia.org/wiki/Template:Kultuurim%C3%A4lestis to match the IDs there to the IDs in WD ... [11:22:12] Lucas_WMDE: you don't happen to know about this, do you? :D [11:22:49] not familiar with those tools at all, sorry… [11:24:10] though I’m sure it must be possible [11:30:49] reosarevok: maybe ask user:Rama, he's been doing some matching between Commons and Wikidata https://twitter.com/photos_floues/status/961351766410498049 [15:41:50] ping Lucas_WMDE do you know if it's possible to remove a sitelink with QuickStatement 2? I tried but without success :/ [15:42:01] (for instance -Q4115189 Sfrwiki "Wikipédia:Wikidata/Bac à sable") [15:42:08] hm, I think it should be possible [15:42:50] I think too but I'm must do something wrong somewhere :/ [15:44:41] https://www.wikidata.org/wiki/Help:QuickStatements only mentions statements. [15:45:46] sjoerddebruin: :( [15:46:38] but some line below you use CSV format), it mention "Any column header may also begin with "-" to remove the statement/label/… instead of adding it." does the « ... » include sitelinks? [15:47:39] and the instruction -Q4115189 Sfrwiki "Wikipédia:Wikidata/Bac à sable" give an error but at least it's understood by the tool (when the syntax is incorrect, usually the tool shows nothing at all) [15:48:23] ugh [15:48:25] https://github.com/lucaswerkmeister/quickstatements/blob/master/public_html/quickstatements.php#L837-L862 [15:48:34] looks like you can’t actually remove anything except statements [15:48:45] even though the *syntax* for removing sitelinks exists [15:48:48] I wasn’t aware of that [15:49:27] Lucas_WMDE: oh ok [15:49:32] thanks for the explanation [15:49:44] should I do a ticket or something? [15:52:15] should be relatively easy afaict [15:52:24] “setting” the sitelink to the empty string removes it [15:52:30] (https://www.wikidata.org/w/index.php?title=Q4115189&diff=628963802&oldid=628775610, tested via API sandbox) [15:54:11] hang on, wait! [15:54:23] this means that “setting” the sitelink to an empty value in QuickStatements should also work :D [15:54:26] lemme test that [15:55:22] Lucas_WMDE: empty value indeed removes it, I'll do that for now ;) [15:55:29] yup, it works :D [15:59:10] I’ve tried to update the English CSV documentation on ToolTranslate… no idea how long it’ll take to be visible [16:13:32] all 337 links to mowiki deleted, thank you Lucas_WMDE ! [16:13:50] hooray! [16:13:58] (what’s wrong with mowiki? seems to redirect to rowiki?) [16:14:14] yes, mowiki has been closed by the LangCom [16:15:11] ah, ok [16:16:15] or more exactly, it has been closed in 2006 but now they decided to delete the archive (more info on https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Deletion_of_Moldovan_Wikipedia_2 ) [16:17:01] …so we had sitelinks for a wiki that was closed half a decade before Wikidata even started? [16:17:35] (hm, okay, I’m not sure what exactly closing a wiki means… perhaps it still made sense) [16:18:45] closed wikis are just "frozen", so yeah we have some links to frozen page (and yes it's a bit weird, but in the end, not more weird than link to protected pages on enwiki, only the scale change) [16:20:09] okay, makes sense [16:20:14] thanks :) [16:21:27] by the way, maybe Wikidata should entirely delete the "mo" code (not even an ISO 639 code), including in labels, descriptions, aliases, etc. [16:28:31] I can’t find a single string with that language code in the query service [16:28:44] (though http://tinyurl.com/yacxmvby is an extremely inefficient query, I suspect) [16:37:58] Thiemo_WMDE1: Did you get a chance to look at the [very-WIP] patch I put up? [16:40:05] marktraceur: Not yet, sorry. [16:40:11] No problem :) [16:40:36] Thiemo_WMDE: I'm starting to work on some other stuff on MediaInfo (loading the WB editing interface mostly), so I'm not blocked-blocked [16:46:26] marktraceur: Nothing personal, just that you know: I usually don't look at WIP stuff except when specifically asked. [16:46:52] marktraceur: I just left a few comments on https://gerrit.wikimedia.org/r/391052 .I assume this is the patch we are talking about. [16:46:56] Thiemo_WMDE: Right, this was the WIP patch for the changes you suggested to make the lookup services "decorators", which I couldn't quite get a grasp on [16:47:29] Oh, pff, of course there's a $defaultLookup on the class. #fail [16:48:32] What I see there is a decorator. All goo. :-) [16:48:35] good [16:49:08] Thiemo_WMDE: I just don't see any way that all of these things get hooked up [16:49:23] Whats missing? [16:49:33] Thiemo_WMDE: Like, I could pass the default lookup into the service constructor, but where the constructor is called, I have no access to the default lookup (I think) [16:49:40] I'll take another look [16:50:50] I guess I can probably get the service like normal... [16:51:54] Indeed, the current patch misses something there. The parameter is not passed everywhere. ServiceContainer does not work this way. [16:52:42] Thiemo_WMDE: I saw something about "additional parameters" when I was digging through the fourth or fifth level of code, but I don't think that's the answer [16:59:29] marktraceur: Oh dear. :-) I do have a suggestion. [16:59:50] Split the code you are currently adding to the existing MediaInfoIdLookup to a separate file. [17:00:26] That is not managed via a service registry, but simply instantiated via "new …()" in the place where needed. That is the onGetEntityByLinkedTitleLookup hook handler. [17:02:48] Thiemo_WMDE: So instead of going through the service wiring stuff, just make MediaInfoIdLookup a normal class? [17:03:17] "decorator", perhaps. [17:34:34] marktraceur: Yea. Sorry, I#m off for today. [22:34:55] Wuz crackin' homies [22:58:59] Is there an API where I can get all locales currently supported by Wikidata? [23:07:10] tobias47n9e: action=paraminfo&modules=wbsetlabel gives you (among other things) the supported language codes for labels [23:08:08] not sure how to get all the codes for monolingual texts though [23:08:50] MIght this list be complete? https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all [23:09:08] not sure [23:11:44] Hmm well I guess I can delay language code type safety until later. Must concentrate on publishable version :)