[10:43:16] I added "{{Tableau qualificateurs|entity=Q356641|property=P275}}" to https://fr.wikipedia.org/wiki/Aide:Bac_%C3%A0_sable#Et_pour_les_tableaux... but it shows nothing. What did I do wrong ? [10:43:16] 10[1] 04https://www.wikidata.org/wiki/Template:Tableau_qualificateurs [10:46:30] the code of the module seems broken [10:48:11] dachary: line 50 "for i, claim in pairs(claims) do" -- 'claims' means nothing here [10:48:52] matej_suchanek: now I get that it's only for items that have instances, otherwise it will show nothing [10:50:22] Is there a less specific way to do the same kind of thing ? I.e. make a table with items that are "instance of" a given item ? [10:52:23] about the error, "if not claims then return '' end" should be between lines 113 and 114 [10:52:37] about the question, not yet [10:57:34] matej_suchanek: I see now. It fails because there is no match and should just create an empty table. [10:57:47] matej_suchanek: like so ? https://fr.wikipedia.org/w/index.php?title=Module%3ATableau_qualificateurs&type=revision&diff=127473536&oldid=119796540 [10:58:09] yes, somehing like that [10:59:19] it does not seem to break the existing code ( tried it at https://fr.wikipedia.org/wiki/Aide:Bac_%C3%A0_sable#Et_pour_les_tableaux... ) [11:00:00] is there a more formal process to edit lua scripts or is it just what I did ? i.e. modify the page + manual testing at the risk of breaking every page using it ? [11:00:39] under each edit window, you can preview it on a random page it is used on [11:01:13] or you can create a sandbox version and test it using [[Special:ExpandTemplates]] [11:01:14] 10[2] 04https://www.wikidata.org/wiki/Special:ExpandTemplates [11:05:22] I see it now and will do that the next time around, thanks. Should I take notes or is there a generic lua instruction page that explains this ? I should have read the fine manual... [11:06:52] do take notes as the most important know-how is not written anywhere [11:07:31] will do. I feel a little less guilty because I've not missed a well-written manual. [11:07:42] [[mw:LUAREF]] is about Lua itself [11:07:43] 10[3] 1010https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual - Redirección desde 10https://www.mediawiki.org/wiki/LUAREF?redirect=no [11:07:52] dachary, You could help me with this tutorial: https://www.wikidata.org/wiki/Wikidata:Infobox_Tutorial [11:08:29] tobias47n9e_: I'll proofread it after lunch if that can help ? [11:09:38] Sure any kind of input would be valuable at this point. Novices asking question and experts sharing experience. [11:09:54] ok. [11:10:04] bbl [11:46:24] tobias47n9e_: did you intend to link to https://test.wikidata.org/wiki/Module:Bananas instead of {{q|Q7220612}} in https://www.wikidata.org/wiki/Wikidata:Infobox_Tutorial#Basic_Knowledge_of_Module:Wikidata ? [11:46:25] 10[4] 10https://www.wikidata.org/wiki/Template:q [11:47:12] I meant in https://www.wikidata.org/wiki/Wikidata:Infobox_Tutorial#Modules [11:52:38] dachary, Yes. But I am also open to better examples. [11:58:47] tobias47n9e_: what about * Via the wikidata item {{q|Q7220612}} or directly to the corresponding [https://en.wikipedia.org/wiki/Module:Bananas|wikipedia page] [11:58:47] (or something along these lines). What confused me initially is that I did not realize I was expected to reach the wikipedia page via the wikidata page. Now I do but that was not my first reaction. [11:59:14] Yes. That is actually a good idea. [12:09:38] tobias47n9e_: like so https://www.wikidata.org/w/index.php?title=Wikidata%3AInfobox_Tutorial&type=revision&diff=352492095&oldid=352480684 ? [12:10:11] I can see how this is an additional burden to the translators though [12:10:35] dachary, Perfect. Thanks. [12:13:08] tobias47n9e_: I copy/pasted {{#invoke:Wikidata|getLabel|entity=Q212730}} from https://www.wikidata.org/wiki/Wikidata:Infobox_Tutorial#Using_Modules_in_Wikitext into https://en.wikipedia.org/wiki/Wikipedia:Sandbox and got a "Script error: The function "getLabel" does not exist." [12:15:20] dachary, On en-wiki the function might have a different name: https://en.wikipedia.org/wiki/Module:Wikidata [12:17:28] I see [12:17:56] dachary, It is like the wild west. Every language and every project will have their own Modules [12:19:42] dachary, But it might be good to add that function to the en-wiki module. Not sure why they don't have such an essential function. [12:24:05] tobias47n9e_: what about addint "It can be copy/pasted into the [[Wikidata:Sandbox|wikidata sandbox]] to experiment with it." after the output so that others do not accidentaly do the same mistake I did ? I.e. thinking wikipedia wikidata module would be the same as the wikidata wikidata module. [12:24:05] 10[6] 10https://www.wikidata.org/wiki/Wikidata:Sandbox [12:24:21] s/do the same/make the same/ [12:25:16] That sounds good too. But at some point most users will make that mistake, so I will have to mention that in the text a few times. [12:27:54] tobias47n9e_: a better fix would be to add the getLabel function to the wikipedia wikidata module then, right ? [12:28:37] dachary, Yes, but I think that can only happen through and edit request, becasue the page is protected. [12:29:20] The other really tricky part about sending people to test.wikidata to try things out, is that they usually assume that the same IDs exist on test.wikidata. Then they are suprised that the items are not found or contain totally different information. [12:30:34] tobias47n9e_: you mean that https://www.wikidata.org/wiki/Wikidata:Sandbox does not actually use wikidata but another base designed for tests ? Or is it about something different ? [12:32:19] dachary, That sandsbox will use the normal Wikidata items. I think only test.wikidata.org uses a separate wikibase installation. Compare: https://test.wikidata.org/wiki/Q167 https://www.wikidata.org/wiki/Q167 [12:32:57] understood, thanks for explaining [12:34:59] tobias47n9e_: https://www.wikidata.org/wiki/Wikidata:Infobox_Tutorial#Basic_Knowledge_of_Module:Wikidata clarifies all that already, I should have read on [12:38:10] dachary, Still good you noticed. Other readers might run into similar questions in the text, and clarification might be needed. [12:40:15] tobias47n9e_: what about moving "Using Modules in Wikitext" and "Using preview on Module" in a "Using modules" section *after* "Basic Knowledge of Module:Wikidata" ? [12:42:40] other than this the page reads well for me :-) I see that the "Infobox Tutorial" needs to be developped but it's a little be above my paygrade at the moment. [12:42:53] s/be above/bit above/ [12:43:01] dachary, Yes that sounds good too. [12:44:04] dachary, I am actually also very new to Lua, Modules etc... But the task has been open for ages (https://phabricator.wikimedia.org/T76229) and I have a week of vacation :) [12:48:52] tobias47n9e_: like so https://www.wikidata.org/w/index.php?title=Wikidata%3AInfobox_Tutorial&type=revision&diff=352503200&oldid=352502527 ? [12:49:51] dachary, Yes that looks better [14:03:47] * aude waves [14:59:21] is there a way to find out which other wiki pages are using an item? like how commons shows which pages on other wikis are using an image [15:01:23] nikki: good question [15:02:47] database [15:03:27] yeah it's somewhat traceable [15:03:33] someone should make a tool :) [15:05:02] I was playing about with making something that would tell me if an item was linked from osm and then it occurred to me that I can't even tell if a wikimedia project is using an item [15:18:06] https://www.wikidata.org/wiki/Q1996069 that is a very precise number of visitors... [15:18:24] lol [15:18:45] haha [15:19:04] hi Incabell :) [15:19:13] lol [15:20:56] hi aude! [15:21:21] Incabell: are you at the office next week? [15:21:35] yes! you're too, right? [15:22:11] yep [15:22:38] cool :) [15:22:40] * aude wants to go to the biergarten [15:22:48] :D can do [15:22:49] nikki: some decimal Humans visit every year to make sure the number is right [15:22:52] maybe on monday, since we have deployments on tuesday and wednesday [15:23:38] underlyingbot appears to have added a whole bunch of badly parsed numbers for visitors per year :/ [15:23:45] I already have plans monday evening :S but any other day should work [15:23:49] oh noes [15:24:05] (and that example wasn't even by that bot >_<) [15:24:10] maybe tuesday is okay, since it's just test.wikidata [15:25:55] sounds good! till when are in in Berlin? [15:26:29] i fly back on thursday [15:26:33] :( [15:26:41] sadly can't stay very long:( [15:27:23] * aude makes a calendar event for the biergarten [15:27:41] short time is better than no time at all [15:29:17] yeah [15:39:21] aude are you sure you put in the right date? that's the week after next week [15:39:56] sorry. missread m) [15:42:55] phew [15:43:32] I wish things like units and languages didn't involve a popup thing that moves the interface about... if I want to add qualifiers and references I spend more time trying to click things (and missing because the interface keeps moving) than I do actually adding data >_< [16:50:24] http://data.wmflabs.org/wiki/Template:Argentina_province_map [16:50:39] wikidata + maps geoshapes + graph magic :) [16:51:05] no static data! [16:51:09] :D [16:51:31] DanielK_WMDE, you are the person i wanted to talk to ! http://data.wmflabs.org/wiki/Template:Argentina_province_map [16:51:37] you missed my invite [18:54:07] DanielK_WMDE: I think you misunderstood https://gerrit.wikimedia.org/r/#/c/296793/ - it doesn't force default model, it works only on the pages that are NOT in default model [18:58:07] Hi tobias47n9e__ - is this where you were asking about pywikibot or is there another channel for that? [18:59:31] ArthurPSmith, There is also #pywikibot [19:01:25] got it! [19:59:30] !admin - can I get a bot flag for APSbot on test.wikidata.org? I'm trying to run the pywikibot unit tests (file wikibase-edit-tests.py) which don't seem to have been run by anyone for months. But I keep hitting the throttle limit... [20:19:13] surely [20:19:17] I will ask someone [20:19:49] thanks [20:21:54] ArthurPSmith, it's done [20:29:06] Excellent, much better for testing!