Module:pollasena-roots/templates: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 12: | Line 12: | ||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "sekh", options = {} }, | {code = "sekh", options = {}}, | ||
{ code = "wasc", options = {optional = true, roots = true } } | {code = "wasc", options = {optional = true, roots = true}} | ||
} | } | ||
| Line 25: | Line 25: | ||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "lyti-mid", options = {} }, | {code = "lyti-mid", options = {}}, | ||
{ code = "lyti-old", options = {} }, | {code = "lyti-old", options = {}}, | ||
{ code = "cel-pro", options = {annotated = true} }, | {code = "cel-pro", options = {annotated = true}}, | ||
{ code = "ine-pro", options = {roots = true} }, | {code = "ine-pro", options = {roots = true}}, | ||
} | } | ||
| Line 41: | Line 41: | ||
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 = {}}, | ||
} | } | ||
| Line 61: | Line 61: | ||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "wasc", options = {roots = true } } | {code = "wasc", options = {roots = true}} | ||
} | } | ||
| Line 71: | Line 71: | ||
function export.gwax_nen(frame) | function export.gwax_nen(frame) | ||
local parent_args = frame:getParent().args | local parent_args = frame:getParent().args | ||
parent_args.nocat = true -- no custom categories for Nentammmi | |||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "nent-pro", options = {roots = true } } | {code = "nent-pro", options = {roots = true}} | ||
} | } | ||
local evolution, args, categories = m_pr.parse_args(parent_args, "gwax", ancestor_codes) | local evolution, args, categories = m_pr.parse_args(parent_args, "gwax", ancestor_codes) | ||
return concat_etymologies(args, evolution) | return concat_etymologies(args, evolution) .. categories | ||
end | end | ||
| Line 85: | Line 86: | ||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "ine-pro", options = { roots = true } } | {code = "ine-pro", options = {roots = true}} | ||
} | } | ||
| Line 97: | Line 98: | ||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "wasc", options = {optional = true, roots = true } } | {code = "wasc", options = {optional = true, roots = true}} | ||
} | } | ||
| Line 109: | Line 110: | ||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "wasc", options = {optional = true, roots = true } } | {code = "wasc", options = {optional = true, roots = true}} | ||
} | } | ||
| Line 121: | Line 122: | ||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "qsc", options = {} }, | {code = "qsc", options = {}}, | ||
{ code = "sekh", options = {optional = true} }, | {code = "sekh", options = {optional = true}}, | ||
{ code = "wasc", options = {optional = true, roots = true } } | {code = "wasc", options = {optional = true, roots = true}} | ||
} | } | ||
| Line 135: | Line 136: | ||
local ancestor_codes = { | local ancestor_codes = { | ||
{ code = "azms-old", options = { optional = true } }, | {code = "azms-old", options = {optional = true}}, | ||
{ code = "arto-pro", options = { optional = true } }, | {code = "arto-pro", options = {optional = true}}, | ||
{ code = "mish-pro", options = { optional = true } }, | {code = "mish-pro", options = {optional = true}}, | ||
{ code = "ine-pro", options = { roots = true } } | {code = "ine-pro", options = {optional = true, roots = true}} | ||
} | } | ||