209
edits
mNo edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
return mw_src | return mw_src | ||
end | |||
function m.descendant(frame) | |||
local args = m_args.getArgs(frame) | |||
local lang_code = args[1] | |||
local word = args[2] | |||
local lang = m_languages.getByCode(lang_code, nil, false, false) | |||
if not lang then | |||
error(string.format("Invalid language code '%s'"), lang_code) | |||
end | |||
local canon_lang_name = lang:getCanonicalName() | |||
return '<span class="desc-arr" title="borrowed">→</span>' .. canon_lang_name .. ": " .. '<span class="Latn" lang="lthm-pro">[[Contionary:' .. word .. "|" .. word .. "]]</span>" | |||
end | end | ||
return m | return m |
edits