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_resource_location(frame)
function p.test_snapshot(frame)
local id = frame.args.id;
local id = frame.args.id;
return mw.wikibase.getEntity(id):formatPropertyValues('P4')['value'];
local snapshot = mw.wikibase.getEntity(id);
local snapshot_name = snapshot:getLabel();
local release = snapshot:formatPropertyValues('P9')['value'];
return release
end
end


return p;
return p;

Navigation menu