Module:pollasena-roots/templates: Difference between revisions
Created page with "local m_pr = require("Module:pollasena-roots") local export = {} local function concat_etymologies(args, etymologies) local capital = args.nocap and "f" or "F" return capital .. "rom " .. table.concat(etymologies, ", from ") .. "." end function export.qsc(frame) local parent_args = frame:getParent().args local ancestor_codes = { { code = "sekh", options = {} }, { code = "wasc", options = {optional = true, roots = true } } } local evolution, args, catego..." |
No edit summary |
||
| Line 29: | Line 29: | ||
{ 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 35: | ||
return concat_etymologies(args, evolution) .. categories | return concat_etymologies(args, evolution) .. categories | ||
end | end | ||
--[[ | |||
oltic (lyti) [< middle oltic (lyti-mid) < old oltic (lyti-old)] < proto-celtic (cel-pro) | |||
]] | |||
function export.lyti_loan(frame) | function export.lyti_loan(frame) | ||
| Line 59: | Line 57: | ||
local evolution, args, categories = m_pr.parse_args(parent_args, "lyti", ancestor_codes) | local evolution, args, categories = m_pr.parse_args(parent_args, "lyti", ancestor_codes) | ||
return concat_etymologies(args, evolution) .. categories | |||
end | |||
function export.gwax_wasc(frame) | |||
local parent_args = frame:getParent().args | |||
local ancestor_codes = { | |||
{ code = "wasc", options = {roots = true } } | |||
} | |||
local evolution, args, categories = m_pr.parse_args(parent_args, "gwax", ancestor_codes) | |||
return concat_etymologies(args, evolution) .. categories | |||
end | |||
function export.guim(frame) | |||
local parent_args = frame:getParent().args | |||
local ancestor_codes = { | |||
{ code = "ine-pro", options = { roots = true } } | |||
} | |||
local evolution, args, categories = m_pr.parse_args(parent_args, "guim", ancestor_codes) | |||
return concat_etymologies(args, evolution) .. categories | |||
end | |||
function export.sekh(frame) | |||
local parent_args = frame:getParent().args | |||
local ancestor_codes = { | |||
{ code = "wasc", options = {optional = true, roots = true } } | |||
} | |||
local evolution, args, categories = m_pr.parse_args(parent_args, "sekh", ancestor_codes) | |||
return concat_etymologies(args, evolution) .. categories | |||
end | |||
function export.hzlc(frame) | |||
local parent_args = frame:getParent().args | |||
local ancestor_codes = { | |||
{ code = "wasc", options = {optional = true, roots = true } } | |||
} | |||
local evolution, args, categories = m_pr.parse_args(parent_args, "hzlc", ancestor_codes) | |||
return concat_etymologies(args, evolution) .. categories | |||
end | |||
function export.soky(frame) | |||
local parent_args = frame:getParent().args | |||
local ancestor_codes = { | |||
{ code = "qsc", options = {} }, | |||
{ code = "sekh", options = {} }, | |||
{ code = "wasc", options = {optional = true, roots = true } } | |||
} | |||
local evolution, args, categories = m_pr.parse_args(parent_args, "soky", ancestor_codes) | |||
return concat_etymologies(args, evolution) .. categories | |||
end | |||
function export.azms(frame) | |||
local parent_args = frame:getParent().args | |||
local ancestor_codes = { | |||
{ code = "azms-old", options = {optional = true} }, | |||
{ code = "arto-pro", options = {} }, | |||
{ code = "mish-pro", options = {} }, | |||
{ code = "ine-pro", options = {optional = true, roots = true } } | |||
} | |||
local evolution, args, categories = m_pr.parse_args(parent_args, "azms", ancestor_codes) | |||
return concat_etymologies(args, evolution) .. categories | return concat_etymologies(args, evolution) .. categories | ||