Module:taln-conj: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 194: | Line 194: | ||
local forms = {} | local forms = {} | ||
local function get_slot_stem(slot) | |||
local prefix = mw.ustring.match(slot, "^(.-)_") | |||
if args[prefix .. "_stem"] and args[prefix .. "_stem"] ~= "" then | |||
return args[prefix .. "_stem"] | |||
end | end | ||
return stem | |||
end | |||
for slot, ending in pairs(endings[class]) do | |||
if args[slot] and args[slot] ~= "" then | |||
forms[slot] = args[slot] | |||
else | |||
local slot_stem = get_slot_stem(slot) | |||
forms[slot] = combine(slot_stem, ending) | |||
end | |||
end | |||
local text = | local text = | ||