Module:User:Benwing2/etymology/templates/borrowed
Jump to navigation
Jump to search
- This module sandbox lacks a documentation subpage. You may create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • user page • user talk page • userspace
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 = {}
local etymology_module = "Module:User:Benwing2/etymology"
local etymology_multi_module = "Module:User:Benwing2/etymology/multi"
local etymology_templates_internal_module = "Module:etymology/templates/internal"
function export.borrowed(frame)
local args, lang, term, sources = require(etymology_templates_internal_module).parse_2_lang_args(frame)
if sources then
return require(etymology_multi_module).format_multi_borrowed {
lang = lang,
sc = term.sc,
sources = sources,
terminfo = term,
sort_key = args.sort,
nocat = args.nocat,
conj = args.conj,
}
else
return require(etymology_module).format_borrowed {
lang = lang,
terminfo = term,
sort_key = args.sort,
nocat = args.nocat,
}
end
end
return export