Module:User:Benwing2/etymology/templates/derived

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This is a private module sandbox of Benwing2, for their own experimentation. Items in this module may be added and removed at Benwing2's discretion; do not rely on this module's stability.


local export = {}

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

return export