Module talk:WikidataIB: Difference between revisions

Content deleted Content added
No edit summary
m Archiving 1 discussion(s) to Module talk:WikidataIB/Archive 8) (bot
Line 12:
{{oldtfdfull|date= 2020 September 15 |result=keep |disc=Module:Wikidata Infobox}}
{{archives|search=yes}}
 
== value instead of Qid in qvalue ==
 
With module [[:Module:Wd|Wd]] it's possible to do this (for ''total revenue'' in [[:d:Q30288051]]):
*<nowiki>{{#invoke:Wd|property|eid=Q30288051|P2139|P585=2017}}</nowiki> → {{#invoke:Wd|property|eid=Q30288051|P2139|P585=2017}}
but module WikidataIB only takes qualifier ID for qvalue so the following does not work
*<nowiki>{{#invoke:WikidataIB |getValueByQual |qid=Q30288051 |P2139 |qualID=P585 |qvalue=2017}}</nowiki> → {{#invoke:WikidataIB |getValueByQual |qid=Q30288051 |P2139 |qualID=P585 |qvalue=2017}}
Is there a way to use any value, like in module Wd? [[User:Ponor|Ponor]] ([[User talk:Ponor|talk]]) 18:00, 2 June 2023 (UTC)
 
:@[[User:Ponor|Ponor]]: There is a comment in the code that says "We'll only deal with wikibase-items and strings for now". Checking whether a given date string (e.g. "2017") matches a [https://doc.wikimedia.org/Wikibase/master/php/docs_topics_json.html#json_datavalues_time Wikidata time value] is non-trivial, so I don't expect that getValueByQual will support the <code>time</code> datatype any time soon. [[User:LennardHofmann|LennardHofmann]] ([[User talk:LennardHofmann|talk]]) 18:59, 2 June 2023 (UTC)
 
== Possible bug ==