Module:etymology/templates/derived: Difference between revisions

No edit summary
No edit summary
Line 8: Line 8:
local args, lang, term, sources = require(etymology_templates_internal_module).parse_2_lang_args(frame)
local args, lang, term, sources = require(etymology_templates_internal_module).parse_2_lang_args(frame)
if sources then
if sources then
local processes = {
["cog"] = "cognate", ["inh"] = "inherited",
["bor"] = "borrowed",
}
local process = processes[args.p] or nil
return require(etymology_multi_module).format_multi_derived {
return require(etymology_multi_module).format_multi_derived {
lang = lang,
lang = lang,
Line 16: Line 24:
nocat = args.nocat,
nocat = args.nocat,
conj = args.conj,
conj = args.conj,
template_name = "derived",
template_name = process or "derived",
--to_wik = true,
--to_wik = true,
}
}