Module:Sandbox

From Wikidata
Jump to navigation Jump to search
local p = {}
function p.hello(frame)
    return 'Hello 123'
end

function p.flag(frame)
	id = frame.args["id"]
	local bestStatement = mw.wikibase.getBestStatements(id, "P41")[1]["mainsnak"]["datavalue"]["value"]
	return bestStatement
end	

return p