Changes
m
if local qid = parentArgs['qid'] or parentArgs['QID'] if qid then itemId = 'Q'..mw.ustring.gsub(parentArgs['QID']qid, '^[Qq]', '')
Allow/prefer qid param to QID, per talk. Continue to allow QID for backwards compatibility to original implementation in June 2018.
local itemId = nil
if namespace ~= 0 then
itemId = resolveEntity._id(itemId) --nil if unresolvable
end