Module:pollasena-roots/templates: Difference between revisions
No edit summary |
No edit summary |
||
| Line 38: | Line 38: | ||
function export.lyti_loan(frame) | function export.lyti_loan(frame) | ||
local parent_args = frame:getParent().args | local parent_args = frame:getParent().args | ||
local source_code = parent_args | parent_args.borrowing = true | ||
local source_code = parent_args[1] or "und" | |||
local ancestor_codes = { | local ancestor_codes = { | ||
{code = "lyti-mid", options = {optional = not parent_args.mid}}, | {code = "lyti-mid", options = {optional = not parent_args.mid}}, | ||
{code = "lyti-old", options = {optional = not parent_args.old}}, | {code = "lyti-old", options = {optional = not parent_args.old}}, | ||
{code = source_code, options = { | {code = source_code, options = {borrowed = true}}, | ||
} | } | ||