:https://en.wikipedia.org/wiki/Module_talk:Wd#Add_a_'maxvals'_option_as_in_https://en.wikipedia.org/wiki/Module:WikidataIB [[User:AdrianoRutz|AdrianoRutz]] ([[User talk:AdrianoRutz|talk]]) 08:43, 7 October 2022 (UTC)
::OK, thx. Other issues in here: reference formatting (& omitting when maxval is used). Bottleneck in moving fwd is time here; sub-ideal solutions in mind. [[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 08:50, 7 October 2022 (UTC)
== getWebsite error ==
I think there is an error in the getWebsite function. If there is no wikidata item corresponding to the current page then it will not even display the locally defined parameter. That prevents it being tested properly on talk pages and testcases.
<pre>{{#invoke:WikidataIB|getWebsite|url=www.google.com}}</pre>
currently produces: {{#invoke:WikidataIB|getWebsite|url=www.google.com}}
— Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 06:36, 3 October 2022 (UTC)
:@[[User:MSGJ|MSGJ]] <s>Which infobox? This may be a template-level issue.</s> Nevermind I'm dumb, I missed your example because it's literally blank :) Taking a glance... -- [[User:Ferret|ferret]] ([[User_talk:Ferret|talk]]) 14:20, 3 October 2022 (UTC)
:@[[User:MSGJ|MSGJ]] The culprit is the line {{tq|if not qid then return nil end}}. If the page has no qid, the function ends early. I think this should probably be something like {{tq|if not qid and not url then return nil end}}. That should allow it to continue if a locally defined url is set. -- [[User:Ferret|ferret]] ([[User_talk:Ferret|talk]]) 14:29, 3 October 2022 (UTC)
::Yes I agree. Was just checking in case I'd missed something silly. This function is not really documented. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 15:41, 3 October 2022 (UTC)
::I've got some code which seems to work in [[Module:WikidataIB/sandbox]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:35, 4 October 2022 (UTC)
:::Deployed — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:10, 6 October 2022 (UTC)
== Using "unknown value" in queries ==
|