Module:Sandbox: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 14: Line 14:
link = "Property:"..id
link = "Property:"..id
else
else
link = "Special:EntityData:"..id
link = "Special:EntityData/"..id
end
end
return "[["..link.."|"..label.." ".."("..id..")".."]]"
return "[["..link.."|"..label.." ".."("..id..")".."]]"
end
function p.test_snapshot(frame)
local id = frame.args.id;
local snapshot = mw.wikibase.getEntity(id);
local snapshot_name = snapshot:getLabel();
local release = snapshot:formatPropertyValues('P9')['value'];
return snapshot_name .. " (" .. release .. " snapshot)"
end
end


return p;
return p;