Module:Wikidata: Difference between revisions

Content deleted Content added
+getSiteLink tested in ukwikiquote
Line 678:
i = i + 1
end
end
 
-- getting sitelink of a given wiki
function p.getSiteLink(frame)
local f = frame.args[1]
local entity = mw.wikibase.getEntity()
local link = entity:getSitelink( f )
if not link then
return
end
return link
end