-- smsingh Task 9, Using Wikidata in Wikipedialocal p = p.wikidata = function(frame) entityid = frame.args.entityid request = frame.args.request if request
'family name' then property = 'P734' elseif request
'occupation' then property = 'P106' elseif request
nil) then --datatoprint = mw.wikibase.getSitelink(statementstbl[1].mainsnak.datavalue.value.id) datatoprint = mw.wikibase.getSitelink(statementstbl[1].mainsnak.datavalue.value.id) else return end return datatoprintendreturn p