Module:etymology/templates/derived: Difference between revisions

No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
function export.derived(frame)
function export.derived(frame)
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)
local processes = {
["c"] = "calqued", ["i"] = "inherited", ["b"] = "borrowed", ["lb"] = "learned borrowings"
}
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 24: Line 21:
nocat = args.nocat,
nocat = args.nocat,
conj = args.conj,
conj = args.conj,
template_name = "cognate", --process or "derived",
template_name = "derived",
borrowing_type = processes[args.p] or nil,
--to_wik = true,
--to_wik = true,
}
}
Line 34: Line 32:
nocat = args.nocat,
nocat = args.nocat,
template_name = "derived",
template_name = "derived",
borrowing_type = processes[args.p] or nil
--to_wik = true,
--to_wik = true,
}
}