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  日本語  ქართული  한국어  македонски  മലയാളം  norsk bokmål  Plattdüütsch  Nederlands  norsk  polski  português  português do Brasil  română  русский  sicilianu  slovenčina  slovenščina  српски / srpski  svenska  Türkçe  українська  Tiếng Việt  中文(简体)‎  中文(繁體)‎  +/−


Hello, RexxS!
Tip: Add categories to your files
Tip: Add categories to your files

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:

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)[reply]

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

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


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  हिन्दी  hrvatski  magyar  italiano  日本語  ქართული  македонски  മലയാളം  Plattdüütsch  Nederlands  português  română  русский  sicilianu  slovenščina  svenska  Tagalog  Türkçe  简体中文  繁體中文  +/−

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 see Commons:But it's my own work! for a guide on how to address these issues.

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!

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

What you missed[edit]

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

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)[reply]
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)[reply]
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)[reply]
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)[reply]
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)[reply]

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)[reply]

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)[reply]
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)[reply]
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)[reply]
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)[reply]
@Mike: 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)[reply]
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)[reply]
@Mike:
  • {{#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)[reply]
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)[reply]

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)[reply]

@Mike: 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)[reply]
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)[reply]
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)[reply]
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)[reply]

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)[reply]
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)[reply]
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)[reply]
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)[reply]

@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)[reply]

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)[reply]
Actually, never mind - I can just replace that with the pair of calls. Thanks. Mike Peel (talk) 18:43, 26 May 2018 (UTC)[reply]
@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)[reply]
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)[reply]
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)[reply]
@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)[reply]
Thanks. I also didn't know that - weird! Mike Peel (talk) 21:19, 26 May 2018 (UTC)[reply]
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)[reply]

Collapsing[edit]

@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, 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 Awards, Young Artist Awards, Primetime Emmy Award for Outstanding Lead Actress in a Drama Series, Primetime Emmy Award for Outstanding Lead Actress in a Drama Series, star on Hollywood Walk of Fame, Hasty Pudding Woman of the Year 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)[reply]

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)[reply]
@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)[reply]
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)[reply]
@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)[reply]
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)[reply]
@Mike Peel: Good catch. I had misnamed the parameters when I re-passed them iteratively.
Works now. --RexxS (talk) 19:14, 28 May 2018 (UTC)[reply]
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)[reply]
(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:
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)[reply]
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)[reply]
@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)[reply]
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)[reply]

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)[reply]

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)[reply]

@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)[reply]
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)[reply]
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)[reply]
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)[reply]

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)[reply]

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)[reply]
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)[reply]
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}}Map
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.3522222222222
  • {{#invoke:WikidataIB |getValue |rank=b |P625 |qid=Q26487819 |fwd=ALL |maxvals=1 |osd=no |noicon=yes |show=long}} → -6.8e-05
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)[reply]
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)[reply]
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)[reply]
@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)[reply]
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)[reply]

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)[reply]

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)[reply]

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)[reply]

@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)[reply]
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)[reply]
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)[reply]
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)[reply]
That sounds like a good solution, thanks! Mike Peel (talk) 16:28, 13 June 2018 (UTC)[reply]

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)[reply]

@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)[reply]

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)[reply]

@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)[reply]
Right, they're now live! Thanks. Mike Peel (talk) 19:19, 24 September 2018 (UTC)[reply]
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)[reply]
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)[reply]
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)[reply]
@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)[reply]
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)[reply]
@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)[reply]

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)[reply]

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 and 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)drug trafficking (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}}drug trafficking, 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(s) (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)[reply]

@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)[reply]
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)[reply]
@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)[reply]
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)[reply]
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)[reply]
@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)[reply]
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)[reply]
@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); ناروے (ks); Norway (ms); Norway (trv); ناروې (ps); INoweyi (ss); ناروے (pnb); ناروے (ur); Norvègia (oc); Norway (gpe); Norvegia (sc); নৰৱে (as); Norsko (cs); Norveška (bs); Норвегие (ady); Norvège (fr); Norveška (hr); Норвегиа (ab); نؤروژ (glk); ନରୱେ (or); Nuorvegėjė (sgs); Норвешка (sr); ⵏⵓⵔⵡⵉⵊ (zgh); Norge (nb); Norvegiya (crh); Taažâ (smn); النرويج (ar); Norvegia (br); Norway (cr); Nöörje (sma); Noruega (ast); Noruega (ca); Норвегия (ba); Norvegiya (gag); Nurvegia (lmo); an Iorua (ga); Норвешка (sr-ec); Norvegiya (crh-latn); Norway (dag); ნორვეგია (ka); ノルウェー (ja); Norvegia (ia); Norway (ami); النرويج (arz); Norwei (na); Norvegia (la); नार्वे (sa); Nolewai (haw); ਨੌਰਵੇ (pa); Norvedje (wa); Norway (en-ca); نورڤيج (ary); Нарвэгія (be-tarask); Nurveggia (scn); Norge (ts); Noruéga (pag); Norvéggia (lij); Norwegen (stq); ནོར་ཝེ། (bo); Norge (nso); Nurvegia (co); Noruegia (nah); ma Nosiki (tok); Norwey (bcl); Norway (pcm); Norvège (pcd); Norvegia (ro); Νορβηγία (pnt); Noaue (to); Norway (so); Norge (no); Nowe (tpi); Norwègia (ace); Norvegia (io); ປະເທດນອກແວດ (lo); 노르웨이 (ko); Noreg (fo); Norvegikondre (srn); Norwegia (map-bms); Norway (chy); নরওয়ে (bn); Nò̤-ŭi (cdo); नॉर्वे (anp); Norwegska (dsb); נארוועגיע (yi); Norwegska (hsb); Na Uy (vi); Норгиче (inh); Noruega (rn); Norway (sn); Norawa (sco); Норвеги (mn); Noreg (nn); Norvège (ty); ಕಾಮೌ (kn); Norvej (ln); Norway (en); Noruega (gn); Norwij (bm); ኖርዌይ (am); Норвегий (mhr); Norwec (diq); नार्वे (mai); Norwega (pam); Norwegia (mad); Norge (sm); Norvegia (rm); Norouague (nrm); Norway (om); ប្រទេសន័រវេ (km); ᱱᱚᱨᱣᱮ (sat); ܢܘܪܒܝܓ (arc); Norvegiya (kaa); ꯅꯣꯔꯋꯦ (mni); Norvegia (nov); Норвай (lbe); Norvegeja (ltg); Vuodna (smj); Nọ́rwèy (yo); Норвегэ (kbd); नर्वे (new); Norveška (sl); Noruwega (tl); ᏃᏪ (chr); Norwegia (pl); നോർവെ (ml); Noorwegen (nl); Norge (kl); Норвегия (sah); Noruega (gl); 挪威 (zh-hans); Norwygijo (szl); Norway (ak); မိူင်းၼေႃႇဝူၺ်း (shn); Norway (en-gb); Nórsko (sk); Норвегія (uk); Norwegiýa (tk); 挪威 (zh-cn); Norweege (gsw); Norvegiya (uz); Норвегия (kk); Норвешка (mk); Norwegn (bar); ꠘꠞꠅꠦ (syl); Noruega (ext); Noruega (cbk-zam); Норвегия Мастор (myv); ནོ་ཝེ་ (dz); Norvēgmō (liv); नार्वे (awa); INoki (zu); Norwégia (su); Norway (hif); 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); Норвегия (lez); Nurweka (ay); ኖርወይ (ti); නෝර්වේ (si); Norway (szy); नॉर्वे (gom-deva); Norvejiya (rmy); 挪威 (wuu); Norja (fi); Nōwei (mi); Noorwege (li); Taarr (sms); Naawie (jam); Noruega (kea); Noruega (war); Nôorweegn (vls); Նորվեկիա (hyw); 𐌽𐌰𐌿𐍂𐍅𐌹𐌲𐍃 (got); Norweskô (csb); Norra (vro); Norge (ch); Norway (ceb); Норвеги (mrj); Norway (tw); Norwege (pfl); Nurvégia (eml); 挪威 (zh-hant); Norwegia (id); নরৱে (bpy); 挪威 (zh-tw); نروژ (mzn); Norveghia (rup); Norveggie (roa-tara); ประเทศนอร์เวย์ (th); Norveġja (mt); Norveška (sr-el); Norveška (sh); Norway (gom-latn); Норвегия (krc); Norveç (tly); Norway (tum); Norway (tn); Νορβηγία (el); Norway (en-us); Nuṛvij (kab); ნორვეგია (xmf); Norra (et); Norge (kg); Norgän (vo); Norvegii (vep); नार्वे (bho); Norvège (frc); Norwegen (nds); נורווגיה (he); Norge (ny); Noruveje (rw); Noruega (mwl); Norwaii (pih); Norgagh (kw); Норвегия (bg); నార్వే (te); Norway (lg); 挪威 (zh-hk); Норвеги (os); Norvezy (mg); Norge (sv); Norge (bug); Норвеги (cv); Norway (ig); Норвегия (tg); Nörvêzi (sg); ناروے (skr); نورۋېگىيە (ug); 挪威 (zh-my); नॉर्वे (hi); Норвегия (tyv); Noruega (pap); Norvegia (lld); Nozveih (za); Norvèg·e (frp); Nurwègen (jv); نوروي (ms-arab); ނޯވޭ (dv); Norvèj (gcr); Lo̍k-ui (nan); Norweje (ksh); Noorwees (wo); Norvegia (pms); Norwees (ff); Норвегия (kv); Norvēģija (lv); Norwega (ilo); Kinghą́ą́ʼ Haltsooí Dineʼé Bikéyah (nv); Noorweë (af); Nɔɔrɩvɛɛzɩ (kbp); Noruega (pt-br); Норвэгия (mdf); Norge (ik); 挪威 (gan); Norway (ee); نوروژ (azb); Norwegia (min); Norwega (hil); Норвегия (av); نەرویژ (ckb); النرويج (aeb-arab); Norveç (az); नॉर्वे (mr); Norway (ha); Nowĩ (ki); ᓄᕐᒋ/nurgi (iu); Norvégia (hu); નોર્વે (gu); नार्वे (pi); Norvegia (eu); Ноорскгин Нутг (xal); Норєгъ (cu); Норвегия (ru); Nurwiga (qu); Norwegen (de); Норвеги (ce); Нарвегія (be); Norveç (tr); Noorwegen (nds-nl); Norwêc (ku); नर्वे (ne); ولات نروج (lrc); Norwegen (de-at); Norge (fj); Noruega (es); Norvegia (ie); Norge (st); Норвегия (tt); Norge (ve); Norga (avk); Norway (tay); Norga (se); Noorweegen (frr); Norlynn (gv); Та̄ре̄ммьне (sjd); Норвегия (udm); Norvegia (it); Norvegjia (sq); நோர்வே (ta); Nòvèj (ht); 挪威 (zh-mo); Norwegen (lb); नॉर्वे (gom); Vuodna (sje); Norvegia (nap); نروژ (fa); Norge (da); Noruega (pt); Norþƿeȝ (ang); Norvegio (eo); Norwegia (bjn); Norvegija (lt); noreg. (jbo); 挪威 (zh-sg); Norwegia (ban); Norvejia (lad); Norvegje (fur); Norwei (sw); Nirribhidh (gd); Noria (lfn); Noruega (an); Norveja (vec); ناروي (sd); Норьско (rue); Nürjje (sju); Норвеги (bxr); Norway (mos); Norwegia (bbc)
  • Descriptions: {{#invoke:WikidataIB/sandbox |getAllDescriptions |qid=Q20}} → país del norte de Europa (es); land í Norður-Evrópu og eitt Norðurlandanna (is); مُلُک (ks); ma lon ma Elopa (tok); negara di utara Eropah (ms); country in Northern Europe (en-gb); country wey dey 4 di northern part of Europe (pcm); 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); Pais den Oropa (pap); ꠁꠃꠞꠥꠙꠞ ꠄꠉꠥ ꠖꠦꠡ (syl); ইউরোপের রাষ্ট্র (bn); pays d'Europe du Nord (fr); nagara ing Eropa Lor (jv); država u sjevernoj Europi (hr); 北欧国家 (zh-my); мастор Пелевеёнкс Европасо (myv); उत्तर युरोपातील एक उत्तरी देश (mr); stat w sewjernej Europje (hsb); ଉତ୍ତର ଇଉରୋପରେ ଥିବା ଏକ ଦେଶ (or); suverēna valsts Ziemeļeiropā (lv); pagilian idiay Amianan nga Europa (ilo); држава у северној Европи (sr); χώρα της βόρειας Ευρώπης (el); país no norte da Europa (pt-br); 北欧国家 (zh-sg); Staat op der skandinavescher Hallefinsel (lb); land i Nord-Europa (nn); land i Nord-Europa (nb); Şimali Avropada ,Skandinaviya yarımadasının qərb hissəsində və ona yaxın adalarda yerləşən dövlət (az); 北欧国家 (zh-hans); उत्तरी युरोपको देश (ne); ಜಪಾನ್ನ ಪ್ಯ್ಹುಯುಕೋಕಾ ಪ್ರಿಫೆಕ್ಚರ್ನಲ್ಲಿರುವ ನಗರ (kn); وڵاتێک لە باکووری ئەورووپا (ckb); country in Northern Europe (en); إحدى الدول الإسكندنافية الواقعة في شمال أوروبا (ar); država u sjevernoj Evropi (bs); ਉੱਤਰੀ ਯੂਰਪ ਵਿੱਚ ਦੇਸ਼ (pa); pàize de l'Eoröpa (lij); país no norte da Europa (pt); állam Észak-Európában (hu); Kuzey Avrupa'da bir ülke (tr); 北歐國家 (zh-tw); നോർവേ (ഔദ്യോഗികമായി കിങ്ഡം ഓഫ് നോർവേ) വടക്കൻ യൂറോപ്പിലെ ഒരു രാജ്യമാണ് (ml); państwo w Europie Północnej (pl); estáu d'Europa (ast); государство в Северной Европе (ru); Staat in Nordeuropa (de-ch); Staat in Nordeuropa (de); negara di Eropa Utara (id); краіна ў Паўночнай Еўропе (be); کشوری در شمال قارهٔ اروپا (fa); 北歐國家 (zh); Dewletekî Ewropayê (ku); სახელმწიფო ჩრდილოეთ ევროპაში, სკანდინავიის ნახევარკუნძულზე (ka); 北ヨーロッパの国 (ja); Staat in Nordeuropa (de-at); պետություն Հյուսիսային Եվրոպայում՝ Սկանդինավյան թերակղզու արևմտյան մասում (hy); land in Noord-Europa (nl); Un Land in Europa (ie); מדינה בצפון אירופה (he); civitas Europae (la); வட ஐரோப்பாவின் அரசியலமைப்பு முடியாட்சி நாடு (ta); them andi Eropa (rmy); ఉత్తర ఐరోపాలోని ఒక దేశం (te); valtio Pohjois-Euroopassa (fi); land i Nordeuropa (da); un pais en Europa (lfn); jiõččnaž valdia tâʹvv-Eurooppâst (sms); بلاد فشمال ؤروپا (ary); Stato dell'Europa settentrionale (it); држава во Северна Европа (mk); jiečânâs staatâ tave-Euroopâst (smn); држава у северној Европи (sr-ec); краіна ў Паўночнай Эўропе (be-tarask); cȳnerīce ofer norþenam Europan (ang); кеферпатан Европада (lez); ایک یورپی ملک (ur); kintra in Scandinavie, Northren Europe (sco); gonagasriika Davvi-Eurohpás (se); paìsi nta l'Europa dû Nord (scn); država u severnoj Evropi (sr-el); pajjiż fit-Tramuntana tal-Ewropa (mt); país d'Europa (ca); Põhja-Euroopa kuningriik (et); gwlad ar ochr ddwyreiniol Môr y Gogledd sy'n un o wledydd Llychlyn (cy); država v Evropi (sl); bansa sa Hilagang Europa (tl); country in Northern Europe (en-ca); konstitutionell monarki i Nordeuropa (sv); ราชอาณาจักรในยุโรปเหนือ (th); nchi katika Ulaya Kaskazini (sw); dùthaich ann an Lochlainn anns an Roinn-Eòrpa (gd); tamurt n Turuft Ugafa (kab); държава в Северна Европа (bg); tír in iarthuaisceart na hEorpa (ga); اتر يورپ جو ھڪ ملڪ (sd); 北歐國家 (zh-mo); país nórdico (gl); उत्तरी यूरोप में एगो संबैधानिक राजतंत्र (bho); country in Northern Europe (en-us); Quốc gia quân chủ lập hiến tại Bắc Âu (vi)
  • Aliases: {{#invoke:WikidataIB/sandbox |getAllAliases |qid=Q20}} → Reino de Noruega, NO, NOR, 🇳🇴 (es); Noruega (nah); Кралство Норвегия (bg); Regatul Norvegiei, 🇳🇴 (ro); 挪威王國 (zh-hk); Konungariket Norge, Noreg (sv); Королівство Норвегія (uk); 挪威王國 (zh-hant); Оцязорксшись Норвегия (mdf); Nuuka (ik); Norvegujo, Reĝlando Norvegio, NO, NOR (eo); नॉर्वे, आधी रात के सुरुज के देस (bho); নরওয়ে কিংডম, নরওয়ে রাজ্য, 🇳🇴 (bn); Royaume de Norvège, 🇳🇴, NO, NOR, le Royaume de Norvège, Norv. (fr); NO, NOR, no, Norveško kraljevstvo (hr); 挪威王国 (zh-my); Kralestwo Norwegska (hsb); Na uy (vi); Norvegėjė (sgs); Краљевина Норвешка, Норге, Норвеге, NO, NOR, no, Noreg, 🇳🇴, Норвеген, Норвешко Краљевство (sr); Norway (rn); Reino da Noruega (pt-br); Norrowey, Kinrick o Norawa, Kinrick o Norrowey (sco); Kongeriket Noreg, Norge (nn); Kongeriket Norge, Noreg, Kongeriket Norge/Noreg (nb); Norveç krallığı (az); นอร์เวย์, Norway, ราชอาณาจักรนอร์เวย์, Kingdom of Norway (th); Noruvetia (ty); 挪威王國 (lzh); Taažâ kunâgâskodde (smn); Kingdom of Norway, NO, NOR, 🇳🇴 (en); Норвегин Нутуг (xal); 挪威王国 (zh-hans); 挪威王國 (zh-tw); Noruwega (ceb); Norge, Kongeriket Noreg, Kongeriket Norge, Kingdom of Norway, Noreg, 挪威王國, Norway (yue); Norvég Királyság (hu); Norway, Nô͘-ui, Norge, Ná-ui (nan); مملكة النرويج (ar); Nöörjen gånkarijhke (sma); Norra Kuningriik (et); Reinu de Noruega (ast); Regne de Noruega, Norvègia, Norveja (ca); Königreich Norwegen (de-ch); Teyrnas Norwy, no (cy); 挪威王國 (zh-mo); Nórske kráľovstvo (sk); Նորվեգիայի Թագավորություն (hy); Noorweagen, Noorweeg, Noorweagn (nds-nl); Kongeriget Norge (da); ნორვეგიის სამეფო (ka); ノルウェー王国, ノルウェイ (ja); Königreich Norwegen (de-at); ناروی (fa); ꠘꠞꠅꠦ ꠞꠣꠁꠎ꠆ꠎ (syl); Noorwey (om); ממלכת נורבגיה, נורבגיה, ממלכת נורווגיה (he); Kerajaan Norwegia (id); 挪威王国 (zh); ន័រវែស (km); نۆرویژ, نەرویج (ckb); Norge, Noreg (fi); Royaume de Norvège, 🇳🇴 (frc); Noreg, Norge, Королевство Норвегия, Norway, Kongeriket Norge, Kongeriket Noreg (ru); Taar koonǥõskåʹdd (sms); நோர்வே, ஐரோப்பா, நார்வே, நோர்வே பேரரசு (ta); Regno di Norvegia, Noreg, Kongeriket Norge, Kongeriket Noreg (it); Renju tan-Norveġja (mt); Norgga gonagasriika (se); Nowei (bi); Каралеўства Нарвэгіі, Каралеўства Нарвэгія (be-tarask); Norvège (frp); Vuona gånågisrijkka (smj); Norþweg, Norþƿeg, Norþweȝ (ang); ನಾರ್ವೇ (kn); Noowe (lg); Norveggia (scn); Norwegen (pfl); Норуегиэ (kbd); Norveç Krallığı, 🇳🇴 (tr); ਨਾਰਵੇ (pa); noreg (jbo); Nouei (sm); Нурвеж (tg); Königreich Norwegen (de); Norwegen (gsw); Nɔwei (tw); Królestwo Norwegii (pl); നോർവേ, കിങ്ഡം ഓഫ് നോർവേ (ml); NO, NOR (nl); Norvexa (vec); 挪威王国 (zh-cn); Norveggia, Nòrvexa (lij); 挪威, 挪威王國 (cdo); Βασίλειο της Νορβηγίας (el); Noreg, Kongeriket Norge, Kongeriket Noreg (no); Kingdom of Norway (en-us); 挪威王国 (zh-sg)
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)[reply]
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)[reply]
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)[reply]
@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)[reply]
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)[reply]

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)[reply]

@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(s) (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(s) (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)[reply]
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)[reply]
@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)[reply]
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)[reply]
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}} -> User:Mike Peel/Occupation. 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)[reply]

Happy New Year, Mike!
The new getPropOfProp function that we made for the award categories has all of the functionality of getValue (probably ). 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)[reply]
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)[reply]
It seems to work nicely. Thanks! Mike Peel (talk) 11:12, 2 January 2019 (UTC)[reply]

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)[reply]

@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)[reply]
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)[reply]

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)[reply]

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

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)[reply]

@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)[reply]
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)[reply]
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)[reply]

{{VN}}[edit]

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

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)[reply]
[Update:] It's returning [[Category:Biology pages with wikidata link]]. Okay, I can cope with that. --RexxS (talk) 17:06, 18 February 2019 (UTC)[reply]
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)[reply]
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)[reply]

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)[reply]

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)[reply]

Odd WikidataIB bug[edit]

An odd bug:

{{#invoke:WikidataIB|getValue|rank=normal|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418}} -> Lisa del Giocondo (pct:1.5,8.7,96,91.1, brown hair, presumably, smile, sitting, gaze towards the viewer, waist-length hair, foreground), sky (green, background, upper part), body of water (blue, background), bridge (right, background), armrest (pct:21.7,79.6,53,20.4, foreground), landscape (background, sfumato), mountain (backgroundEdit this on Wikidata

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)[reply]

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}} -> Lisa del Giocondo (pct:1.5,8.7,96,91.1, brown hair, presumably, smile, sitting, gaze towards the viewer, waist-length hair, foreground), sky (green, background, upper part), body of water (blue, background), bridge (right, background), armrest (pct:21.7,79.6,53,20.4, foreground), landscape (background, sfumato), mountain (backgroundEdit this on Wikidata
  2. {{#invoke:WikidataIB/sandbox|getValue|rank=|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418}} -> Lisa del Giocondo (pct:1.5,8.7,96,91.1, brown hair, presumably, smile, sitting, gaze towards the viewer, waist-length hair, foreground), sky (green, background, upper part), body of water (blue, background), bridge (right, background), armrest (pct:21.7,79.6,53,20.4, foreground), landscape (background, sfumato), mountain (backgroundEdit this on Wikidata
  3. {{#invoke:WikidataIB/sandbox|getValue|rank=p|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418}} ->
  4. {{#invoke:WikidataIB/sandbox|getValue|rank=normal|P180|qual=ALL|fetchwikidata=ALL|onlysourced=no|linkprefix=":"|qlinkprefix=":"|qid=Q12418 |qualsonly=y |list=ubl}} ->
  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}} ->
It still has one bug left to sort out - see number 4. Thanks for catching that! --RexxS (talk) 22:25, 29 March 2019 (UTC)[reply]

Category:Barry_C._Barish[edit]

RexxS: No need to go that far, it can easily be mistaken for patronizing ? Bengt Nyman (talk) 17:37, 19 April 2019 (UTC)[reply]

I'm sorry, User:Bengt Nyman. I have no idea what you're talking about. The category is a duplicate of an older one and should be merged into it. I've done half the work, so it just needs some housekeeping to tidy up the empty category. The problem came to light as a result of the discussion at d:Wikidata:Project chat #Barry Barish and I don't think anybody there felt they were being patronised. If you've got a problem with any of my edits, please be kind enough to explain in a little more detail. I assume you're familiar with the concept of AGF? --RexxS (talk) 18:45, 19 April 2019 (UTC)[reply]
No problem, User:RexxS. All is well. Thank You. Bengt Nyman (talk) 20:32, 19 April 2019 (UTC)[reply]

BC deaths[edit]

[[Category:{{#invoke:WikidataIB | getValue | rank=best | P570 | name=death | qid=Q8797| fwd=ALL | osd=no | noicon=yes | df=y | pd=adj | lang=en}} deaths]] doesn't currently work as it includes a link to en:Ante_Christum_Natum - could you investigate and fix please? Thanks. Mike Peel (talk) 17:50, 26 July 2019 (UTC)[reply]

Hi Mike it seems that we have:
  • {{Complex date |date1=16 |era1=BC}} → 16 BC
So it's Module:Complex date that's adding the link. I've added code to Module:WikidataIB/sandbox to remove links from dates if plain date is required:
  • [[:Category:{{#invoke:WikidataIB | getValue | rank=best | P570 | name=death | qid=Q8797| fwd=ALL | osd=no | noicon=yes | df=y | pd=adj | lang=en}} deaths]]Category:16 BC deaths
  • [[:Category:{{#invoke:WikidataIB/sandbox | getValue | rank=best | P570 | name=death | qid=Q8797| fwd=ALL | osd=no | noicon=yes | df=y | pd=adj | lang=en}} deaths]]Category:16 BC deaths
Over to you. --RexxS (talk) 19:47, 26 July 2019 (UTC)[reply]
Thanks - that seems to work nicely! Another one I've just spotted: at Category:Galba, [[Category:{{#invoke:WikidataIB/sandbox | getValue | rank=best | P570 | name=death | qid=Q1414| fwd=ALL | osd=no | noicon=yes | df=y | pd=adj | lang=en}} deaths]] gives Category:0069 deaths rather than Category:69 deaths. Thanks. Mike Peel (talk) 07:09, 27 July 2019 (UTC)[reply]
@Mike: That's down to:
  • {{Complex date |date1=69}}
@Jarekt: Is that desired behaviour?
I've added code in Module:WikidataIB/sandbox to strip leading zeros from the date:
  • [[:Category:{{#invoke:WikidataIB/sandbox | getValue | rank=best | P570 | name=death | qid=Q1414| fwd=ALL | osd=no | noicon=yes | df=y | pd=adj | lang=en}} deaths]]Category:69 deaths
Let me know how that goes. --RexxS (talk) 17:01, 27 July 2019 (UTC)[reply]
Thanks, that looks good! I've updated the main version from the sandbox now. Thanks. Mike Peel (talk) 17:16, 27 July 2019 (UTC)[reply]
Padding or not padding years earlier than 1000 is always a tough choice. {{ISOdate}} that does it has a parameter "trim_year" that allows you to control that behavior. Padding is needed to make dates like "10 May 19" less ambiguous. Is it "May 19, 2010", "May 10, 2019", "May 10, 19 AD" or "May 19, 10 AD". --Jarekt (talk) 19:45, 27 July 2019 (UTC)[reply]

Lua[edit]

After yesterday, I've started putting together Module:Wikidata Infobox to bring helper functions together. Some code review would be appreciated, particularly on how to call WikidataIB from within it! Thanks. Mike Peel (talk) 09:59, 15 August 2019 (UTC)[reply]

September 2019: it's Wiki Loves Monuments time again![edit]

Hi

You're receiving this message because you've previously contributed to the annual Wiki Loves Monuments contest in the UK. We'd be delighted if you would do so again this year and help record our local built environment for future generations.

You can find more details at the Wiki Loves Monuments UK website. Or, if you have images taken in other countries, you can check the international options. This year's contest runs until 30 September 2019.

Many thanks for your help once more! MichaelMaggs (talk) 15:35, 3 September 2019 (UTC)[reply]

Sorting churches. It's community consensus.[edit]

Lua access to SDC[edit]

It apparently has been turned on today? Module talk:Sandbox/Mmullie (WMF)/my module as an example. Do you know if it will work with WikidataIB, or if it needs some tweaks? Thanks. Mike Peel (talk) 10:23, 25 October 2019 (UTC)[reply]

User:Mike_Peel/LuaSDC - it seems to work in WikidataIB/the infobox, at least partially, out of the box! Thanks. Mike Peel (talk) 10:26, 25 October 2019 (UTC)[reply]
Two things that are currently at the top of my wishlist: being able to get the MediaID from the file page in the same way as the sitelink (may already be available via a Lua function?), and being able to go MID -> depicts (P180) -> <list of QIDs> so that I can then loop over each QID to pass it back into WikidataIB to get that item information. Not sure how difficult those would be? Thanks. Mike Peel (talk) 10:34, 25 October 2019 (UTC)[reply]
The first one seems to be solved via [3], but it would be good to integrate that in WikidataIB. Thanks. Mike Peel (talk) 12:38, 25 October 2019 (UTC)[reply]
Ah, I think I can get the second one via [4]! Although I'm sure there's a better way to code that! Thanks. Mike Peel (talk) 13:36, 25 October 2019 (UTC)[reply]
OK, {{MonumentID/SDC}} seems to work, based on P180 values in SDC! It needs quite a bit of tidying through Thanks. Mike Peel (talk) 14:22, 25 October 2019 (UTC)[reply]
In case you feel like a Lua/Wikidata challenge today, I want to start from Creative Commons Attribution 4.0 International (Q20007257), go through topic's main template (P1424) to get Template:Cc-by-4.0 (Q15243503), and then use that to call {{Cc-by-4.0}}, while passing through an attribution string. Would that be difficult? My current code is at {{Structured Data}}, submodule {{Structured Data/License}}, with a demo at File:Jodrell Bank Mark II 5.jpg. Thanks. Mike Peel (talk) 08:11, 27 October 2019 (UTC)[reply]

Google Code-In 2019 is coming - please mentor some documentation tasks![edit]

Hello,

Google Code-In, Google-organized contest in which the Wikimedia Foundation participates, starts in a few weeks. This contest is about taking high school students into the world of opensource. I'm sending you this message because you recently edited a documentation page at Wikimedia Commons.

I would like to ask you to take part in Google Code-In as a mentor. That would mean to prepare at least one task (it can be documentation related, or something else - the other categories are Code, Design, Quality Assurance and Outreach) for the participants, and help the student to complete it. Please sign up at the contest page and send us your Google account address to google-code-in-admins@lists.wikimedia.org, so we can invite you in!

From my own experience, Google Code-In can be fun, you can make several new friends, attract new people to your wiki and make them part of your community.

If you have any questions, please let us know at google-code-in-admins@lists.wikimedia.org.

Thank you!

--User:Martin Urbanec (talk) 22:04, 23 November 2019 (UTC)[reply]

Template loops[edit]

Hi RexxS. I've been trying to get {{Wikidata Infobox/sandbox}} to call itself to embed information about category combines topics (P971), for example via {{Wikidata Infobox/sandbox|qid=Q83645464}}. It's using p.getCombinedWikidataTemplates in Module:Wikidata Infobox/sandbox. I think it works in principle, however it throws an error "Lua error: expandTemplate: template loop detected." Do you know if there's a way around this, other than copy-pasting the infobox to a second template name? Thanks. Mike Peel (talk) 11:01, 26 January 2020 (UTC)[reply]

@Mike: I've never had much success in trying to get recursion in templates. I think that the designers deliberately stop a template calling itself because it might generate an infinite loop and eat up loads of resources until it's cleaned up. Generally, you should avoid expandTemplate as far as possible, and certainly not call it multiple times inside a tight loop as you're doing there. I don't think that making a duplicate template with a different name will help, because as soon as the second template hits the invoke:Wikidata Infobox/sandbox|getCombinedWikidataTemplates line, it will complain about the loop again.
I suggest you should specifically read the info you want through Lua code, rather than calling a template. Perhaps if you give me more of an idea of what you're looking to do? I can see that you're trying to use something like Category:Iranian architects (Q3290) which has a property category combines topics (P971) to get architect, Iran. Did you mean those to just be categories added to the page? You could simply call {{wdib|ps=1|P971|qid=Q3290}} from the template, or require("Module:WikidataIB") and call p.getValue with a table that mimics the frame arguments from Lua code directly. --RexxS (talk) 00:11, 28 January 2020 (UTC)[reply]
Sorry for the slow follow-up. I ended up copying the template to a second place, at least to demo what I want to do. See Category:Enköping (ship, 1868), where it's sort of working, although I need to do some tidying up. The aim is to display the information about the ship in a 'category combines' category. Can you think of a neater way to do that? Pinging @Esquilo: for info since he was interested in this on Wikidata. Thanks. Mike Peel (talk) 19:04, 8 February 2020 (UTC)[reply]
Yea, it need some tidying up, but it does what I want it to do. /ℇsquilo 19:09, 8 February 2020 (UTC)[reply]
I think I found a way around this, by including the Lua call in {{Wikidata Infobox/sandbox}} rather than the core. Thanks. Mike Peel (talk) 15:37, 24 February 2020 (UTC)[reply]

Lua Help needed[edit]

Rex, I am helping user:Multichill with {{Geograph from structured data}}, which in files like File:Castle of Mey and Gardens - geograph.org.uk - 6000001.jpg pull extensive metadata from SDC. I was trying to use Module:WikidataIB but I just can not get it to work I have more luck with Module:Wikidata2 which at least on EnWiki is labeled as depreciated. Calls like {{#invoke:Wikidata2 |getRawQualifierValue|P7482 |P7384 |FETCH_WIKIDATA}} seem to work when the all the SDC properties, but fails when they are not set (see File:Cow_Gap_-_geograph.org.uk_-_6000000.jpg). So two questions:

  1. is there a way to use Module:WikidataIB instead of Module:Wikidata2 to pull P7482/P7384, P275/P2093 or P275/P1476 qualifiers from M87630025? I tried {{#invoke:WikidataIB |getQualifierValue |P275 |pval=Q19068220 |qual=P1476 |name=xyz |fetchwikidata=ALL|qid=M87630025 }} but got "".
  2. Is there a way to avoid errors if qualifier is missing?

As with most cases once write custom Lua code, but I am trying to learn how to use existing modules. --Jarekt (talk) 01:45, 19 March 2020 (UTC)[reply]

Hi Jarekt I think that WikidataIB may already have the functionality you want to get a property like depicts (P180) or copyright license (P275):
  • {{#invoke:WikidataIB | getValue | ps=1 | P180 | linkprefix=":" | qlinkprefix=":" | qid=M87630025}}Castle of Mey, path
If you want qualifiers, you can request a list of them using the desired order:
or all qualifiers by setting qual=ALL :
or you can ask for qualifiers only by setting qualsonly=yes :
  • {{#invoke:WikidataIB | getValue | ps=1 | P275 | linkprefix=":" | qlinkprefix=":" | qid=M87630025 | qual=P2093 |qualsonly=y}} → Andrew Tryon
Is that any help? --RexxS (talk) 18:50, 19 March 2020 (UTC)[reply]
Also, if the qualifier is missing, you just get an blank result, that you can test if {{#if: ...}} or using {{If then show}}:
  • {{#invoke:WikidataIB | getValue | ps=1 | P275 | linkprefix=":" | qlinkprefix=":" | qid=M87630025 | qual=P973 |qualsonly=y}}
Cheers --RexxS (talk) 18:56, 19 March 2020 (UTC)[reply]
If you're writing fresh code, you may find it useful to dump a property from SDC, for example, source of file (P7482) from M87630025 (the order of parameters doesn't matter):
{{examine |P275 |M87630025 }}
table#1 {
    table#2 {
        ["id"] = "M87630025$E9C1F42B-3B57-4877-A002-C77B29A349E9",
        ["mainsnak"] = table#3 {
            ["datatype"] = "wikibase-item",
            ["datavalue"] = table#4 {
                ["type"] = "wikibase-entityid",
                ["value"] = table#5 {
                    ["entity-type"] = "item",
                    ["id"] = "Q19068220",
                    ["numeric-id"] = 19068220,
                },
            },
            ["property"] = "P275",
            ["snaktype"] = "value",
        },
        ["qualifiers"] = table#6 {
            ["P1476"] = table#7 {
                table#8 {
                    ["datatype"] = "monolingualtext",
                    ["datavalue"] = table#9 {
                        ["type"] = "monolingualtext",
                        ["value"] = table#10 {
                            ["language"] = "en",
                            ["text"] = "Castle of Mey and Gardens",
                        },
                    },
                    ["hash"] = "fc0f809dff58a46103bea2f8f49592150ba7ac62",
                    ["property"] = "P1476",
                    ["snaktype"] = "value",
                },
            },
            ["P2093"] = table#11 {
                table#12 {
                    ["datatype"] = "string",
                    ["datavalue"] = table#13 {
                        ["type"] = "string",
                        ["value"] = "Andrew Tryon",
                    },
                    ["hash"] = "2f355f5f3a28f823f588cbe7d4f7ca09dc5964f2",
                    ["property"] = "P2093",
                    ["snaktype"] = "value",
                },
            },
        },
        ["qualifiers-order"] = table#14 {
            "P1476",
            "P2093",
        },
        ["rank"] = "normal",
        ["type"] = "statement",
    },
}
Cheers --RexxS (talk) 19:20, 19 March 2020 (UTC)[reply]
RexxS, Thank you, I was just messing with a wrong function. "GetValue" seems to be exactly what I need. I did discover {{#invoke:Wikidata2|Dump|id=M87630025 }} which seems to be the same. --Jarekt (talk) 01:10, 20 March 2020 (UTC)[reply]
I replaced all the Module:Wikidata2 in {{Geograph from structured data}} and it works much better. I do not understand the magical "ps=1" and without it nothing seems to work, I assume it is "paraset" but it does not seem to be documented. I also like your little "edit at Wikidata" icon, I will try to steel it and use it in my modules to indicate fields populated from wikidata or SDC. I think it would be better than the approach I have in my {{Information/sandbox}} at the moment. I could not get it to show up, but with SDC it would not work properly any way due to phabricator:T241338. Thanks again. --Jarekt (talk) 03:49, 20 March 2020 (UTC)[reply]
@Jarekt: you're right that |ps= is just a convenient parameter set, and works as a shortcut for setting the values of several common parameters. I've now updated the documentation at Module:WikidataIB/doc, which hopefully will be more useful for you. A lot of the functionality has examples/test cases at Module talk:WikidataIB/testing that some folk also find helpful. --RexxS (talk) 16:50, 21 March 2020 (UTC)[reply]
Thanks for the help! Things are coming together. I was thinking about the depicts statements. Wouldn't it be nice to link them to Wikidata? How to do that? See for example on File:Castle of Mey and Gardens - geograph.org.uk - 6000001.jpg.
Another possible improvement would be to show the prominent statement(s) first (bold or something else to make it stand out) and after that the "normal" statements (or just make these small if a prominent is present?). Multichill (talk) 13:07, 28 March 2020 (UTC)[reply]
@Multichill and Jarekt: I'm looking at what adaptations Module:WikidataIB needs to fully handle SDC. The property depicts (P180) is much the same as any other property as far as I can tell. It's worth just trying the functions (most useful are getValue and getPropOfProp) using qid=Mnnn instead of the usual qid=Qnnn and report any issues. I think most of the code is compatible, but I just can't guarantee it at present. I'll let you know when I make progress, but please carry on testing and keeping me informed. Thanks for all your efforts. --RexxS (talk) 16:35, 28 March 2020 (UTC)[reply]
RexxS, I am adapting my lua codes fetching wikidata to fetch SDC as well. In the past I had issues with some Lua functions but they seem to be converging. Raw entity structure is sometimes an issue, for example I had to do those changes to get Module:Wikidata_date to work with SDC. Phabricator:T238484 caused me a lot of issues but apparently it is happening at Wikidata and SDC, so I adapted. I am starting to use "edit at Wikidata" icon with some of my codes, see Module_talk:Wikidata_art/sandbox/testcases for example, and created Data:I18n/EditAt.tab to be used with Module:TNT to internationalize the message. If you want to do the same see how to use it here. Also your "edit at Wikidata" icon might be wrong if you pull stuff from SDC. --Jarekt (talk) 17:00, 28 March 2020 (UTC)[reply]
That's good work, Jarekt, and I'm glad you've warned me about "edit at Wikidata". I can test whether qid starts with "Q" or "M" to distinguish, but I'll probably just wait a bit because the code that generates the icon will also generate the hook for Wikidata Bridge, and I want to see how that is going to work with SDC before I make big changes. Cheers --RexxS (talk) 18:33, 28 March 2020 (UTC)[reply]

How to look up raw value (item ID) of a property?[edit]

Rex, Is there a way to get value of SDC's location of creation (P1071) returned as a item ID? I am reading and rereading documentation of various modules but can not find it. I can easily write it, but there has to be a way to look it up. --Jarekt (talk) 01:26, 27 April 2020 (UTC)[reply]

@Jarekt: I have a function in WikidataIB that might do the job. This is how it works for for a Wikidata item:
  • {{#invoke:WikidataIB |followQid |qid=Q42 |props=P26}} → Q14623681
So the spouse (P26) of Douglas Adams (Q42) has entity-id of Q14623681 which is Wikidata item Jane Belson (Q14623681).
The call actually can do rather more, but you just need the simplest case. This is the documentation:
-- followQid takes three optional parameters: qid, props, and all.
-- 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, unless |all=y when all of the qids are returned, sparated by spaces.
-- If props is not given, the qid is returned.
I haven't tried it on SDC and you didn't give me a n example to test it on. Please let me know whether it works or not with SDC if you try it. Cheers --RexxS (talk) 01:51, 27 April 2020 (UTC)[reply]

Module to convert tabular data to wiki table[edit]

ICYMI, from this weekend's hackathon:

Module:Json2table
[5]

-- Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 12:32, 11 May 2020 (UTC)[reply]

Deus in adiutorium[edit]

Hi. I am a member of the ensemble that made the performance, as you can see here; I made the live recording and as the copyright holder I have released it to Commons under a CC license. --Guido Magnano (talk) 01:08, 18 May 2020 (UTC)[reply]

Thanks very much for that confirmation, Guido Magnano, and thanks for your kind donations to the project. All the best --RexxS (talk) 15:18, 18 May 2020 (UTC)[reply]

Cat[edit]

You have Category:Actors somewhere in this page; please find and remove it. Your TP cannot be in Category:Actors. Thx. --E4024 (talk) 03:23, 14 January 2021 (UTC)[reply]

@E4024: My talk page can be in Category:Actors as you saw. However, it shouldn't be, so I've fixed the bug in Module:WikidataIB/sandbox that was causing the categorisation. Cheers --RexxS (talk) 17:16, 14 January 2021 (UTC)[reply]
As you seem to be very knowledgeable, please have a look at Category:Kyōko Fukada. Although she is in an actresses cat, she also appears in that same Category:Actors annnnnnd also Category:Film actors. I do not know if that is due to some novelty from the WD guys. I work here (and there) with two fingers and know nothing about bugs, templates etc. --E4024 (talk) 17:25, 14 January 2021 (UTC)[reply]
@E4024: The categories 1982 births, Fukada (surname), Kyoko (given name), Actors, Film actors, and Vocalists have been added automatically because the infobox found those on her entry at Wikidata, Kyoko Fukada (Q253882). According to Wikidata, she started work as an actor in 1997 and as a film actor in 1999, which seems to me to indicate that the two occupations are somehow distinct. If you think those dates/occupations are wrong, you could amend the entries on Wikidata, especially if you have a source for the information. --RexxS (talk) 17:42, 14 January 2021 (UTC)[reply]

I should know how to do this, but...[edit]

...it's not working. I would like for this panoramic shot to sit at the top of my user talk page (right under the push to post bar and above the Awareness notice), but when I try to size it for the page, it's either microscopic or HUUUUGE. Easiest way to make it work is to....???? ??? Atsme Talk 📧 20:24, 15 February 2021 (UTC)[reply]

I assume you're talking about your En-wiki talk page at en:User talk:Atsme. I've made a demo of what might be possible, but it's difficult with a panoramic image if it gets resized. For now, I've clipped the right-hand side on windows smaller than HD. --RexxS (talk) 22:23, 15 February 2021 (UTC)[reply]
Works for me! Thank you. Have no clue how I ended-up on your Common's page. 🤔 Atsme Talk 📧 03:17, 16 February 2021 (UTC)[reply]

Image thumbnails with widths of multiples of 4[edit]

Missing minus sign before 1/3

Hi RexxS,

To my query on en:Wikipedia:SVG_help#Missing_rows_of_pixels, Redrose64 wrote, "I think I read it somewhere, possibly in a post by RexxS (talk · contribs), that multiples of 4px are preferred."

I couldn't find this posting in your history and wondered if you can share any tips or observations about this matter. My immediate issue is that on some devices and thumbnail sizes, the minus sign before 1/3 on the fifth line in this image vanishes.

Thanks,
cmɢʟee ⋅τaʟκ 00:28, 16 April 2021 (UTC)[reply]

User right removed[edit]

Hello RexxS, I've removed your template editor rights as you were inactive for more than a year (policy). If you wish to return and have a need for the tools, don't hesitate to ping me and I'll grant the right again. Thanks. --Minorax«¦talk¦» 08:11, 14 August 2022 (UTC)[reply]