Talk:Q6209669

From Wikidata
Jump to navigation Jump to search

Wrong use of "no value"[edit]

@Salgo60: Referring to this edit. All persons do have a place of birth (P19) so it can't be "no value" (sv. "inget värde"). If it is unknown according to the source you have used, you can state it as "unknown value" (sv. "okänt värde"). --Larske (talk) 12:01, 4 January 2019 (UTC)[reply]

@Larske: Yes agree.... - Salgo60 (talk) 12:49, 4 January 2019 (UTC)[reply]
@Larske: I added with higher rank the birth location but then I get an error in the LUA code in the infobox
Luafel i Modul:Wikidata2 på rad 35: attempt to index field 'datavalue' (a nil value).
solution I guess is just to delete it but maybe we should support this combination in the Infobox and more gracefully take care of the error. I feel you understand this area better than me so therefore I wait for you before deleting "okänt värde"- Salgo60 (talk) 14:57, 4 January 2019 (UTC)[reply]
@Salgo60: Thanks for reporting this bug. The newly introduced namefordata functionality assumed that there is always one claim for the property and that this claim always has a value. The code has now been improved to be able to handle several claims and ignores statements with rank "deprecated" or with type "novalue" or "somevalue". Only claims with "values" will be considered. If there are more than one that is not "deprecated", the function will use the first with "preferred" rank or the last with "normal" rank. --Larske (talk) 16:08, 4 January 2019 (UTC)[reply]