Module:links/templates: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 15: Line 15:
}
}


local function get_data(frame)
local function get_data(args)
local args = m_parameters.process(frame:getParent(), params)
local args = m_parameters.process(args, params)
return {
return {
term = args[1],
term = args[1],
Line 26: Line 26:


function export.link(frame)
function export.link(frame)
return m_links.full_link(get_data(frame))
return m_links.full_link(get_data(frame:getParent().args))
end
end


function export.mention(frame)
function export.mention(frame)
return m_links.full_link(get_data(frame), "term")
return m_links.full_link(get_data(frame:getParent().args), "term")
end
end


function export.mention_with_language_name(frame)
function export.mention_with_language_name(frame)
local data = get_data(frame)
local data = get_data(frame:getParent().args)
data["showlanguage"] = true
data["showlanguage"] = true
return m_links.full_link(data, "term")
return m_links.full_link(data, "term")

Navigation menu