local p = -- This is used to return an image filename from Wikidata (property p18), or "Noimage.svg" if none existsp.getImage = function(frame) local ent = mw.wikibase.getEntityObject local props = ent:formatPropertyValues('P18') local out = for k, v in pairs(props) do if k
0 then ret = "Noimage.svg" end return retend
return p