2,788
edits
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
} | } | ||
local function get_data( | local function get_data(args) | ||
local args = m_parameters.process( | 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") |