User talk:RexxS

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Please feel free to leave messages, comments, etc. here for me. I'll do my best to reply to you.

Tip: Categorizing images[edit]

Afrikaans | العربية | беларуская (тарашкевіца)‎ | català | čeština | dansk | Deutsch | Deutsch (Sie-Form)‎ | Ελληνικά | English | Esperanto | español | فارسی | suomi | français | galego | עברית | magyar | íslenska | italiano | 日本語 | ქართული | 한국어 | македонски | മലയാളം | Plattdüütsch | Nederlands | norsk | polski | português | português do Brasil | română | русский | slovenčina | slovenščina | српски / srpski | svenska | українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | ಕನ್ನಡ | ತುಳು | +/−


Hello, RexxS!
Tip: Add categories to your images

Thanks a lot for contributing to the Wikimedia Commons! Here's a tip to make your uploads more useful: Why not add some categories to describe them? This will help more people to find and use them.

Here's how:

1) If you're using the UploadWizard, you can add categories to each file when you describe it. Just click "more options" for the file and add the categories which make sense:

Uploadwizard-categories.png

2) You can also pick the file from your list of uploads, edit the file description page, and manually add the category code at the end of the page.

[[Category:Category name]]

For example, if you are uploading a diagram showing the orbits of comets, you add the following code:

[[Category:Astronomical diagrams]]
[[Category:Comets]]

This will make the diagram show up in the categories "Astronomical diagrams" and "Comets".

When picking categories, try to choose a specific category ("Astronomical diagrams") over a generic one ("Illustrations").

Thanks again for your uploads! More information about categorization can be found in Commons:Categories, and don't hesitate to leave a note on the help desk.

BotMultichillT 06:10, 26 July 2009 (UTC)

Note to self: Category:Underwater Diving is not the same as Category:Underwater diving.

✓ Done. --RexxS (talk) 16:08, 19 April 2011 (UTC)


Message tied up in Ribbon.jpg Hello, RexxS. You have new messages at Commons:Deletion requests/British Sub-Aqua Club.
You may remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

Asturianu | Беларуская (тарашкевіца)‎ | Български | বাংলা | Català | Čeština | Deutsch | Deutsch (Sie-Form)‎ | English | Español | Suomi | Français | Galego | हिन्दी | Magyar | Italiano | 日本語 | ქართული | Македонски | മലയാളം | Plattdüütsch | Nederlands | Português | Română | Русский | Slovenščina | Svenska | Türkçe | 中文(简体)‎ | 中文(繁體)‎ | +/−

File:Road Runner decal 2 Detail.jpg[edit]

Commons-emblem-issue.svg
File:Road Runner decal 2 Detail.jpg has been listed at Commons:Deletion requests so that the community can discuss whether it should be kept or not. We would appreciate it if you could go to voice your opinion about this at its entry.

If you created this file, please note that the fact that it has been proposed for deletion does not necessarily mean that we do not value your kind contribution. It simply means that one person believes that there is some specific problem with it, such as a copyright issue.

Please remember to respond to and – if appropriate – contradict the arguments supporting deletion. Arguments which focus on the nominator will not affect the result of the nomination. Thank you!

Afrikaans | العربية | беларуская (тарашкевіца)‎ | български | বাংলা | català | čeština | dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | Ελληνικά | English | Esperanto | español | eesti | فارسی | suomi | français | galego | עברית | hrvatski | magyar | Հայերեն | Bahasa Indonesia | íslenska | italiano | 日本語 | 한국어 | 한국어 (조선) | македонски | മലയാളം | Plattdüütsch | Nederlands | norsk nynorsk | norsk | occitan | polski | پښتو | português | português do Brasil | română | русский | sicilianu | slovenčina | slovenščina | shqip | српски / srpski | svenska | Türkçe | українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

Someone not using his real name (talk) 06:06, 26 January 2014 (UTC)

What you missed[edit]

Regarding this comment, see this one.--The Devil's Advocate (talk) 23:47, 28 May 2017 (UTC)

Thanks for pointing that out, TDA. I don't think it alters my point that VM was shopping at 'Shonen's page over the "(Germans) know a thing or two about crematoriums" comment. I know he'd already shopped at Drmies' and El C's talk pages about the explicit video, but surely James J. Lambden was in error by trying to claim that all three shopping trips were over the same edit? --RexxS (talk) 00:43, 29 May 2017 (UTC)
Seems more accurate to say VM was trying to get Bishonen to reconsider not blocking or taking some action against Dolet and trotted out past incidents such as that one to convince her.--The Devil's Advocate (talk) 00:50, 29 May 2017 (UTC)
That's perfectly possible, even if unprovable. Nevertheless, it's irrelevant to the point that James J. Lambden was peddling an untruth when claiming that all three urgings were for the same edit. --RexxS (talk) 01:52, 29 May 2017 (UTC)
I would note the statement right at the open of VM's message to Bishonen where he says "this is the latest incident" and then says "Just a few days prior to the incident with the video" and the header of his message to Bishonen contains the same "nearly blocked you" phrase as the header of Bishonen's message to Dolet. He was responding to Bishonen's statement to Dolet about not blocking that editor over the video and VM was arguing why she should have blocked him, or otherwise taken action.--The Devil's Advocate (talk) 03:36, 29 May 2017 (UTC)
Yes, I'm sure he was referencing 'Shonen's message to Dolet. But that doesn't alter the point that James J. Lambden assessment of "for the same edit" was completely inaccurate. --RexxS (talk) 12:45, 29 May 2017 (UTC)

Oddity with WikidataIB[edit]

Hi RexxS. Trying {{#invoke:WikidataIB|getValue|P735|name=forename|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}}} at Category:Sarah Stierch returns nothing, but change P735 to P734 and it works fine. Any ideas? Thanks. Mike Peel (talk) 21:04, 4 April 2018 (UTC)

It is odd, Mike, but in one sense, it's expected. If I look at d:Q5060734 (Sarah Stierch on Wikidata) her family name (Q35682629) shows as "Q35682629" to me, as if there were no label (Stierch) in my language for that wikidata-item. WikidataIB returns nothing by default if there's no article or label for a QID like Q35682629.
The strange part is that fetching the label directly for Q35682629 gives "Stierch"; asking for the local sitelink shows there isn't one (as expected):
  • {{#invoke:WikidataIB |getLink |Q35682629}}
  • {{#invoke:WikidataIB |getLabel |Q35682629}}
  • {{#invoke:WikidataIB |getAT |Q35682629}}
But enabling the "wikidata-link" in getValue() still returns nothing:
  • {{#invoke:WikidataIB |getValue |P735 |qid=Q5060734 |fetchwikidata=ALL |onlysourced=no |wdl=yes}}
It's as if there were a label, but that label is empty, which shouldn't happen. I need to track that down. --RexxS (talk) 00:38, 5 April 2018 (UTC)
A few more tests:
  • {{#invoke:WikidataIB/sandbox |labelorid |Q35682629}} → Stierch
  • {{#invoke:WikidataIB |getValue |P735 |qid=Q5060734 |fetchwikidata=ALL |onlysourced=no}}
  • {{#invoke:WikidataIB |getValue |P735 |qid=Q5060734 |fetchwikidata=ALL |onlysourced=no |noicon=true}}
  • {{#invoke:WikidataIB |getValue |P735 |qid=Q5060734 |fetchwikidata=ALL |onlysourced=no |noicon=true |sep="--"}}
There's a separator showing up, but no values. The label should display. --RexxS (talk) 01:30, 5 April 2018 (UTC)
I've been looking at P734 as if it were P735. All of the above work if invoked on en-wiki - you get Sarah, Alexandra linked to the articles for those names. Let's try again:
  • {{#invoke:WikidataIB |getValue |P734 |qid=Q5060734 |fetchwikidata=ALL |onlysourced=no}}
  • {{#invoke:WikidataIB |getLink |Q18201513}}
  • {{#invoke:WikidataIB |getLabel |Q18201513}} → Sarah
  • {{#invoke:WikidataIB |getAT |Q18201513}}
  • {{#invoke:WikidataIB/sandbox |labelorid |Q18201513}} → Sarah
On en-wp we want the wikibase items to be linked to their articles where they exist, but that's where the code gives blank on Commons. Should I make sandbox version without the attempt at linking? Do we use links anywhere here? --RexxS (talk) 02:08, 5 April 2018 (UTC)
Ah, that's the problem - it's adding the page to the category (see the bottom of the page) rather than displaying the link. Which is particularly ironic here, since I'm trying to use this to check if a category should be added, as most cases don't have the sitelinks so the code checks if "Category:<name> (surname)" exists before adding it! So what I'm after is just something that returns "Sarah" when given the sitelink + property number, which I guess is 'getRawValue' from Module:Wikidata, is there an equivalent to that here? Or maybe I should investigate systematically adding sitelinks for forenames/surnames on Wikidata and switching over to using those... (The Q-number for the surname was a caching issue, since I only added the label in English last night). Thanks. Mike Peel (talk) 11:06, 5 April 2018 (UTC)
@Mike Peel: I think it's better to give you tools to decide what you want. I've added switch called 'linked' to the sandbox code that enables or disables the site-linking. It's enabled by default, but can be turned off by setting |linked=no (or 'false' or '0' for JavaScript addicts) like this:
  • {{#invoke:WikidataIB/sandbox |getValue |P735 |qid=Q5060734 |fetchwikidata=ALL |onlysourced=no |linked=no}} → Sarah, Alexandra Edit this on Wikidata
Shall I just update the main module from the sandbox? It looks like the switch plays nicely with the current code. --RexxS (talk) 14:29, 5 April 2018 (UTC)
Testing {{Wikidata Infobox/sandbox}} at Category:Sarah Stierch with the sandbox of WikidataIB seems to work nicely now, thanks! If you can update the main module from the sandbox, that would be great, thanks! Mike Peel (talk) 14:56, 5 April 2018 (UTC)
@Mike Peel:
  • {{#invoke:WikidataIB |getValue |P735 |qid=Q5060734 |fetchwikidata=ALL |onlysourced=no |linked=no}} → Sarah, Alexandra Edit this on Wikidata
Done. --RexxS (talk) 15:35, 5 April 2018 (UTC)
I've integrated it into the main version of the infobox now, will let you know if any problems arise. Thanks! Mike Peel (talk) 15:39, 5 April 2018 (UTC)

Optimising {{GetQID}}[edit]

Hi RexxS. There's an issue with how long it takes to generate the infobox at Category:Poland, which goes away if the qid is manually specified, so it looks like {{GetQID}} is taking up a lot of processing time (mostly due to how many times it's called in the infobox now). I suspect that's due to {{#invoke:wd|property|raw|P301}}, which returns the QID of the value for category's main topic (P301). That module's quite complex, so I was wondering if you might be able to write a small Lua function that would do the job more efficiently here? Thanks. Mike Peel (talk) 18:16, 23 May 2018 (UTC)

@Mike Peel: I've done my best to make the getQid() function in Module:WikidataIB/sandbox as fast as I can. You call it like this:
  • {{#invoke:WikidataIB/sandbox |getQid}}
or
  • {{#invoke:WikidataIB/sandbox |getQid |qid=Q12345}} → Q12345
  • {{#invoke:WikidataIB/sandbox |getQid |qid=q12345}} → Q12345 (it capitalises the Q-number)
I tested the first form on en-wiki in en:Category:Alternative medicine where it returns Q188504; and in en:Douglas Adams where it returns Q42; and in en:User:RexxS where it returns nothing – all as expected (alternative medicine (Q188504), Douglas Adams (Q42)). Unfortunately I can't edit {{GetQID}} to test whether using the Lua call {{#invoke:WikidataIB/sandbox |getQid |qid={{{qid|}}} }} will speed up Category:Poland. Let me know if it helps. --RexxS (talk) 20:39, 23 May 2018 (UTC)
Thanks! I've created {{GetQID/sandbox}} and switched {{Wikidata Infobox/sandbox}} to using that, and it's sped up dramatically (from >10s of Lua runtime to around 1.5s). Could that function be moved to the main version of WikidataIB, or a separate module, so I can make that code live? (I don't want to transclude a sandbox on ~380,000 categories!) Thanks. Mike Peel (talk) 20:58, 23 May 2018 (UTC)
Sure, Mike. The function's now added in Module:WikidataIB. It's self-contained, so can be re-used anywhere. I should say that the code in Module:WikidataIB/sandbox is far more efficient in almost every function, so you ought to consider updating the main module from the sandbox sometime (which would also sync it with the en-wiki version). I don't really have much time to test here on Commons, so I'll have to rely on you to tell me when we can do the update here. --RexxS (talk) 21:22, 23 May 2018 (UTC)
Great, that's now live. Sorry I haven't had chance to test out the sandbox version of the main module yet - will do so soon. Thanks. Mike Peel (talk) 21:26, 23 May 2018 (UTC)

Testing WikidataIB/sandbox[edit]

Hi RexxS. I've switched {{Wikidata Infobox/sandbox}} over to Module:WikidataIB/sandbox for testing. Mostly it looks good so far. There is a glitch with the coordinates, though:

{{#invoke:WikidataIB/sandbox|getPreferredValue|P625|qid=Q36|fwd=ALL|maxvals=1|osd=no|noicon=yes|display=decimal|format=lat}}

currently returns 52°N 19°W, while:

{{#invoke:WikidataIB|getPreferredValue|P625|qid=Q36|fetchwikidata=ALL|maxvals=1|onlysourced=no|noicon=yes|display=decimal|format=lat}}

correctly returns just 52. It looks like it's the same for the latitude. You can see it live at Category:Poland (below the map). More soon! Thanks. Mike Peel (talk)

... actually, that's the only bug I can spot! I'm really impressed by the quals=ALL parameter! Thanks. Mike Peel (talk) 22:15, 25 May 2018 (UTC)
Hi Mike. I forgot to mention that Ederporto modified the getCoords() function in Module:WikidataIB, which makes it incompatible with the en-wiki version (hence what we have in the sandbox). The enwiki version uses 'display' for "title / inline" and 'format' for "decimal / dms" in both getValue and getCoords so that it can use Template:Coord for the getCoords function (I didn't want parameters doing different things in different calls). Unfortunately the commons version now uses 'display' for "decimal /dms" and 'format' for "latlong / lat / long" in getValue, but 'display' for "title / inline" in getCoords. The enwiki versions don't yet have any code to return just latitude or longitude, and I really need to sort out with Ederporto if we can get the parameter names consistent before I try to add another parameter to switch between "latlong / lat / long" in the newer versions. The reason the bug you found exists is that the functionality you are looking for is only found in the commons Module:WikidataIB at present.
There is fuller documentation of the new functionality at en:Module:WikidataIB/sandbox1/doc and some examples/testcases that you might find interesting at en:Module talk:WikidataIB/sandbox/testing. --RexxS (talk) 23:23, 25 May 2018 (UTC)
Aah, OK. The ability to display just the long and the lat in degrees is quite important for various map tools that take those as separate parameters rather than as a combined string, so it would be good if they could be added to the new version. I'll have a look at the documentation later today. Thanks. Mike Peel (talk) 13:30, 26 May 2018 (UTC)
BTW, I just tried getCoords, and that doesn't work here as Template:Coord isn't the same as on enwp. Thanks. Mike Peel (talk) 18:17, 26 May 2018 (UTC)

┌─────────────────────────────────┘
@Mike Peel: In case I wasn't clear: en:Template:Coord #Template Data specifies:

Display Where it is displayed. Can be one of: 'inline' in the body of the article, 'title' at the top of the article or 'inline,title' both
Format How the coordinates are displayed, either 'dec' or 'dms'

I've implemented a new parameter called |show= for want of a better name. In Brazil (Q155) this gives:

  • {{#invoke:WikidataIB/sandbox|getPreferredValue|P625|qid=Q155|fetchwikidata=ALL|maxvals=1|onlysourced=no|noicon=yes|format=decimal|show=lat}} → -14
  • {{#invoke:WikidataIB/sandbox|getPreferredValue|P625|qid=Q155|fetchwikidata=ALL|maxvals=1|onlysourced=no|noicon=yes|format=decimal|show=long}} → -53

Compare with:

  • {{#invoke:WikidataIB|getPreferredValue|P625|qid=Q155|fetchwikidata=ALL|maxvals=1|onlysourced=no|noicon=yes|display=decimal|format=lat}} → 14°S 53°W

Implementing the sandbox version will require changes to the parameter names in the templates where it is used. Pinging Ederporto for any thoughts.

I'm not surprised that Template:Coord doesn't work the same. If anybody feels the need to use the getCoords() function here, I'll have to revise it.--RexxS (talk) 18:27, 26 May 2018 (UTC)

Thanks! Those work well in the infobox, but there seems to be an issue with the map code at Template:Mapframe/Wikidata/sandbox as that requires {{#invoke:WikidataIB|getValue|P625|qid=Q155|fetchwikidata=ALL|onlysourced={{{onlysourced|no}}}|noicon=yes|display=decimal|format=longlat|{{{coordinates|}}}}} -> 14°S 53°W. Could you add the equivalent of that to the new version, please? Thanks. Mike Peel (talk) 18:40, 26 May 2018 (UTC)
Actually, never mind - I can just replace that with the pair of calls. Thanks. Mike Peel (talk) 18:43, 26 May 2018 (UTC)
@Mike Peel: One call is better: {{#invoke:WikidataIB/sandbox|getPreferredValue|P625|qid=Q155|fetchwikidata=ALL|maxvals=1|onlysourced=no|noicon=yes|format=decimal|show=longlat}} → -53, -14
Anything else apart from the multilingual? That will take a lot more looking into. --RexxS (talk) 19:39, 26 May 2018 (UTC)
Thanks, I've switched the code to use that now. I haven't spotted any other issues apart from the date handling - I'll let you know if any come up. Thanks. Mike Peel (talk) 20:03, 26 May 2018 (UTC)
There's a Lua bug in the coordinate code, see [1] for a live example/error messages. Thanks. Mike Peel (talk) 20:40, 26 May 2018 (UTC)
@Mike Peel: I didn't know that coordinates could be stored in Wikidata without giving a precision - as has happened for Ruins of St. Paul's (Q1551411). I've trapped the missing precision, so the error should have disappeared now. --RexxS (talk) 21:15, 26 May 2018 (UTC)
Thanks. I also didn't know that - weird! Mike Peel (talk) 21:19, 26 May 2018 (UTC)
OK, most things are looking good. The only remaining issue I can spot is that the dates for the qualifiers aren't multilingual - I don't suppose it's possible to run them through Module:Wikidata date, or incorporate that code's date handling into WikidataIB? Thanks. Mike Peel (talk) 19:02, 26 May 2018 (UTC)

Collapsing[edit]

  • Just as a thought: there are some cases like Category:Claire Danes where the infobox is very long due to a lot of values in one field. In those cases I'm wondering if we colud set a threshold of X characters after which the text is automatically collapsed using mw:Manual:Collapsible elements - what do you think? Thanks. Mike Peel (talk) 22:30, 27 May 2018 (UTC)
    • I think I can knock that up tomorrow. --RexxS (talk) 23:35, 27 May 2018 (UTC)

┌─────────────────────────────────┘
@Mike Peel: In the sandbox I've implemented a parameter |collapse= which sets the maximum number of items that can be returned before the content is collapsed. It works like |maxvals=: omitted or zero means no collapse. How does this look for Claire Danes (Q867813) and award received (P166):

  • <div style="width:135px">{{#invoke:WikidataIB/sandbox |getValue |qid=Q867813 |P166 |fwd=ALL |osd=no |linkprefix=":" |collapse=6}}</div>
Golden Globe Award for Best Actress – Television Series Drama, Primetime Emmy Award for Outstanding Lead Actress in a Miniseries or a Movie, Satellite Award for Best Actress – Miniseries or Television Film, Golden Globe Award for Best Actress – Miniseries or Television Film, Screen Actors Guild Award for Outstanding Performance by a Female Actor in a Miniseries or Television Movie, Satellite Award for Best Actress – Television Series Drama, Satellite Award for Best Actress – Television Series Drama, Satellite Award for Best Actress – Television Series Drama, Golden Globe Award for Best Actress – Television Series Drama, Golden Globe Award for Best Actress – Television Series Drama, Critics' Choice Television Award for Best Drama Actress, TCA Award for Individual Achievement in Drama, Primetime Emmy Award for Outstanding Lead Actress in a Drama Series, Primetime Emmy Award for Outstanding Lead Actress in a Drama Series, Screen Actors Guild Award for Outstanding Performance by a Female Actor in a Drama Series, London Film Critics Circle Award for Actress of the Year, MTV Movie Award for Best Female Performance, Young Artist Award, Young Artist Award Edit this on Wikidata

Here are some illustrative tests using Claire Danes (Q867813) and occupation (P106):

  • <div style="width:135px">{{#invoke:WikidataIB/sandbox |getValue |qid=Q867813 |P106 |fwd=ALL |osd=no |linkprefix=":" |collapse=4}}</div>
film actor, stage actor, television actor, actor Edit this on Wikidata
  • <div style="width:135px">{{#invoke:WikidataIB/sandbox |getValue |qid=Q867813 |P106 |fwd=ALL |osd=no |linkprefix=":" |collapse=3}}</div>
  • <div style="width:135px">{{#invoke:WikidataIB/sandbox |getValue |qid=Q867813 |P106 |fwd=ALL |osd=no |linkprefix=":" |collapse=0}}</div>
film actor, stage actor, television actor, actor Edit this on Wikidata

Let me know once you've tested it and I can implement it in the main module if you're satisfied. --RexxS (talk) 11:07, 28 May 2018 (UTC)

Making sandbox live[edit]

{{Wikidata Infobox/sandbox|qid=Q192724}} throws "Lua error in Module:WikidataIB/sandbox at line 558: attempt to index local 'artitle' (a nil value).", otherwise it looks good to me. If you can sort that bug out, then I suggest that we make the sandbox versions live today, and come back to the multilingual date issue a bit later, if that's OK with you? Thanks. Mike Peel (talk) 11:44, 28 May 2018 (UTC)
@Mike Peel: I could have sworn I fixed that once already. On Commons you may not be able to create a title corresponding to a given label, but we don't want to link to non-existent articles anyway. That should be fixed now. --RexxS (talk) 11:55, 28 May 2018 (UTC)
Maybe that was in the main version but not in the sandbox? I'm afraid I just spotted another issue - qualifiers probably need to apply the same 'linkprefix' as the main value, otherwise qualifiers that sitelink to categories end up transcluding the page in that category rather than displaying the name. Same example as before, look at the part of the series (P179) line. Thanks. Mike Peel (talk) 12:19, 28 May 2018 (UTC)
@Mike Peel: That's relatively easy to implement, as the code that governs the output for the qualifiers is the same as that for the main property value – I had merely set the link/pre/postfixes to "" for qualifiers, as I din't think they would be needed. I think that having them the same as the property link/pre/postfixes is too inflexible and I anticipate problems if there ever is a need to have them different, so I've created qprefix, qpostfix, qlinkprefix, qlinkpostfix as new parameters. Of course you can always pass the same infobox parameter to the two module parameters if your application works with that: |linkprefix={{{linkprefix|}}} |qlinkprefix={{{linkprefix|}}}, etc. I can't figure out what example you mean, but does the change allow you to fix the problem now? --RexxS (talk) 13:48, 28 May 2018 (UTC)
The more general approach sounds good. However, testing:
{{#invoke:WikidataIB/sandbox|getValue|rank=best|P179|name=series|linkprefix=":"|qlinkprefix=":"|list=ubl|qid=Q192724|fwd=ALL|osd=no|noicon=yes|qual=ALL}}
still seems to include the page in the categories given in the qualifier sitelinks. Thanks. Mike Peel (talk) 14:07, 28 May 2018 (UTC)
@Mike Peel: Good catch. I had misnamed the parameters when I re-passed them iteratively.
  • {{#invoke:WikidataIB/sandbox|getValue|rank=best|P179|name=series|linkprefix=":"|qlinkprefix=":"|list=ubl|qid=Q192724|fwd=ALL|osd=no|noicon=yes|qual=ALL}}Lua error in Module:WikidataIB/sandbox at line 1190: attempt to index local 'q' (a nil value).
Works now. --RexxS (talk) 19:14, 28 May 2018 (UTC)
That's great, thanks! I'm not sure where it gets the link for "1" from, as that's supposed to be a numerical value not an item link, but that's just a cosmetic issue. Thanks. Mike Peel (talk) 19:59, 28 May 2018 (UTC)
(Edit conflict) @Mike Peel: Unfortunately, the series ordinal (P1545) has a datatype of "string", which it is not. The "Integer datatype" is not yet implemented. Because it's currently a string, applying the qlinkprefix parameter triggers the linking (if you remember we needed to process urls) and there is a Category:1 for it to link to. I could disable linking for strings and retain it for urls, but I'm not sure what knock-on effects that would have. The other possibility would be to specify just the qualifier you want like this:
  • {{#invoke:WikidataIB/sandbox|getValue|rank=best|P179|name=series|linkprefix=":"|qlinkprefix=":"|list=ubl|qid=Q192724|fwd=ALL|osd=no|noicon=yes|qual=P156}}
Should I try suppressing linking of strings? A simple change to line 660 will do the trick. --RexxS (talk) 21:32, 28 May 2018 (UTC)
It can probably stay as it is for now, it's not a big issue (and I might actually just disable qualifiers from being shown with this property). Up to you if you want to try suppressing linking of strings, but that does sound like it could have side-effects... Thanks. Mike Peel (talk) 21:36, 28 May 2018 (UTC)
@Mike Peel: Ok. I've tracked down the original need for the link/pre/postfixes, which was so that we could generate links to sections of en:List of observatory codes by using the Minor Planet Center observatory code (P717). That has the "External identifier" datatype, so I could delink the strings without affecting those. I'll leave it for now, though. --RexxS (talk) 23:54, 28 May 2018 (UTC)
I've now updated the module and templates from the sandbox, let's see how that goes. Thanks. Mike Peel (talk) 21:27, 28 May 2018 (UTC)

Hey, I'm really sorry. I'm getting used with new job schedules and didn't had really much time to interact with the module or its functionalities and sync with others. I got the notifications, but didn't had time to see deep the codes, but whatever you guys do, I'm on board. I need to look at the module at ptwiki to see if there is anything out of date to sync (unfortunately, as I said some time ago, any synchronization has to be done with care, because some changes to meet local demands are not (and should not be, perhaps) implemented in enwiki), but looking over, this update on the mapframe code due to wikidataIB functionalities is awesome and cleans up a dirty code I made. Soon enough I'll be in my normal rate again, i hope. Good contributions, Ederporto (talk) 03:13, 30 May 2018 (UTC)

Monolingual text[edit]

Another oddity: {{#invoke:WikidataIB|getValue|rank=best|P1477|name=birthname|linkprefix=":"|qlinkprefix=":"|qid=Q16185856|spf={{{suppressfields|}}}|fwd=ALL|osd=no|noicon=yes|qual=ALL}} shows "Bleta Rexha" rather than "Bleta Rexha" at Category:Bebe Rexha (spotted after I reverted the removal of the infobox by a new-ish editor, I guess that was why). Thanks. Mike Peel (talk) 20:07, 30 May 2018 (UTC)

@Mike Peel: Not actually an oddity. Because the new code only reads properties as needed, it doesn't have access to the entire entity and we can't specify entity:formatPropertyValues(propertyID).value to deal with the cases of datatypes that the code doesn't yet have a handler for (as we used to do). If we go back to the using that, we have to load the whole Wikidata entity and we lose all the the advantages of lowering the load on the server as well as speed, and the ability to get specific watchlist notifications, etc.
The property birth name (P1477) has a datatype of "Monolingual text", so I've now written a handler for it in the sandbox.
Bebe Rexha (Q16185856), birth name (P1477)
{{#invoke:WikidataIB/sandbox|getValue|rank=best|P1477|name=birthname|linkprefix=":"|qlinkprefix=":"|qid=Q16185856|spf={{{suppressfields|}}}|fwd=ALL|osd=no|noicon=yes|qual=ALL}} → Bleta Rexha
As we come across new datatypes, I'll have to write handlers for them. I can't do that until I see an example, because there is absolutely no documentation that I can find that gives the structure of the different data types. I have to dump the property and examine it each time :(
I've made further changes to the enwiki sandbox module to try to minimise the issue of spurious "What links here". That means the synchronised code in Module:WikidataIB/sandbox is effectively untested again (although it's working fine in en:Module talk:WikidataIB/sandbox/testing), so if you intend to update the main module from the sandbox, do it at a time when you can catch any problems that turn up. Sorry we don't seem to have anything stable lately, but it's worth it to increase functionality while we are getting such good feedback. --RexxS (talk) 21:55, 30 May 2018 (UTC)
OK, I'm now using Module:WikidataIB/sandbox in {{Wikidata Infobox/sandbox}}. It looks good to me so far. I would deploy it now, but I guess it's late in the UK at the moment, so let's leave it to the morning. Thanks. Mike Peel (talk) 22:05, 30 May 2018 (UTC)
It's not late for me, of course, as I'm not at work in the morning – or the morning after, or ... [grinning from ear to ear]. Ok, though, the morning is fine. --RexxS (talk) 22:12, 30 May 2018 (UTC)
Up to you if you want to make a new version live or wait until the number formatting is resolved/tested. Thanks. Mike Peel (talk) 14:22, 31 May 2018 (UTC)

Bug[edit]

Category:Maria Goeppert-Mayer is showing "Lua error in Module:WikidataIB at line 735: attempt to index local 'lang' (a nil value)." Code to reproduce it: {{#invoke:WikidataIB/sandbox |getValue |P166 |qid=Q57100 |fwd=ALL |osd=no|qual=ALL}}. Thanks. Mike Peel (talk) 22:35, 1 June 2018 (UTC)

I hadn't set the language for qualifiers. Done now in both main and sandbox.
Checked at Category:Maria Goeppert-Mayer. Thanks! --RexxS (talk) 22:58, 1 June 2018 (UTC)
Thanks! Here's an odd one: Category:Old St Margaret's church tower, Lee is very close to longitude=0, and it looks like the scientific notation that the longitude is being returned in isn't compatible with Kartographer. I'm not sure if this is something that needs to be fixed with the Lua code or reported as a bug to the maps team... Thanks. Mike Peel (talk) 13:42, 2 June 2018 (UTC)
That was a tough one, Mike. First of all, {{Mapframe/Wikidata}} is very fragile. I often get a blank map when I preview for a second or subsequent time. This ought to work for Paris (Q90), but often doesn't:
{{Mapframe/Wikidata|zoom=9|width=200|height=200|qid=Q90}}
I can sort out the invalid value by forcing WikidataIB to always emit decimals, rather than switching to exponential form when the absolute value is less than 1e-4. For Paris (Q90) and Old Tower Of Former Church Of St Margaret (Q26487819)
  • {{#invoke:WikidataIB |getValue |rank=b |P625 |qid=Q90 |fwd=ALL |maxvals=1 |osd=no |noicon=yes |show=long}} → 2.351828
  • {{#invoke:WikidataIB |getValue |rank=b |P625 |qid=Q26487819 |fwd=ALL |maxvals=1 |osd=no |noicon=yes |show=long}} → -0.000068
Setting show to lat, long or longlat will automatically force decimal output, so no need to specify |decimal=. I still can't get a map to show in Category:Old St Margaret's church tower, Lee. The Wikidata entry has no area (P2046), so maybe it's not happy with the value of 15 from {{AutoMapZoom}}? Cheers --RexxS (talk) 17:07, 2 June 2018 (UTC)
Thanks, that's done the trick. It's odd that you sometimes get blank maps - they always show for me. :-/ Thanks. Mike Peel (talk) 17:14, 2 June 2018 (UTC)
Another one, sorry! Category:How I Met Your Mother is returning "Too many Wikidata entities accessed." It looks like it has a huge list of cast members on Wikidata. Is there a way of cutting off the list before that happens? Also, will you be at Wikimania this year? Thanks. Mike Peel (talk) 22:31, 4 June 2018 (UTC)
@Mike Peel: What would one expect with 482 statements for cast member (P161). I would suggest using maxvals in the template to limit the number of items returned to something palatable until such time as the servers can cope with those big numbers. I can't edit the template to help you, I'm sorry. I'm not going to Wikimania this year. --RexxS (talk) 22:48, 4 June 2018 (UTC)
I'd forgotten about maxvals - that seems to work nicely, thanks! Sad to hear that you won't be at Wikimania, hope to catch up in-person at Christmas then! Thanks. Mike Peel (talk) 23:10, 4 June 2018 (UTC)

Another one: {{#invoke:WikidataIB/sandbox |getValue |P31 |qid=Q2472824 |fwd=ALL |osd=no|qual=ALL}} -> "Lua error in Module:WikidataIB/sandbox at line 588: attempt to index local 'insval' (a nil value)." Thanks. Mike Peel (talk) 00:08, 7 June 2018 (UTC)

An odd one, Mike. The error wasn't showing up for me. However, I've removed the code that explicitly tests for a link to a dab page, as it's not helpful.
  • {{#invoke:WikidataIB/sandbox |getValue |P31 |qid=Q2472824 |fwd=ALL |osd=no |linkprefix=":" |qual=ALL}}society, building, reading museum Edit this on Wikidata
I've given reading museum (Q54141196) an English label now. --RexxS (talk) 17:00, 7 June 2018 (UTC)

Another, but this one's more subtle: at Category:Presença Feminina, "Category:Santo António, Madeira" is being shown for the headquarters location, but it's not clear where "Category:" is coming from. Is this connected to the discussion of showing the sitelinks rather than the label? Code to reproduce: {{#invoke:WikidataIB/sandbox |getValue |P159 |qid=Q54859736 |fwd=ALL |osd=no|qual=ALL|linkprefix=:}} Thanks. Mike Peel (talk) 03:16, 9 June 2018 (UTC)

@Mike Peel: Yes, that's exactly what it is. On Commons, we often use "Category:" as part of the sitelink. I've added the code to strip the namespace.
{{#invoke:WikidataIB/sandbox |getValue |P159 |qid=Q54859736 |fwd=ALL |osd=no|qual=ALL|linkprefix=:}}Santo António, Madeira Edit this on Wikidata
That allows sitelinks to be used where possible, on the assumption that they are more difficult to vandalise (I wish!). --RexxS (talk) 09:52, 9 June 2018 (UTC)
Thanks, that looks good now. It might be nice to have a switch to disable that in certain cases if needed, although it seems to be working well so far. On another topic, there's a Wikidata event here this weekend, so I might try to to test out the new version on ptwp. I think most of the changes there were just localisation, but there may be a few others that need figuring out. Thanks. Mike Peel (talk) 11:40, 9 June 2018 (UTC)
Thinking about this some more, it's best if the sitelink-rather-than-label feature is disabled here, if possible - see Category:Cape Town for an example of where it goes wrong (since South Africa - Ningizimu Afrika - Suid-Afrika - Afrika Borwa exists), plus it's English-only here since that's the default for the category names. Maybe a parameter like "usesitelinks=no" could be added that could be used to disable this here? Thanks. Mike Peel (talk) 01:11, 13 June 2018 (UTC)
Well, Mike, that's a bloody clever title for a page. Okay, rather than force anybody to add even more parameters, and because I'd like to keep this module sync'd with the enwiki one, I've simply detected whether the module is on Commons and, if it is, disabled the code that substitutes the sitelink for the label. Category:Cape Town seems to be behaving itself now. Cheers --RexxS (talk) 16:23, 13 June 2018 (UTC)
That sounds like a good solution, thanks! Mike Peel (talk) 16:28, 13 June 2018 (UTC)

Lua error in Module:WikidataIB[edit]

Hello, I think this edit made a bug. This is a error message in the Wikidata infobox : "Lua error in Module:WikidataIB at line 1109: attempt to call global 'findLang' (a nil value)." Christian Ferrer (talk) 17:15, 18 September 2018 (UTC)

@Christian Ferrer: Thanks for spotting that - I typed "findlang" instead of "findLang" in the declaration when I was tidying. Fixed now. Cheers --RexxS (talk) 22:02, 18 September 2018 (UTC)

Syncing the sandboxes?[edit]

There are quite a few changes stacked up in {{Wikidata Infobox/sandbox}} now ... Do you think Module:WikidataIB/sandbox and Module:Taxontree are ready to be made live? If so, then I can sync the infobox sandbox to the main version. I also ended up making {{Wikidata Infobox/line}} based on the helper templates you put together on enwp, so that the check to show the line is now the same WikidataIB call that is shown, which has cut down on the length of the template - thanks for that idea! Thanks. Mike Peel (talk) 11:09, 24 September 2018 (UTC)

@Mike Peel: Module:Taxontree is already live, of course. I've made a copy of the test cases for WikidataIB at Module talk:WikidataIB/testing, so we can see if the functionality remains after the sync. I suppose I ought to make a test cases page for the sandbox as well, but I'll do that later. I think the changes don't disturb the main logic of WikidataIB, so I don't expect problems with the previous functionality. Obviously we'll need to be alert to any issues arising from the new functionality, but I doubt that it will have much unexpected impact. I'd say go ahead and do the sync if you're okay with that. --RexxS (talk) 16:57, 24 September 2018 (UTC)
Right, they're now live! Thanks. Mike Peel (talk) 19:19, 24 September 2018 (UTC)
I just synced Module:WikidataIB/sandbox and en:Module:WikidataIB - hope nothing was lost doing that? I'm going to try using the new sitelink code to reduce the dependencies in the infobox. Thanks. Mike Peel (talk) 21:26, 15 November 2018 (UTC)
That's fine, Mike. I keep the master copy on my local PC anyway, so there's never anything lost. Today's version has had a good cleanup and a few bugs ironed out, so it's a good one to keep as the stable version for a while. You may find en:Module:WikidataIB #Helper_templates to be candidates for importing here, as all of them should reduce the load of an infobox by reducing the number of Wikidata calls. I'll try to find the time to have a look at a new function to de-dupe aliases and short names for you, maybe tomorrow. Cheers --RexxS (talk) 21:46, 15 November 2018 (UTC)
Thanks. I just saw en:Template:Formatter link - any chance of automatically pulling the URL string from Wikidata so that it could be used to improve Template:Wikidata ID line? Thanks. Mike Peel (talk) 21:50, 15 November 2018 (UTC)
@Mike Peel: Well, yes, but. You could just use:
  • {{Formatter link |url={{wdib |P1630 |qid=P267 |fwd=ALL |osd=n}} |code={{wdib |P267 |qid=Q26979 |fwd=ALL |osd=n |noicon=y |maxvals=1}} }}
Although hard-coding it into the line by passing it as an extra parameter to the line template would take less Wikidata calls, but be a little more work in setting up. You could use:
  • {{Formatter link |url={{{formatterurl|}}} |code={{wdib |P267 |qid=Q26979 |fwd=ALL |osd=n |noicon=y |maxvals=1}} }}
and pass e.g. |formatterurl=http://www.whocc.no/atc_ddd_index/?code=$1 to the line that displays ATC code, etc. Does that make sense? --RexxS (talk) 22:14, 15 November 2018 (UTC)
I'm trying to avoid hard-coding anything, so that if things are updated on Wikidata then they are updated everywhere else too. Trying the first call on enwp doesn't seem to work - the link doesn't seem to work and the code appears after the link. Thanks. Mike Peel (talk) 22:22, 15 November 2018 (UTC)
@Mike Peel: Bleh, I meant to suppress the pen icon in the call for the formatter url:
  • {{Formatter link |url={{wdib |P1630 |qid=P267 |fwd=ALL |osd=n |noicon=y}} |code={{wdib |P267 |qid=Q26979 |fwd=ALL |osd=n |noicon=y |maxvals=1}} }}
That works. It will be terrific opportunity for spammers who can find where the formatter url comes from on Wikidata. --RexxS (talk) 22:33, 15 November 2018 (UTC)

GetQID via properties other than P301[edit]

Hi RexxS. Would it be possible to modify the WikidataIB getQID function so that it can follow through more properties than just category's main topic (P301)? Over on en.Wikisource, @Billinghurst: is asking if we can do things like follow main subject (P921), and it might also be useful here to be able to follow category combines topics (P971). I guess the complication is where there are multiple values for the property, in which case having the option of being able to either use maxvals=1 or for it to loop through all of the values would be useful, but just using the first value would be OK for now. Thanks. Mike Peel (talk) 07:50, 8 October 2018 (UTC)

As a general comment with regard to the Wikisources, there is so much following relationships to get to a primary Wikidata item/Wikipedia article, or further to another Wikidata item

So we often have numbers of scenarios of needing to follow properties to connect to an interwiki rather than something neat. d:Wikidata:WikiProject Books shows the book <-> relationship, though won't cover articles.  — billinghurst sDrewth 11:39, 8 October 2018 (UTC)

@Mike Peel, Billinghurst: I've knocked up something that sort-of extends getQid as a first try. Here's the rough documentation:
----------------------------------------------------
followQid takes two optional parameters: qid and props
If qid is not given, it uses the qid for the connected page, or returns nil if there isn't one.
props is a list of properties, separated by punctuation.
If props is given, the Wikidata item for the qid is examined for each property in turn.
If that property contains a value that is another Wikibase-item, that item's qid is returned, and the search terminates.
If props is not given, the qid is returned.
----------------------------------------------------
Because I haven't been able to ascertain what you actually want returned, I've settled for the first match that it finds.
Category:Radiohead albums (Q3567), category combines topics (P971)Radiohead (Q44190)
  • {{#invoke:WikidataIB |followQid |qid=Q3567}} → Q3567
  • {{#invoke:WikidataIB |followQid |qid=Q3567 |props=P971}} → Q44190
Category:Porto (Q1366), category's main topic (P301)Porto (Q36433)
  • {{#invoke:WikidataIB |followQid |qid=Q1366}} → Q1366
  • {{#invoke:WikidataIB |followQid |qid=Q1366 |props=P971}} → Q1366
  • {{#invoke:WikidataIB |followQid |qid=Q1366 |props=P971, P301}} → Q36433
Breaking Bad (Q1079), main subject (P921)illegal drug trade (Q844924)
  • {{#invoke:WikidataIB |followQid |qid=Q1079}} → Q1079
  • {{#invoke:WikidataIB |followQid |qid=Q1079 |props=P971}} → Q1079
  • {{#invoke:WikidataIB |followQid |qid=Q1079 |props=P971, P301}} → Q1079
  • {{#invoke:WikidataIB |followQid |qid=Q1079 |props=P971, P301, P921}} → Q844924
Note that {{wdib|P921|qid=Q1079|fwd=ALL|osd=n}}illegal drug trade, dysfunctional family Edit this on Wikidata, but followQid just returns the QID of the first one it finds.
Thoughts? --RexxS (talk) 21:27, 8 October 2018 (UTC)

Displaying "has part" or nearby coordinates in maps[edit]

Fancy a challenge? It would be good if we could include the coordinates from the Wikidata items linked through has part (P527) in the infobox maps - or, if there aren't any, then the nearby items. Mapframe supports this, the trick is to feed in the coordinates and labels appropriately. There's an example of the mapframe code at Category:Haderslevbanen (but that's not properly on Wikidata yet). A useful test case might be Category:Teide Observatory - the telescopes that are part of the observatory mostly have locations on Wikidata. Is this possible with the existing Lua functions that you can tap into? If not, then I'd be tempted to request it through the community wishlist process. Thanks. Mike Peel (talk) 22:22, 31 October 2018 (UTC)

@Mike Peel: As I'm mentoring for Google Code-in for another six weeks, another challenge is definitely not high on my current wish-list. I don't know how to access d:Special:Nearby#/page/Q2013047 from the Wikibase client in Lua, so I'd have to find out if it's possible. In the meantime, the community wishlist looks like your best bet. --RexxS (talk) 23:17, 31 October 2018 (UTC)
OK, I'll post that on the wishlist. BTW, any objections to making Module:WikidataIB/sandbox live now? Thanks. Mike Peel (talk) 20:13, 1 November 2018 (UTC)
@Mike Peel: I've updated the sandbox to the latest version from en-wiki which implements the extended location function and getValueByRefSource. They should be working properly, so there's no reason not to catch up on the latest changes. --RexxS (talk) 23:27, 1 November 2018 (UTC)
The WikidataIB sandbox is now live. The map issue is now at m:Community Wishlist Survey 2019/Miscellaneous/Show nearby or related articles in maps. Thanks. Mike Peel (talk) 23:33, 2 November 2018 (UTC)
BTW, is there an easy way to fetch all labels/aliases/descriptions in all languages? I'm wondering if that might be useful as hidden text to help commons search results (see discussion at Commons:Village_pump#Having_internal_description_text_in_Commons_categories?). Thanks. Mike Peel (talk) 21:45, 4 November 2018 (UTC)
@Mike Peel: Getting access to the entire set of labels for an item as a simple wikibase client call is something I've been wanting for some time. The same goes for the complete set of sitelinks. I suppose it would also apply to the set of descriptions and the set of aliases. I could easily write a function to fetch any of those sets, but it would require fetching the entire entity object and extracting the relevant set. That is an expensive call if we're using arbitrary access. There is also then the problem that it then marks all of the item's Wikidata properties as being used by the calling page, which causes watchlist notifications to show so many irrelevant notifications that editors tend to turn those off. I'll write one or two of the functions for you to try out, so you can evaluate its effects for yourself. I suppose it might not be as bad as I think. --RexxS (talk) 23:07, 4 November 2018 (UTC)
Aah, OK. Is that how Module:Interwiki does things to get the complete list of sitelinks? Maybe it's something else that could go to the community wishlist. But if you can write something now, then we can see how much extra loading it puts on things as-is... Thanks. Mike Peel (talk) 23:43, 4 November 2018 (UTC)
@Mike Peel: Module:Interwiki does just that but wraps it up in a more foolproof container to deal with redirects, etc. Anyway, here we go for Norway (Q20):
  • Labels: {{#invoke:WikidataIB/sandbox |getAllLabels |qid=Q20}} → नर्वे (dty); Noregur (is); Norway (ms); Норвеги (os); ناروې (ps); INoweyi (ss); Norweje (ksh); ناروے (ur); Norvègia (oc); Norvegia (sc); Norsko (cs); Norveška (bs); Норвегие (ady); Norvège (fr); Norveška (hr); नॉर्वे (mr); ନରୱେ (or); Nuorvegėjė (sgs); Норвешка (sr); Norwegen (lb); Norge (nb); Norvegiya (crh); النرويج (ar); नॉर्वे (gom); Norway (cr); Nöörje (sma); Noruega (ast); Noruega (ca); Норвегия (ba); Norvegiya (gag); Nurvegia (lmo); Norvegjia (sq); نروژ (fa); Norvegiya (crh-latn); Norge (da); ნორვეგია (ka); ノルウェー (ja); Norvegia (ia); Norway (ha); النرويج (arz); Norwei (na); Norvegia (la); नार्वे (sa); Nolewai (haw); ਨੌਰਵੇ (pa); Norvedje (wa); Norway (en-ca); النورڤيج (ary); Нарвэгія (be-tarask); Nurveggia (scn); Norge (ts); Noruéga (pag); Nòrvexa (lij); Norwegen (stq); ནོར་ཝེ། (bo); Norge (nso); Nurvegia (co); Noruegia (nah); Norwey (bcl); Norvège (pcd); Norvegia (ro); Νορβηγία (pnt); Noaue (to); Norway (so); Норвеги (bxr); Nowe (tpi); Norwègia (ace); noreg. (jbo); ປະເທດນອກແວດ (lo); 노르웨이 (ko); Noreg (fo); Norvegio (eo); Norwegia (map-bms); Noruega (an); নরওয়ে (bn); Nò̤-ŭi (cdo); ولات نروج (lrc); נארוועגיע (yi); Norwegska (hsb); Na Uy (vi); Норгиче (inh); Noruega (rn); Norway (sn); Norawa (sco); Норвеги (mn); Noreg (nn); Norvège (ty); ಕಾಮೌ (kn); Norvej (ln); 挪威 (gan); Noruega (gn); Norwij (bm); ኖርዌይ (am); Норвегий (mhr); Norwec (diq); Naawie (jam); Norwega (pam); Norge (sm); Norvegia (rm); Norouague (nrm); Norway (om); ប្រទេសន័រវេ (km); ܢܘܪܒܝܓ (arc); Norvegiya (kaa); Norvegia (nov); Norvegeja (ltg); Норвегия (lez); Nọ́rwèy (yo); Норвегэ (kbd); Noorwees (wo); Norveška (sl); Noruwega (tl); ᏃᏪ (chr); Norwegia (pl); നോർവെ (ml); Noorwegen (nl); Norge (kl); Норвегия (sah); Noruega (gl); 挪威 (zh-hans); Norwygijo (szl); Norway (ak); Norway (en-gb); Nórsko (sk); Норвегія (uk); Norwegiýa (tk); Норвегие (mdf); Norweege (gsw); Norvegiya (uz); Норвегия (kk); Норвешка (mk); Norwegn (bar); नार्वे (bho); Noruega (ext); Noruega (cbk-zam); Норвегия Мастор (myv); ནོ་ཝེ་ (dz); Norvēgmō (liv); INoki (zu); Norveç (az); Norge (fj); Norwegia (gor); 挪威 (lzh); Норвег (koi); နော်ဝေနိုင်ငံ (my); 挪威 (yue); Норвегия (ky); Nò-vî (hak); Norway (bi); Noorwegen (zea); Norwegen (de-ch); Norwy (cy); Նորվեգիա (hy); 挪威 (zh); Noarwegen (fy); Norviegii (olo); Norwegen (pdc); Noruega (tet); Nurweka (ay); නෝර්වේ (si); Norvejiya (rmy); 挪威 (wuu); Norja (fi); Nōwei (mi); Norvegia (pms); Nowĩ (ki); Nôorweegn (vls); Norge (ch); Norwege (pfl); Norveghia (rup); ประเทศนอร์เวย์ (th); Norveška (sh); Норьско (rue); Norway (tum); Norveja (vec); Norveška (sr-el); Noruega (war); 挪威 (zh-sg); 𐌽𐌰𐌿𐍂𐍅𐌹𐌲𐍃 (got); Norweskô (csb); Norvegikondre (srn); Norvegia (io); Норвегия (tg); Nurvégia (eml); Norway (en); Noruveje (rw); Norvège (frc); Norwaii (pih); নরৱে (bpy); Норвегия (bg); Norway (tw); Norway (lg); Norge (kg); Norwegia (id); Norvezy (mg); Norge (sv); Norveggie (roa-tara); 挪威 (zh-mo); Norway (ig); 挪威 (zh-hant); Nörvêzi (sg); Norge (ny); نورۋېگىيە (ug); Norveç (tr); नार्वे (mai); Noorweë (af); Noruega (pap); Norlynn (gv); Nozveih (za); Norveġja (mt); Norway (gom-latn); Норвеги (cv); ނޯވޭ (dv); 挪威 (zh-my); Norway (hif); Норвегия (krc); Norway (tn); Nurvij (kab); Norwees (ff); Норвегия (kv); Norvēģija (lv); Norwega (ilo); Kinghą́ą́ʼ Haltsooí Dineʼé Bikéyah (nv); ნორვეგია (xmf); Nɔɔrɩvɛɛzɩ (kbp); Noruega (pt-br); Норвегия (tyv); Norgän (vo); नार्वे (pi); 挪威 (zh-cn); नर्वे (new); Norwegia (min); נורווגיה (he); Норвегия (av); نۆرویژ (ckb); النرويج (aeb-arab); Norway (ee); Norwegska (dsb); நோர்வே (ta); नॉर्वे (hi); ᓄᕐᒋ/nurgi (iu); Norvégia (hu); નોર્વે (gu); 挪威 (zh-hk); Norvegia (eu); Noruega (mwl); Норєгъ (cu); نوروژ (azb); Nurwiga (qu); Norwegen (de); Норвеги (ce); Нарвегія (be); Noruega (es); Noorwegen (nds-nl); Norwêc (ku); नर्वे (ne); Norway (ceb); Norwegen (de-at); Noorwege (li); Norwegen (nds); Norvegia (ie); Norge (st); Норвегия (tt); Norge (ve); نروژ (mzn); నార్వే (te); Norga (se); Norweegen (frr); Норвегия (ru); Norvegia (br); ناروے (pnb); Norvegia (it); Norwega (hil); Norvegia (nap); Nòvèj (ht); Norra (et); Норвегиа (ab); Noria (lfn); Norvèg·e (frp); Ноорскгин Нутг (xal); Норвешка (sr-ec); Norwégia (su); Noruega (pt); Norþƿeȝ (ang); An Iorua (ga); Norwegia (bjn); Norvegija (lt); Norge (ik); Lo̍k-ui (nan); Norvegii (vep); 挪威 (zh-tw); Norvegje (fur); Norwei (sw); Nirribhidh (gd); नॉर्वे (gom-deva); Νορβηγία (el); Norwégia (jv); Норвегия (udm); Norgagh (kw); Norra (vro); Norway (chy); Norvejia (lad); Норвеги (mrj)
  • Descriptions: {{#invoke:WikidataIB/sandbox |getAllDescriptions |qid=Q20}} → país de Europa (es); country in Northern Europe (en-gb); държава в Северна Европа (bg); stat în Europa de Nord (ro); 北歐國家 (zh-hk); štát v severnej Európe (sk); держава у Північній Європі, в західній частині Скандинавського півострова (uk); 北歐國家 (zh-hant); 北欧国家 (zh-cn); 북유럽에 위치한 나라 (ko); lando en Nordeŭropo, bordanta Nordan Maron, Atlantikon, kaj Arktan Oceanon, apud Svedio, Finnlando, kaj Rusio (eo); stát v severní Evropě (cs); उत्तरी यूरोप में एगो संबैधानिक राजतंत्र (bho); ইউরোপের রাষ্ট্র (bn); pays d'Europe du Nord (fr); konstitucijska monarhija sjeverne Europe (hr); 北欧国家 (zh-my); мастор Пелевеёнкс Европасо (myv); stat w sewjernej Europje (hsb); Nước quân chủ lập hiến tại Bắc Âu (vi); pagilian idiay Amianan nga Europa (ilo); уставна монархија у северној Европи (sr); país no norte da Europa (pt-br); 北欧国家 (zh-sg); land i Nord-Europa (nn); land i Nord-Europa (nb); ಜಪಾನ್ನ ಪ್ಯ್ಹುಯುಕೋಕಾ ಪ್ರಿಫೆಕ್ಚರ್ನಲ್ಲಿರುವ ನಗರ (kn); constitutional monarchy in Northern Europe (en); دولة في أوروبا الشمالية (ar); állam Észak-Európában (hu); estáu d'Europa (ast); país d'Europa (ca); Staat in Nordeuropa (de-ch); Staat in Nordeuropa (de); Tír in iarthuaisceart na hEorpa (ga); држава у северној Европи (sr-ec); 北欧国家 (zh); land i Nordeuropa (da); სახელმწიფო ჩრდილოეთ ევროპაში, სკანდინავიის ნახევარკუნძულზე (ka); 北ヨーロッパに位置する国家 (ja); Staat in Nordeuropa (de-at); Un Land in Europa (ie); מדינה בסקנדינביה שבצפון אירופה (he); civitas Europae (la); ఉత్తర ఐరోపాలోని ఒక దేశం (te); valtio Pohjois-Euroopassa (fi); country in Northern Europe (en-ca); ஐரோப்பிய நாடு (ta); Stato dell'Europa settentrionale (it); riik Põhja-Euroopas (et); paìsi nta l'Europa dû Nord (scn); država u severnoj Evropi (sr-el); χώρα της βόρειας Ευρώπης (el); بلاد فشمال ؤروپا (ary); उत्तरी युरोपको देश (ne); государство в Северной Европе (ru); ਉੱਤਰੀ ਯੂਰਪ ਵਿੱਚ ਦੇਸ਼ (pa); konstitutionell monarki i Nordeuropa (sv); país no norte da Europa (pt); Kuzey Avrupa'da bir ülke (tr); ราชอาณาจักรในยุโรปเหนือ (th); nchi katika Ulaya Kaskazini (sw); നോർവേ (ഔദ്യോഗികമായി കിങ്ഡം ഓഫ് നോർവേ) വടക്കൻ യൂറോപ്പിലെ ഒരു രാജ്യമാണ് (ml); land in Noord-Europa (nl); 北歐國家 (zh-tw); państwo w Europie Północnej (pl); negara Monarki di Eropa Utara (id); պետություն Հյուսիսային Եվրոպայում՝ Սկանդինավյան թերակղզու արևմտյան մասում (hy); país nórdico (gl); کشوری در قاره اروپا (fa); 北欧国家 (zh-hans); 北歐國家 (zh-mo)
  • Aliases: {{#invoke:WikidataIB/sandbox |getAllAliases |qid=Q20}} → Reino de Noruega (es); Norge, Kongeriket Noreg, Kongeriket Norge, Kingdom of Norway, Noreg, 挪威王國, Norway (yue); Norvég Királyság (hu); Reinu de Noruega (ast); Regne de Noruega, Norvègia (ca); Königreich Norwegen (de-ch); Königreich Norwegen (de); Նորվեգիայի Թագավորություն (hy); 挪威王国 (zh); ნორვეგიის სამეფო (ka); 挪威王國 (zh-hk); Königreich Norwegen (de-at); Kerajaan Norwegia (id); Королівство Норвегія (uk); 挪威王国 (zh-hans); 挪威王國 (zh-hant); 挪威王国 (zh-cn); นอร์เวย์, Norway, ราชอาณาจักรนอร์เวย์, Kingdom of Norway (th); Norge, Noreg (fi); Royaume de Norvège, 🇳🇴 (frc); Norvegujo, Reĝlando Norvegio, NO, NOR (eo); Noreg, Norge, Королевство Норвегия (ru); நோர்வே, ஐரோப்பா, நார்வே, நோர்வே பேரரசு (ta); Regno di Norvegia, Noreg, Kongeriket Norge, Kongeriket Noreg (it); Norveç Krallığı (tr); Royaume de Norvège, 🇳🇴, NO, NOR (fr); नॉर्वे, आधी रात के सुरुज के देस (bho); Нарвэґія (be-tarask); Кралство Норвегия (bg); 挪威王国 (zh-my); NO (nl); ממלכת נורבגיה, נורבגיה, ממלכת נורווגיה (he); Kongeriket Norge, Noreg, Kongeriket Norge/Noreg (nb); Norveggia (scn); Na uy (vi); Norþweg (ang); Kongeriket Noreg, Norge (nn); Norvegėjė (sgs); Краљевина Норвешка, Норге, Норвеге, NO, NOR, no, Noreg, 🇳🇴, Норвеген, Норвешко Краљевство (sr); Noorweagen, Noorweeg, Noorweagn (nds-nl); Norra Kuningriik (et); Reino da Noruega (pt-br); 挪威王国 (zh-sg); Noruwega (ceb); Norway, Nô͘-ui, Norge (nan); നോർവേ, കിങ്ഡം ഓഫ് നോർവേ (ml); 挪威王國 (zh-tw); Kralestwo Norwegska (hsb); Regatul Norvegiei, 🇳🇴 (ro); 挪威王國 (lzh); 挪威王國 (zh-mo); Kingdom of Norway, Norge, Norvège‏, NO, NOR, no, Noreg, 🇳🇴, Norwegen‏ (en); NO, NOR, no, Norveško kraljevstvo (hr); Βασίλειο της Νορβηγίας (el); नॉर्वे (hi)
Others items may be smaller. Just leave the |qid= as blank if you want to use it on the current page as that's cheaper. Cheers --RexxS (talk) 00:59, 5 November 2018 (UTC)
Thanks! Unless I'm missing something, that doesn't look too expensive for the servers according to the parser profiling data, so it's now in the infobox sandbox for testing. Thanks. Mike Peel (talk) 10:06, 5 November 2018 (UTC)
I synced the sandbox versions over, so it's now live, and seems to be working OK. Checking Category:Pages with script errors, there are a few hundred cases with a Lua bug in WikidataIB, but it seems to be unrelated - e.g., Category:Bolivarian Intelligence Service, "Lua error in Module:WikidataIB at line 904: attempt to get length of global 'out' (a nil value)." Thanks. Mike Peel (talk) 14:48, 5 November 2018 (UTC)
@Mike Peel: That's a result of me missing a single instance where I changed from a table of values to a single value for coordinates. The fix is in the sandbox. --RexxS (talk) 19:06, 5 November 2018 (UTC)
Thanks, that seems to fix the problem, I've copied it over into the main version now. Thanks. Mike Peel (talk) 19:18, 5 November 2018 (UTC)

too many hats![edit]

I have an (too me) interesting task. It is on a stack of other interesting tasks, some of which I am good at. There is one that you might be interested in or perhaps know of an interested participant. This is the task:

At wikisource there is a beautiful old document which is unfortunately a cludge of journals and without an easy to navigate table of contents.

The module there has allowed me to very, very easily create an article to article navigation. The TOC creation requires using different data entities which that module is not robust enough to accomplish.

I did this: https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q56810356%7CP1476 Looked. Smiled. Came home to the commons and quickly to here.

For a sensible TOC, (these articles are taxonomy based, one set of "family" with its own navigation and another set of species, with a separate navigation. And at this point, I am beginning to articulate ideas that will show how much this hat does not fit me now.

At wikidata, d:Q56760778 is almost a complete TOC for Part 1. This particular document (iirc) uses the word "Part" in (at least) two different ways, so beware....

Interested?--RaboKarbakian (talk) 18:18, 10 December 2018 (UTC)

@RaboKarbakian: My usual role in these sort of cases is to provide the tools to do a job, principally because I rarely understand what is actually required as the finished product. Let me offer you a selection of what there is already:
For has part (P527) in The Botany of the Antarctic Voyage, Part I (Q56760778):
{{wdib |ps=1 |P527 |qid=Q56760778 |list=ubl |lp=":"}}
  • Ranunculaceæ
  • Cruciferæ
  • Caryophylleæ
  • Droseraceæ
  • Geraniaceæ
  • Rosaceæ
  • Onagraræ
  • Halorageæ
  • Myrtaceæ
  • Portulaceæ
  • Crassulaceæ
  • Umbelliferæ
  • Araliaceæ
  • Rubiaceæ
  • Compositæ
  • Stylidieæ
  • Lobeliaceæ
  • Epacrideæ
  • Myrsineæ
  • Gentianeæ
  • Boragineæ
  • Scrophularineæ
  • Plantagineæ
  • Urticeæ
  • Orchideæ
  • Polygoneæ
  • Asphodeleæ
  • Junceæ
  • Restiaceæ
  • Cyperaceæ
  • Gramineæ
  • Filices
  • Musci
  • Hepaticæ
  • Fungi
  • Algæ
  • Lichenes
  • Alphabetical index
I assume that you would want these sorted by series ordinal? At present they are sorted according to their position on Wikidata. The last one isn't part of the series and has no series ordinal, so is it okay at the end?
If you want to see what a particular Wikidata entry looks like in detail for a given property, I wrote a little function to display it:
For has part (P527) in The Botany of the Antarctic Voyage, Part I (Q56760778):
Extended content
{{examine||P527 |qid=Q56760778}}
table#1 {
  table#2 {
    ["id"] = "Q56760778$17b25937-4171-523a-8e2b-dac0666a91db",
    ["mainsnak"] = table#3 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#4 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#5 {
          ["entity-type"] = "item",
          ["id"] = "Q56730917",
          ["numeric-id"] = 56730917,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#6 {
      ["P1545"] = table#7 {
        table#8 {
          ["datatype"] = "string",
          ["datavalue"] = table#9 {
            ["type"] = "string",
            ["value"] = "1",
          },
          ["hash"] = "2a1ced1dca90648ea7e306acbadd74fc81a10722",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#10 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#11 {
    ["id"] = "Q56760778$22196566-469c-840d-8d85-3dc0cf4290f2",
    ["mainsnak"] = table#12 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#13 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#14 {
          ["entity-type"] = "item",
          ["id"] = "Q56613545",
          ["numeric-id"] = 56613545,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#15 {
      ["P1545"] = table#16 {
        table#17 {
          ["datatype"] = "string",
          ["datavalue"] = table#18 {
            ["type"] = "string",
            ["value"] = "2",
          },
          ["hash"] = "7241753c62a310cf84895620ea82250dcea65835",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#19 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#20 {
    ["id"] = "Q56760778$4ff627e6-4a19-56ff-45f4-9fff01323321",
    ["mainsnak"] = table#21 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#22 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#23 {
          ["entity-type"] = "item",
          ["id"] = "Q56761446",
          ["numeric-id"] = 56761446,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#24 {
      ["P1545"] = table#25 {
        table#26 {
          ["datatype"] = "string",
          ["datavalue"] = table#27 {
            ["type"] = "string",
            ["value"] = "3",
          },
          ["hash"] = "0e979f28bf306fefdcd352b4eb8dee5da2153a6d",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#28 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#29 {
    ["id"] = "Q56760778$5902579b-44ad-adf7-6158-ece6f9e08dd9",
    ["mainsnak"] = table#30 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#31 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#32 {
          ["entity-type"] = "item",
          ["id"] = "Q56762034",
          ["numeric-id"] = 56762034,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#33 {
      ["P1545"] = table#34 {
        table#35 {
          ["datatype"] = "string",
          ["datavalue"] = table#36 {
            ["type"] = "string",
            ["value"] = "4",
          },
          ["hash"] = "cbff8d4b3b7b35f905ef3147a7a6cb88845a774f",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#37 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#38 {
    ["id"] = "Q56760778$d57d205c-4c54-9155-6004-a14ec1be0dc4",
    ["mainsnak"] = table#39 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#40 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#41 {
          ["entity-type"] = "item",
          ["id"] = "Q56762059",
          ["numeric-id"] = 56762059,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#42 {
      ["P1545"] = table#43 {
        table#44 {
          ["datatype"] = "string",
          ["datavalue"] = table#45 {
            ["type"] = "string",
            ["value"] = "5",
          },
          ["hash"] = "ea4583c18f699186700d21642b477a2dc1d345c8",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#46 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#47 {
    ["id"] = "Q56760778$15eeea8e-49cc-ed37-0e58-ba239ea72fb2",
    ["mainsnak"] = table#48 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#49 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#50 {
          ["entity-type"] = "item",
          ["id"] = "Q56783209",
          ["numeric-id"] = 56783209,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#51 {
      ["P1545"] = table#52 {
        table#53 {
          ["datatype"] = "string",
          ["datavalue"] = table#54 {
            ["type"] = "string",
            ["value"] = "6",
          },
          ["hash"] = "32387bd293902a2430b5bb680033d36ecea00dd0",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#55 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#56 {
    ["id"] = "Q56760778$64c74f99-4868-c9f9-262b-7013b4350e04",
    ["mainsnak"] = table#57 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#58 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#59 {
          ["entity-type"] = "item",
          ["id"] = "Q56668940",
          ["numeric-id"] = 56668940,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#60 {
      ["P1545"] = table#61 {
        table#62 {
          ["datatype"] = "string",
          ["datavalue"] = table#63 {
            ["type"] = "string",
            ["value"] = "7",
          },
          ["hash"] = "9a4403310d2d27312d0a93830981a1e51b735843",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#64 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#65 {
    ["id"] = "Q56760778$fdee3dbd-4761-ce53-3b9b-1fd790da5ccf",
    ["mainsnak"] = table#66 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#67 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#68 {
          ["entity-type"] = "item",
          ["id"] = "Q56810087",
          ["numeric-id"] = 56810087,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#69 {
      ["P1545"] = table#70 {
        table#71 {
          ["datatype"] = "string",
          ["datavalue"] = table#72 {
            ["type"] = "string",
            ["value"] = "8",
          },
          ["hash"] = "94d4f77373c2051829a238495246b458b7737ef9",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#73 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#74 {
    ["id"] = "Q56760778$a6d752ac-4c75-7929-2966-e0f844be2e7b",
    ["mainsnak"] = table#75 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#76 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#77 {
          ["entity-type"] = "item",
          ["id"] = "Q56810108",
          ["numeric-id"] = 56810108,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#78 {
      ["P1545"] = table#79 {
        table#80 {
          ["datatype"] = "string",
          ["datavalue"] = table#81 {
            ["type"] = "string",
            ["value"] = "9",
          },
          ["hash"] = "a9a9c98c803f52f2debc2c74270b3bd0c1f753d9",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#82 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#83 {
    ["id"] = "Q56760778$1a950aff-4951-63d8-a1dd-ee49d8080917",
    ["mainsnak"] = table#84 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#85 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#86 {
          ["entity-type"] = "item",
          ["id"] = "Q56810202",
          ["numeric-id"] = 56810202,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#87 {
      ["P1545"] = table#88 {
        table#89 {
          ["datatype"] = "string",
          ["datavalue"] = table#90 {
            ["type"] = "string",
            ["value"] = "10",
          },
          ["hash"] = "51210afb13f62d7537a51c61ba9b9586db143c24",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#91 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#92 {
    ["id"] = "Q56760778$3251435e-4786-438b-e655-f0cef6cb1dc5",
    ["mainsnak"] = table#93 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#94 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#95 {
          ["entity-type"] = "item",
          ["id"] = "Q56810224",
          ["numeric-id"] = 56810224,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#96 {
      ["P1545"] = table#97 {
        table#98 {
          ["datatype"] = "string",
          ["datavalue"] = table#99 {
            ["type"] = "string",
            ["value"] = "11",
          },
          ["hash"] = "4fda4e2a606f90da339710b3368ca24eb2d05ec1",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#100 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#101 {
    ["id"] = "Q56760778$a81c4265-47c3-3714-482c-7bfe686f9c63",
    ["mainsnak"] = table#102 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#103 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#104 {
          ["entity-type"] = "item",
          ["id"] = "Q56810246",
          ["numeric-id"] = 56810246,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#105 {
      ["P1545"] = table#106 {
        table#107 {
          ["datatype"] = "string",
          ["datavalue"] = table#108 {
            ["type"] = "string",
            ["value"] = "12",
          },
          ["hash"] = "b1425a27074b51abb46a9cb949eb37d115c2204a",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#109 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#110 {
    ["id"] = "Q56760778$3900bf8e-463d-a89b-7aa8-822bc466383f",
    ["mainsnak"] = table#111 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#112 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#113 {
          ["entity-type"] = "item",
          ["id"] = "Q56810263",
          ["numeric-id"] = 56810263,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#114 {
      ["P1545"] = table#115 {
        table#116 {
          ["datatype"] = "string",
          ["datavalue"] = table#117 {
            ["type"] = "string",
            ["value"] = "13",
          },
          ["hash"] = "f156fb34fcce34ed7b7ab814d08b4f127f7d0c0a",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#118 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#119 {
    ["id"] = "Q56760778$d2270a25-449d-eeac-edc4-8badb00cab4b",
    ["mainsnak"] = table#120 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#121 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#122 {
          ["entity-type"] = "item",
          ["id"] = "Q56810287",
          ["numeric-id"] = 56810287,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#123 {
      ["P1545"] = table#124 {
        table#125 {
          ["datatype"] = "string",
          ["datavalue"] = table#126 {
            ["type"] = "string",
            ["value"] = "14",
          },
          ["hash"] = "2c80382503f2260434d0a61f856e7202ac2ef14e",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#127 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#128 {
    ["id"] = "Q56760778$dfb35e80-4942-49a8-2423-af6e2e36ddb7",
    ["mainsnak"] = table#129 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#130 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#131 {
          ["entity-type"] = "item",
          ["id"] = "Q56810356",
          ["numeric-id"] = 56810356,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#132 {
      ["P1545"] = table#133 {
        table#134 {
          ["datatype"] = "string",
          ["datavalue"] = table#135 {
            ["type"] = "string",
            ["value"] = "15",
          },
          ["hash"] = "1c30b5edfe37c20fba82e77d50973f05e0b11f6f",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#136 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#137 {
    ["id"] = "Q56760778$714a0b4f-44d7-f254-2fab-f8d90cf7b6eb",
    ["mainsnak"] = table#138 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#139 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#140 {
          ["entity-type"] = "item",
          ["id"] = "Q56810409",
          ["numeric-id"] = 56810409,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#141 {
      ["P1545"] = table#142 {
        table#143 {
          ["datatype"] = "string",
          ["datavalue"] = table#144 {
            ["type"] = "string",
            ["value"] = "16",
          },
          ["hash"] = "fad4d36a0de768e4b914ae40a3ab93ff76802562",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#145 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#146 {
    ["id"] = "Q56760778$686151c2-4ad9-922e-a031-10d6dd8ec64f",
    ["mainsnak"] = table#147 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#148 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#149 {
          ["entity-type"] = "item",
          ["id"] = "Q56810459",
          ["numeric-id"] = 56810459,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#150 {
      ["P1545"] = table#151 {
        table#152 {
          ["datatype"] = "string",
          ["datavalue"] = table#153 {
            ["type"] = "string",
            ["value"] = "17",
          },
          ["hash"] = "1486eb16323ccfa872de81f5a62795658dfa8c93",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#154 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#155 {
    ["id"] = "Q56760778$d8822249-4c99-1348-3c86-ae634de99465",
    ["mainsnak"] = table#156 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#157 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#158 {
          ["entity-type"] = "item",
          ["id"] = "Q56810512",
          ["numeric-id"] = 56810512,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#159 {
      ["P1545"] = table#160 {
        table#161 {
          ["datatype"] = "string",
          ["datavalue"] = table#162 {
            ["type"] = "string",
            ["value"] = "18",
          },
          ["hash"] = "618cb6a0b47e3e935e91ad6a5bd476a8d3f4fb33",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#163 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#164 {
    ["id"] = "Q56760778$3fb4239b-4510-0180-1b5e-7a8f8d61dd2a",
    ["mainsnak"] = table#165 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#166 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#167 {
          ["entity-type"] = "item",
          ["id"] = "Q56810540",
          ["numeric-id"] = 56810540,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#168 {
      ["P1545"] = table#169 {
        table#170 {
          ["datatype"] = "string",
          ["datavalue"] = table#171 {
            ["type"] = "string",
            ["value"] = "19",
          },
          ["hash"] = "a37679c5dba91ad0c4813c3c62af8ac5d2a1e00d",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#172 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#173 {
    ["id"] = "Q56760778$33f53255-4682-5b89-d4cb-912f419872fb",
    ["mainsnak"] = table#174 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#175 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#176 {
          ["entity-type"] = "item",
          ["id"] = "Q56810554",
          ["numeric-id"] = 56810554,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#177 {
      ["P1545"] = table#178 {
        table#179 {
          ["datatype"] = "string",
          ["datavalue"] = table#180 {
            ["type"] = "string",
            ["value"] = "20",
          },
          ["hash"] = "56e77a2eea22fa436528789b1e88f73ebce53a92",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#181 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#182 {
    ["id"] = "Q56760778$fa7d7605-4f84-99d3-2fa0-f49ad03b8b2e",
    ["mainsnak"] = table#183 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#184 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#185 {
          ["entity-type"] = "item",
          ["id"] = "Q56810609",
          ["numeric-id"] = 56810609,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#186 {
      ["P1545"] = table#187 {
        table#188 {
          ["datatype"] = "string",
          ["datavalue"] = table#189 {
            ["type"] = "string",
            ["value"] = "21",
          },
          ["hash"] = "9d22b928e2a536181e7576da40198990b72f9197",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#190 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#191 {
    ["id"] = "Q56760778$b1e0f128-4370-447d-f982-66d5a350f576",
    ["mainsnak"] = table#192 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#193 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#194 {
          ["entity-type"] = "item",
          ["id"] = "Q56810624",
          ["numeric-id"] = 56810624,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#195 {
      ["P1545"] = table#196 {
        table#197 {
          ["datatype"] = "string",
          ["datavalue"] = table#198 {
            ["type"] = "string",
            ["value"] = "22",
          },
          ["hash"] = "f5a226ebb11ff3cb8c41370357acdc8ede4a3224",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#199 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#200 {
    ["id"] = "Q56760778$ef2c0f35-422d-29c9-966e-f7657b21319d",
    ["mainsnak"] = table#201 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#202 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#203 {
          ["entity-type"] = "item",
          ["id"] = "Q56810655",
          ["numeric-id"] = 56810655,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#204 {
      ["P1545"] = table#205 {
        table#206 {
          ["datatype"] = "string",
          ["datavalue"] = table#207 {
            ["type"] = "string",
            ["value"] = "23",
          },
          ["hash"] = "a921621b61855fb454e1096de9b0fc91b21bfa9b",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#208 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#209 {
    ["id"] = "Q56760778$9edc50d9-41a4-e1d7-26bd-40f0a272ea56",
    ["mainsnak"] = table#210 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#211 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#212 {
          ["entity-type"] = "item",
          ["id"] = "Q56810683",
          ["numeric-id"] = 56810683,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#213 {
      ["P1545"] = table#214 {
        table#215 {
          ["datatype"] = "string",
          ["datavalue"] = table#216 {
            ["type"] = "string",
            ["value"] = "25",
          },
          ["hash"] = "daace348f57611d02238053c33432416124ce9a9",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#217 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#218 {
    ["id"] = "Q56760778$7689b0c0-47e7-550d-40a1-64eac9378439",
    ["mainsnak"] = table#219 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#220 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#221 {
          ["entity-type"] = "item",
          ["id"] = "Q56810719",
          ["numeric-id"] = 56810719,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#222 {
      ["P1545"] = table#223 {
        table#224 {
          ["datatype"] = "string",
          ["datavalue"] = table#225 {
            ["type"] = "string",
            ["value"] = "26",
          },
          ["hash"] = "c3ad7cc7e96e28c57b7cab2e314c69555ef82400",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#226 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#227 {
    ["id"] = "Q56760778$228902b2-4fa5-abab-fba1-ac35501cb698",
    ["mainsnak"] = table#228 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#229 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#230 {
          ["entity-type"] = "item",
          ["id"] = "Q56810741",
          ["numeric-id"] = 56810741,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#231 {
      ["P1545"] = table#232 {
        table#233 {
          ["datatype"] = "string",
          ["datavalue"] = table#234 {
            ["type"] = "string",
            ["value"] = "24",
          },
          ["hash"] = "0f81c461e0edbb9c5613e6b49511d44fefcaeec1",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#235 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#236 {
    ["id"] = "Q56760778$ab43595d-4253-f53b-865e-99cc5aafa61e",
    ["mainsnak"] = table#237 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#238 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#239 {
          ["entity-type"] = "item",
          ["id"] = "Q56810781",
          ["numeric-id"] = 56810781,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#240 {
      ["P1545"] = table#241 {
        table#242 {
          ["datatype"] = "string",
          ["datavalue"] = table#243 {
            ["type"] = "string",
            ["value"] = "27",
          },
          ["hash"] = "cbae513a09f5655b1516c97b9274ecc804cb5723",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#244 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#245 {
    ["id"] = "Q56760778$96c95cb4-4721-bd9b-632d-b9f5659f25b1",
    ["mainsnak"] = table#246 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#247 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#248 {
          ["entity-type"] = "item",
          ["id"] = "Q56810825",
          ["numeric-id"] = 56810825,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#249 {
      ["P1545"] = table#250 {
        table#251 {
          ["datatype"] = "string",
          ["datavalue"] = table#252 {
            ["type"] = "string",
            ["value"] = "28",
          },
          ["hash"] = "d8baedaa705c5d31356a6c9dd39d4b5b185d1882",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#253 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#254 {
    ["id"] = "Q56760778$401358f4-46f7-d508-ac41-79aac0c9bc55",
    ["mainsnak"] = table#255 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#256 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#257 {
          ["entity-type"] = "item",
          ["id"] = "Q56810860",
          ["numeric-id"] = 56810860,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#258 {
      ["P1545"] = table#259 {
        table#260 {
          ["datatype"] = "string",
          ["datavalue"] = table#261 {
            ["type"] = "string",
            ["value"] = "29",
          },
          ["hash"] = "c3b34bb14b43f829f3d70dff79603de63c2074be",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#262 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#263 {
    ["id"] = "Q56760778$cc79957f-472a-c9c1-01e0-ced15d1ddb33",
    ["mainsnak"] = table#264 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#265 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#266 {
          ["entity-type"] = "item",
          ["id"] = "Q56810895",
          ["numeric-id"] = 56810895,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#267 {
      ["P1545"] = table#268 {
        table#269 {
          ["datatype"] = "string",
          ["datavalue"] = table#270 {
            ["type"] = "string",
            ["value"] = "30",
          },
          ["hash"] = "dfd52bdc81a7260948d24cb40c1622eb67f5629b",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#271 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#272 {
    ["id"] = "Q56760778$d8ff01a6-4f63-2393-a5d9-784b95451d13",
    ["mainsnak"] = table#273 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#274 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#275 {
          ["entity-type"] = "item",
          ["id"] = "Q56810917",
          ["numeric-id"] = 56810917,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#276 {
      ["P1545"] = table#277 {
        table#278 {
          ["datatype"] = "string",
          ["datavalue"] = table#279 {
            ["type"] = "string",
            ["value"] = "31",
          },
          ["hash"] = "01695eb28e0d7caabee4b1deb26ba303c8fd5c39",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#280 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#281 {
    ["id"] = "Q56760778$e2b842f2-4083-90c3-6cc4-223a6681368d",
    ["mainsnak"] = table#282 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#283 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#284 {
          ["entity-type"] = "item",
          ["id"] = "Q56810947",
          ["numeric-id"] = 56810947,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#285 {
      ["P1545"] = table#286 {
        table#287 {
          ["datatype"] = "string",
          ["datavalue"] = table#288 {
            ["type"] = "string",
            ["value"] = "32",
          },
          ["hash"] = "ccb86ea9592091d633aad66243c68404f8d7279f",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#289 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#290 {
    ["id"] = "Q56760778$67577101-4d77-8819-8732-c8a894216036",
    ["mainsnak"] = table#291 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#292 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#293 {
          ["entity-type"] = "item",
          ["id"] = "Q56811006",
          ["numeric-id"] = 56811006,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#294 {
      ["P1545"] = table#295 {
        table#296 {
          ["datatype"] = "string",
          ["datavalue"] = table#297 {
            ["type"] = "string",
            ["value"] = "33",
          },
          ["hash"] = "7e0fd78590d9b29a4208f4d0c42d675937c99878",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#298 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#299 {
    ["id"] = "Q56760778$71c797ff-4759-a937-30db-f6cf6e7e1f79",
    ["mainsnak"] = table#300 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#301 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#302 {
          ["entity-type"] = "item",
          ["id"] = "Q56811109",
          ["numeric-id"] = 56811109,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#303 {
      ["P1545"] = table#304 {
        table#305 {
          ["datatype"] = "string",
          ["datavalue"] = table#306 {
            ["type"] = "string",
            ["value"] = "34",
          },
          ["hash"] = "d4e2a1e088501cb475a92057a47018ffbfbc6ac6",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#307 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#308 {
    ["id"] = "Q56760778$0d8ba6b6-47f3-9c08-0183-110457c82031",
    ["mainsnak"] = table#309 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#310 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#311 {
          ["entity-type"] = "item",
          ["id"] = "Q56811231",
          ["numeric-id"] = 56811231,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#312 {
      ["P1545"] = table#313 {
        table#314 {
          ["datatype"] = "string",
          ["datavalue"] = table#315 {
            ["type"] = "string",
            ["value"] = "35",
          },
          ["hash"] = "d740cac90d200e5debed9a62312f8fc6a50b9804",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#316 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#317 {
    ["id"] = "Q56760778$41e68693-4b24-212a-6f0e-36cc2d4135bf",
    ["mainsnak"] = table#318 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#319 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#320 {
          ["entity-type"] = "item",
          ["id"] = "Q56811283",
          ["numeric-id"] = 56811283,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#321 {
      ["P1545"] = table#322 {
        table#323 {
          ["datatype"] = "string",
          ["datavalue"] = table#324 {
            ["type"] = "string",
            ["value"] = "36",
          },
          ["hash"] = "a5a17d924a943d498c302ff429c1a0b52fc17de4",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#325 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#326 {
    ["id"] = "Q56760778$cba3212d-4997-165a-4a27-43bbf9b9a1ee",
    ["mainsnak"] = table#327 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#328 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#329 {
          ["entity-type"] = "item",
          ["id"] = "Q56811356",
          ["numeric-id"] = 56811356,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["qualifiers"] = table#330 {
      ["P1545"] = table#331 {
        table#332 {
          ["datatype"] = "string",
          ["datavalue"] = table#333 {
            ["type"] = "string",
            ["value"] = "37",
          },
          ["hash"] = "d9e8581d8ade1ac05c5135f1ea9ed4bfd67cb1e1",
          ["property"] = "P1545",
          ["snaktype"] = "value",
        },
      },
    },
    ["qualifiers-order"] = table#334 {
      "P1545",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
  table#335 {
    ["id"] = "Q56760778$387f578c-40e9-49bf-005a-ace7df7f7b94",
    ["mainsnak"] = table#336 {
      ["datatype"] = "wikibase-item",
      ["datavalue"] = table#337 {
        ["type"] = "wikibase-entityid",
        ["value"] = table#338 {
          ["entity-type"] = "item",
          ["id"] = "Q56812366",
          ["numeric-id"] = 56812366,
        },
      },
      ["property"] = "P527",
      ["snaktype"] = "value",
    },
    ["rank"] = "normal",
    ["type"] = "statement",
  },
}
You might find that useful in looking at what the Wikidata entry actually contains.
Anyway, I'd encourage you to try to make use of what is already available, and then let me know if you can't find something to do a particular job, or if you get stuck. Cheers --RexxS (talk) 22:58, 10 December 2018 (UTC)
WOW! I spent my day thinking about ways to call wikidata for each of the has parters. You had it already here. Sir, or Ma'am. Dude. I am pleasantly stunned.--RaboKarbakian (talk) 01:32, 11 December 2018 (UTC)
@RaboKarbakian: It may be worth your while checking through the documentation for Module:WikidataIB in case any other facilities or functions can be of use to you. If you also look at Template:Wikidata Infobox that Mike Peel created, you'll see examples of how the module can be used. --RexxS (talk) 02:06, 11 December 2018 (UTC)
Mike Peel helped with the module at wikisource and then recommended you. You don't mind if I recategorize that template?--RaboKarbakian (talk) 04:36, 11 December 2018 (UTC)
Almost everything is protected so I won't bother with it -- trying to determine the logic for the categorization is going to bother me, however. I won't bother you again. Or Mike Peel.--04:43, 11 December 2018 (UTC)

Fetching the commons sitelink (again)[edit]

Hi RexxS, happy new year! I'm trying to put together some code that would auto-categorise by occupation. It's sort of working at User:Mike Peel/Occupation, e.g. {{User:Mike Peel/Occupation|qid=Q7356166}} -> Category:Astronomers from the United Kingdom. However, ideally it would go through astronomer (Q11063) to get the commons sitelink from Category:Astronomers (Q6562) to display 'Astronomers' instead of 'astronomer' (or use P373 for now if needed). Would that be straightforward to add? I can't use the getCommonsLink function as I need the prefix/postfix options from getValue (doing nested calls to WikidataIB again). Thanks. Mike Peel (talk) 07:47, 2 January 2019 (UTC)

Happy New Year, Mike!
The new getPropOfProp function that we made for the award categories has all of the functionality of getValue (probably Face-smile.svg). So:
Rod Davies (Q7356166)
{{#invoke:WikidataIB |getValue |rank=best |P106 |qid=Q7356166 | name=occupation |fwd=ALL |osd=no |noicon=yes | linked=n |postfix=" from somewhere"}} → astronomer from somewhere
{{#invoke:WikidataIB |getPropOfProp |rank=best |prop1=P106 |prop2=P373 |qid=Q7356166 | name=occupation |fwd=ALL |osd=no |noicon=yes | linked=n |postfix=" from somewhere"}} → Astronomers from somewhere
Will that do the job for you? In general, getPropOfProp should be able to fetch a property one step removed in almost any case, and should be a "drop-in" replacement by changing |Pxxx to |prop1=Pxxx |prop2=Pyyy --RexxS (talk) 10:52, 2 January 2019 (UTC)
Thanks RexxS, I think that should do it, so I'll give it a go. I'm hoping that we can stop using P373 at some point, as the sitelinks should be able to do the job instead now (and are more likely to be correct), but that can be something for the future. Thanks. Mike Peel (talk) 10:55, 2 January 2019 (UTC)
It seems to work nicely. Thanks! Mike Peel (talk) 11:12, 2 January 2019 (UTC)

Re [2], I'm not sure if that's going to go ahead or not (it probably needs some consensus / someone driving it that isn't me), but it might be a useful function to have anyway. There is a major complication of matching country names on Wikidata to those used here, so it would probably need some sort of manually-defined lookup table to match them, as I've done using the switch statements in User:Mike Peel/Occupation (or at least, that was the best solution I could come up with). Thanks. Mike Peel (talk) 10:17, 4 January 2019 (UTC)

@Mike Peel: It has been an interesting exercise so far. Without any country substitutions, Franz Kafka (Q905) generates a lot of categories:
If you take out the |lp=":" link prefix and preview it, you'll see the page gains 33 categories. Kafka has 3 citizenships and 13 occupations on Wikidata; fortunately the topic's main category (P910) for "poet lawyer" has no English label yet, and "claims adjuster" has no topic's main category (P910) at all. I suppose it's only a matter of time until that gets "fixed". I mean we really fucking need Category:Claims adjusters. I'll do some country substitutions like "Czech Republic" → "Czechoslovakia" and the ones in your template and leave it at that as a proof-of-concept. The whole thing looks like a can of worms, and even I don't have the stomach for another fight about what-looks-nice-and-what-doesn't™. Cheers --RexxS (talk) 00:13, 5 January 2019 (UTC)
I agree with 'can of worms'... One possibility might be to just use the categories that exist, which would cut down on the weird ones - or I could use the existing functions to populate "<occupation> by name" categories where they exist. Not sure beyond that TBH. Thanks. Mike Peel (talk) 17:10, 5 January 2019 (UTC)

Lang Lang lang[edit]

I did somethings at wikidata. If a tale was originally published in Norway, and Norway source had a copy and a link on it, I pasted the title (a newer property, i think) from no.source and opted for the dialect which my Norwegian friend spoke. Sorry about that last choice and the reason I made it. Specifically fuzzy.

The title property has changed at wikidata. It no longer allows more than one title, if I remember correctly. And that might be a deltabot toggle.

Also, I am looking at getLang as a way to get past the title lang toggle that I might have. It might be something simple like that I stopped making titles because it left a warning. Where before I discovered deltabot I just left the warnings because I thought they were wrong.

And it wasn't even a warning. I spice it up or sugar it down depending on my mood. It is just stupid tracking software that looks at caution toggles. (unpee here)

It took me a while to figure that out with the infoboxes. I wanted to use the title as the media legend.

What I really got to do is to make a simple template again. Wow, those things are ugly. Thanks for letting me pee on your talk page.--RaboKarbakian (talk) 17:07, 13 January 2019 (UTC)

No problem. Don't forget to wash your hands afterwards. --RexxS (talk) 17:21, 13 January 2019 (UTC)

re Template_talk:Wikidata_Infobox#Wikidata_Item-id[edit]

thanks for involving in Template_talk:Wikidata_Infobox#Wikidata_Item-id. As this would be the wrong place, I put my answer here. You ask, I'll try to answer. For illustration see de:Büro_Fellner_&_Helmer#Theater- und Konzertbauten, a list of theatres each of them eventually having a Wikidata entry. If you set

.wikidata-content { background-color:lightsteelblue !important}

in your user css, data retrieved from WD are colored (just to see what is happening). For the purpose of this, we add a property like WD-Item = Q45735532 to our template de:Vorlage:Bauwerk Tabellenzeile, where this is used to do fancy things like

{{#invoke:Wikidata|claim|P18|id={{{WD-Item}}}}}
{{#invoke:Wikidata|sitelinkOf|{{{WD-Item}}}}}}

and similar. We use de:Modul:Wikidata for that purpose, but this should be quite similar to the English version. To make this work, we need the QID (e.g. Q45735532 in the example above). We want to retrieve it the easierst way, so if we can double click on a word, copy / paste, it is ok for us. For that reason it would be nice to have the QID in readable form beside the icon.

On the other hand we can manage to do some extra clicks to get the QID. It was the proposal of @Thomas Ledl: to improve mainly his processes and it might be useful to others.

There was a plan that Wikidata will allow to dynamically create such lists, but I don't see the realization at the horizon. I think I could manage to create such lists as a skeleton using sparql. But I don't see a) a way to automatically re-generate these lists when wikidata changes (adding / removing entries matched by the sparql query) and b) a way to merge data from wikidata with localized data (e.g. German descriptions). My ideal solution would be to just add the sparql script only to a page (e.g. retrieve all buildings planned by a given architect), have the result merged with localized descriptions retrieved from somewhere else (some magic missing) in the proper language (description might be long and wiki-syntax rich), rendered as the usual lists on access, but still allowing to change / enter descriptions through the list entries (table rows). I won't get that.

Both your templates Template:Qid and Template:GetQID do not exist on the German WP. I looked at the description of both here on commons, Template:Qid allows to retrieve a QID, either for the calling page, or for a given QID (and access properties thereof), I'm not sure about Template:GetQID. Nevertheless, they operate on well known QIDs or the page QID. This will not help to retrieve the QIDs identifying the object displayed in a single table row of our well-structured lists. I fear we have to copy them manually.

Typing always gives me better ideas. The following sparql will retrieve all building (Q41176) and subclasses by Fellner & Helmer (Q694854)

#all buildings by architect
SELECT ?object ?objectLabel WHERE {
  ?object wdt:P31/wdt:P279* wd:Q41176.
  ?object wdt:P84 wd:Q694854.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr". }
}

Try it!

For mass copy this is a better idea than copying QIDs one by one. sorry for the long answer. Ideas on how to improve are welcome. best --Herzi Pinki (talk) 00:05, 5 February 2019 (UTC)

@Herzi Pinki: Actually, Template_talk:Wikidata_Infobox#Wikidata_Item-id really is a much better place to discuss this. It has far more talk-page watchers that my talk page.
Before I contemplate starting any work on this, can I ask if you've made use of en:User:ListeriaBot? (See also meta:User:ListeriaBot and de:Benutzer:ListeriaBot). That is the standard way of inserting the result of a WDQS search into Wikipedia pages as a table. It ought to be able to generate much of what you want to do as a starting point. --RexxS (talk) 17:02, 5 February 2019 (UTC)
Feel free to move this stuff to a better place (I just wrote here for a friend to get a more user friendly possibility to copy the id). ListeriaBot just allows to create a one-time skeleton not in the main namespace. It does not support merging with user content. The main problem is that we have the complete data in WP, not in wikidata. Data in wikidata is not QA'ed. IMHO the ListeriaBot only works if the data is completely available in Wikidata. best --Herzi Pinki (talk) 18:29, 5 February 2019 (UTC)
This saves me a click for every research (with about 10000 more to come). Great thanks! --Thomas Ledl (talk) 15:44, 11 February 2019 (UTC)

{{VN}}[edit]

hello RexxS,
Are you investigating a bug in VN ?
Can I help?
BestRegard Liné1 (talk) 16:55, 18 February 2019 (UTC)

Hi Liné1. Thanks for your offer. It's not necessarily a bug, but I'm investigating what is returned on a taxon page when there is no vernacular name. I was hoping it would be an empty string, but it seems to be something that forces {{#if:{{VNNoDisplay|useWikidata={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} }} | value-if-nonblank | value-if-blank }} to always return value-if-nonblank. The discussion is at Template talk:Wikidata Infobox #Error handling: power line/taxon mixture. I think I've almost cracked it now. --RexxS (talk) 17:03, 18 February 2019 (UTC)
[Update:] It's returning [[Category:Biology pages with wikidata link]]. Okay, I can cope with that. --RexxS (talk) 17:06, 18 February 2019 (UTC)
Hello
Yes, it returns categories. Many different categories depending on the page.
The thing is, I need those categories.
Please, don't remove them.
I know that you want to determine that the list is empty.
Perhaps I could return something to help you determin it.
BR Liné1 (talk) 21:28, 19 February 2019 (UTC)
Don't worry, Liné1, I won't alter your code. It's easy for me to check in Template:Wikidata Infobox/core like this:
  • {{#ifeq:{{#invoke:String |sub |{{VNNoDisplay|useWikidata=1}}| 3 | 10 }}|Category|| (code here for when result starts with [[Category) ...
If characters 3 to 10 of the result from VNNodisplay are 'Category' then I know it's effectively an empty result and I can suppress the row in the infobox.
Thank you once more for your kind offer to help, and thank you for all the work you do in maintaining the VN modules and templates! Cheers --RexxS (talk) 22:55, 19 February 2019 (UTC)

Depicts testing[edit]

I noticed that you tried out depicts on Test-Commons. Please take a moment to let the developers know what you think, whether it's answering their direct questions, leaving your own feedback, or even noting if you don't have any feedback to give at this time. It would be much appreciated. Thanks. Keegan (WMF) (talk) 19:23, 27 March 2019 (UTC)

Thanks for the heads-up Keegan. I've done that now. Please feel free to ping me again if there is any more specific testing you'd like me to do. --RexxS (talk) 21:40, 27 March 2019 (UTC)

Odd WikidataIB bug[edit]

An odd bug:

{{#invoke:WikidataIB|getValue|rank=normal|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418}} -> Lua error in Module:WikidataIB at line 1236: attempt to concatenate field '?' (a nil value).

It doesn't happen when rank=best, only when rank=normal. So in practice here it's not an issue, but perhaps it should be fixed. Thanks. Mike Peel (talk) 20:18, 29 March 2019 (UTC)

Hi Mike. It seems that the code that decides whether to fetch qualifiers wasn't respecting the value of rank, so I've fixed that in the sandbox:
  1. {{#invoke:WikidataIB/sandbox|getValue|rank=normal|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418}} -> sky (background, green), body of water (background), bridge (background, right), armrest (foreground), landscape (background, sfumato), mountain (background), gaze towards the viewer Edit this on Wikidata
  2. {{#invoke:WikidataIB/sandbox|getValue|rank=|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418}} -> person depicted in Mona Lisa (foreground, long hair, smile, sitting, gaze towards the viewer, brown hair), sky (background, green), body of water (background), bridge (background, right), armrest (foreground), landscape (background, sfumato), mountain (background), gaze towards the viewer Edit this on Wikidata
  3. {{#invoke:WikidataIB/sandbox|getValue|rank=p|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418}} -> person depicted in Mona Lisa (foreground, long hair, smile, sitting, gaze towards the viewer, brown hairEdit this on Wikidata
  4. {{#invoke:WikidataIB/sandbox|getValue|rank=normal|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418 |qualsonly=y |list=ubl}} ->
    • background, green
    • background
    • background, right
    • foreground
    • background, sfumato
    • background Edit this on Wikidata
  5. {{#invoke:WikidataIB/sandbox|getValue|rank=normal|P180|qual=|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418 |list=ubl}} ->
  6. {{#invoke:WikidataIB/sandbox|getValue|rank=p|P180|qual=|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418 |list=ubl}} ->
    • person depicted in Mona Lisa Edit this on Wikidata
It still has one bug left to sort out - see number 4. Thanks for catching that! --RexxS (talk) 22:25, 29 March 2019 (UTC)