Module talk:WikidataIB
![]() | Module:WikidataIB is permanently protected from editing because it is a heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit.
|
|
![]() | This module was considered for deletion on 2020 September 15. The result of the discussion was "keep". |
|
||||||||
This page has archives. Sections older than 60 days may be automatically archived by Lowercase sigmabot III when more than 3 sections are present. |
Pulling structured data from Commons
Is there an equivalent to this module to retrieve structured data from a file on wikimedia commons? E.g. this file should have P275 = Q20007257. Any ideas? T.Shafee(Evo&Evo)talk 06:29, 10 March 2023 (UTC)
value instead of Qid in qvalue
With module Wd it's possible to do this (for total revenue in d:Q30288051):
- {{#invoke:Wd|property|eid=Q30288051|P2139|P585=2017}} → 1,993,978 United States dollar
but module WikidataIB only takes qualifier ID for qvalue so the following does not work
- {{#invoke:WikidataIB |getValueByQual |qid=Q30288051 |P2139 |qualID=P585 |qvalue=2017}} →
Is there a way to use any value, like in module Wd? Ponor (talk) 18:00, 2 June 2023 (UTC)
- @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 Wikidata time value is non-trivial, so I don't expect that getValueByQual will support the
time
datatype any time soon. LennardHofmann (talk) 18:59, 2 June 2023 (UTC)
Possible bug
I think {{wdib|P38|qid=Q30|sn=true|noicon=true|osd=no|fwd=ALL}}
should output "US dollar", not "United States dollar" (as it does now), because sn=true
was given. Is it a bug? Janhrach (talk) 08:20, 8 July 2023 (UTC)
- @Janhrach: Fixed with this edit in Module:WikidataIB/sandbox. In the meantime, use
|shortname=
instead of|sn=
. LennardHofmann (talk) 15:33, 9 July 2023 (UTC)- @LennardHofmann: Thank you. Janhrach (talk) 15:50, 9 July 2023 (UTC)
Edit request on 10 July 2023
![]() | It is requested that an edit be made to the template-protected module at Module:WikidataIB. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the module's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Please copy the contents of the sandbox to the main module. LennardHofmann probably forgot to make an edit request, so I'm making it instead. Janhrach (talk) 11:59, 10 July 2023 (UTC)