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_snak(id)
function p.test_snak(frame)
local id = frame.args.id;
local entity = mw.wikibase.getEntity(id)
local entity = mw.wikibase.getEntity(id)
local snak = entity['claims']['P4'][1]
local snak = entity['claims']['P4'][1]

Navigation menu