Content deleted Content added
m Archiving 1 discussion(s) to Module talk:WikidataIB/Archive 8) (bot |
→getWebsite error: Reply |
||
Line 49:
:@[[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)
|