Module:Sandbox: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 18: Line 18:
return "[["..link.."|"..label.." ".."("..id..")".."]]"
return "[["..link.."|"..label.." ".."("..id..")".."]]"
end
function p.test_snak(id)
local entity = mw.wikibase.getEntity(id)
local snak = entity['claims']['P4'][1]
mw.wikibase.renderSnak( snak )
end
end


return p;
return p;

Navigation menu