از ویکیپدیا، دانشنامهٔ آزاد
local p = {}
function p.link(frame)
frame = frame:getParent()
if frame.args[1] then
link = frame.args[1]
else
entity = mw.wikibase.getEntity()
if (entity == nil or entity.sitelinks.enwikivoyage == nil) then
return nil
else
link = entity.sitelinks.enwikivoyage.title
end
end
return link
end
return p