Module:Sandbox: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 20: Line 20:
end
end


function p.test_statement(frame)
function p.test_resource_location(frame)
local id = frame.args.id;
local id = frame.args.id;
return mw.wikibase.getAllStatements(id, 'P4' )["id"]
return mw.wikibase.getEntity(id):formatPropertyValues('P4')['value'];
end
end


return p;
return p;

Navigation menu