Module talk:WikidataIB: Difference between revisions

Content deleted Content added
Bug in fetching referenced data: multiple dates of birth
Line 278:
::: I think this is just a question of how the code should select which value to use, rather than having to affect the date formatting code. This could easily happen with a plain-text/Q-linked value as with a date. I haven't figured out the details of the ranking system on Wikidata myself yet - I'm not sure whether you can have more than one "preferred rank" value or not. Thanks. [[User:Mike Peel|Mike Peel]] ([[User talk:Mike Peel|talk]]) 18:30, 28 January 2017 (UTC)
:::: {{reply to |Mike Peel|label=Mike}} As far as I know, you can have many of each rank as you wish. The question is how should we deal with the case where multiple values of the property exist with the same rank? We would want to return as a list multiple values of most fields, e.g. occupation, but surely we wouldn't want multiple dates of birth returned? --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 20:56, 28 January 2017 (UTC)
::::: Apparently sometimes multiple dates of birth do need to be returned, e.g. from [[:d:Q885424]]. So maybe just return all of the referenced statements for the highest rank available? Thanks. [[User:Mike Peel|Mike Peel]] ([[User talk:Mike Peel|talk]]) 22:52, 6 February 2017 (UTC)
 
== Unsafe use of labels ==