Module:etymology/templates/derived

From Linguifex
< Module:etymology‎ | templates
Revision as of 19:23, 30 November 2022 by Sware (talk | contribs) (Created page with "local export = {} function export.derived(frame) local args, lang, term, sources = require("Module:etymology/templates/internal").parse_2_lang_args(frame) if sources then...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:etymology/templates/derived/doc

local export = {}

function export.derived(frame)
	local args, lang, term, sources = require("Module:etymology/templates/internal").parse_2_lang_args(frame)
	if sources then
		return require("Module:etymology/multi").format_multi_derived(lang, term.sc, sources, term, args.sort,
			args.nocat, args.conj, "derived")
	else
		return require("Module:etymology").format_derived(lang, term, args.sort, args.nocat, "derived")
	end
end

return export