Module:et-verbs

Hello, you have come here looking for the meaning of the word Module:et-verbs. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:et-verbs, but we will also tell you about its etymology, its characteristics and you will know how to say Module:et-verbs in singular and plural. Everything you need to know about the word Module:et-verbs you have here. The definition of the word Module:et-verbs will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:et-verbs, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module is used for creating Estonian verb inflection tables.


local m_utilities = require("Module:utilities")
local m_links = require("Module:links")

local lang = require("Module:languages").getByCode("et")

local export = {}

-- Functions that do the actual inflecting by creating the forms of a basic term.
local inflections = {}

-- The main entry point.
-- This is the only function that can be invoked from a template.
function export.show(frame)
	local infl_type = frame.args or error("Inflection type has not been specified. Please pass parameter 1 to the module invocation")
	local args = frame:getParent().args
	
	if not inflections then
		error("Unknown inflection type '" .. infl_type .. "'")
	end
	
	local data = {forms = {}, title = nil, categories = {}}
	
	-- Generate the forms
	inflections(args, data)
	
	-- Postprocess
	postprocess(args, data)
	
	if args then
		table.insert(data.categories, "et-conj with type")
	end
	
	return make_table(data) .. m_utilities.format_categories(data.categories, lang)
end

-- Get parameters from the template, in standard order and numbering
local function get_params(args, num)
	local params = {}
	
	if num == 4 then
		params.base = args or (mw.title.getCurrentTitle().nsText == "Template" and "{{{1}}}"); if not params.base or params.base == "" then error("Parameter 1 (base stem) may not be empty.") end
		params.strong = args or (mw.title.getCurrentTitle().nsText == "Template" and "{{{2}}}") or ""
		params.weak = args or (mw.title.getCurrentTitle().nsText == "Template" and "{{{3}}}") or ""
		params.final = args or (mw.title.getCurrentTitle().nsText == "Template" and "{{{4}}}"); if not params.final or params.final == "" then error("Parameter 4 (final letter(s)) may not be empty.") end
	elseif num == 3 then
		params.base = args or (mw.title.getCurrentTitle().nsText == "Template" and "{{{1}}}"); if not params.base or params.base == "" then error("Parameter 1 (base stem) may not be empty.") end
		params.strong = args or (mw.title.getCurrentTitle().nsText == "Template" and "{{{2}}}") or ""
		params.weak = args or (mw.title.getCurrentTitle().nsText == "Template" and "{{{3}}}") or ""
	elseif num == 1 then
		params.base = args or (mw.title.getCurrentTitle().nsText == "Template" and "{{{1}}}"); if not params.base or params.base == "" then error("Parameter 1 (base stem) may not be empty.") end
	end
	
	return params
end

-- Inflection functions

local stem_endings = {}

stem_endings = {
	 = "ma",
	 = "mas",
	 = "mast",
	 = "maks",
	 = "mata",
	 = "vat",
	
	 = "matu",
}

stem_endings = {
	 = "a",
	 = "es",
}

stem_endings = {
	 = "n",
	 = "d",
	 = "b",
	 = "me",
	 = "te",
	 = "vad",
	 = "",
	
	 = "ksin",
	 = "ksid",
	 = "ks",
	 = "ksime",
	 = "ksite",
	 = "ksid",
	 = "ks",
	
	 = "",
}

stem_endings = {
	 = "n",
	 = "d",
	 = "me",
	 = "te",
	 = "d",
}

stem_endings = {
	 = "",
}

stem_endings = {
	 = "u",
	 = "em",
	 = "e",
	 = "u",
}

stem_endings = {
	 = "v",
}

stem_endings = {
	 = "uksin",
	 = "uksid",
	 = "uks",
	 = "uksime",
	 = "uksite",
	 = "uksid",
	 = "ud",
}

stem_endings = {
	 = "akse",
}

stem_endings = {
	 = "a",
	 = "i",
	 = "aks",
	 = "aks",
	 = "agu",
	 = "avat",
	
	 = "ama",
		
	 = "av",
	 = "ud",
}


local function process_stems(data, stems)
	-- Go through each of the stems given
	for stem_key, substems in pairs(stems) do
		for _, stem in ipairs(substems) do
			-- Attach the endings to the stem
			for form_key, ending in pairs(stem_endings) do
				if not data.forms then
					data.forms = {}
				end
				
				table.insert(data.forms, stem .. ending)
			end
		end
	end
end


inflections = function(args, data)
	data.title = "ÕS type ], no gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " elama-type verbs")
	
	local params = get_params(args, 1)
	
	if mw.ustring.find(params.base, "`") then
		require("Module:debug").track("et-verbs/`")
	end
	
	local pres_pasv_stem = ""
	local past_pasv_part_stem = ""
	local past_part_stem = ""
	
	if params.base == "kaitse" then
		pres_pasv_stem = "kaitst"
		past_pasv_part_stem = "kaitst"
		past_part_stem = "kaitsn"
	elseif params.base == "aja" then
		pres_pasv_stem = "aet"
		past_pasv_part_stem = "aet"
		past_part_stem = "ajan"
	else 
		pres_pasv_stem = params.base .. "t"
		past_pasv_part_stem = params.base .. "t"
		past_part_stem = params.base .. "n"
	end
	
	local stems = {}
	stems         = {params.base}
	stems         = {params.base .. "d"}
	stems           = {params.base}
	stems           = {params.base .. "si"}
	stems       = {params.base .. "s"}
	stems           = {params.base .. "g"}
	stems      = {params.base}
	stems      = {past_part_stem}
	stems      = {pres_pasv_stem}
	stems = {past_pasv_part_stem}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " õppima-type verbs")
	
	local params = get_params(args, 4)
	
	if params.strong == params.weak then
		data.title = data.title .. ", no gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	
	local weak_stem
	local passive_stem
	local past_stem
	
	weak_stem = params.base .. params.weak .. params.final
	
	--handles verbs with irregular weak stems
	if params.weak == "" then
		if mw.ustring.find(params.base, "u$") and params.final == "e" then
			-- lugema
			weak_stem = mw.ustring.gsub(params.base, "u$", "o") .. "e"
		elseif mw.ustring.find(params.base, "i$") and params.final == "u" then
			-- siduma
			weak_stem = mw.ustring.gsub(params.base, "i$", "e") .. "o"
		elseif mw.ustring.find(params.base, "a$") and params.final == "u" then
			-- kaduma
			weak_stem = params.base .. "o"
		elseif mw.ustring.find(params.base, "e$") and params.final == "a" then
			-- vedama
			passive_stem = params.base .. "e"
		elseif mw.ustring.find(params.base, "i$") and params.final == "a" then
			-- pidama
			weak_stem = mw.ustring.gsub(params.base, "i$", "e") .. "a"
			passive_stem = mw.ustring.gsub(params.base, "i$", "e") .. "e"
		end
	end
	
	if not passive_stem then
		passive_stem = weak_stem
	end
	
	local stems = {}
	stems         = {params.base .. params.strong .. params.final}
	stems         = {params.base .. params.strong .. params.final .. "d"}
	stems           = {weak_stem}
	stems           = {params.base .. params.strong .. params.final .. "si"}
	stems       = {params.base .. params.strong .. params.final .. "s"}
	stems           = {params.base .. params.strong .. params.final .. "g"}
	stems      = {params.base .. params.strong .. params.final}
	stems      = {params.base .. params.strong .. params.final .. "n"}
	stems      = {passive_stem .. "t"}
	stems = {passive_stem .. "t"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ], ''g-ø'' gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " nägema-type verbs")
	
	local params = get_params(args, 1)
	
	local stems = {}
	stems         = {params.base .. "ge"}
	stems         = {params.base .. "h"}
	stems           = {params.base .. "e"}
	stems           = {params.base .. "gi"}
	stems       = {params.base .. "gi"}
	stems           = {params.base .. "hk"}
	stems      = {params.base .. "ge"}
	stems      = {params.base .. "in"}
	stems      = {params.base .. "h"}
	stems = {params.base .. "ht"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " hüppama-type verbs")
	
	local params = get_params(args, 4)
	
	if params.strong == params.weak then
		data.title = data.title .. ", no gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	local stems = {}
	stems         = {params.base .. params.strong .. params.final}
	stems         = {params.base .. params.weak .. params.final .. "t"}
	stems           = {params.base .. params.strong .. params.final}
	stems           = {params.base .. params.strong .. params.final .. "si"}
	stems       = {params.base .. params.strong .. params.final .. "s"}
	stems           = {params.base .. params.weak .. params.final .. "k"}
	stems      = {params.base .. params.strong .. params.final}
	stems      = {params.base .. params.weak .. params.final .. "n"}
	stems      = {params.base .. params.weak .. params.final .. "t"}
	stems = {params.base .. params.weak .. params.final .. "t"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " vaidlema-type verbs")
	
	local params = get_params(args, 3)
	
	if params.strong == params.weak then
		data.title = data.title .. ", no gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	local weak_stem = params.base .. params.weak .. "e"
	
	-- Temporary, only handles ütlema for now
	if params.weak == "" then
		if mw.ustring.find(params.base, "ü$") then
			weak_stem = mw.ustring.gsub(params.base, "ü$", "ö") .. "e"
		end
	end
	
	local stems = {}
	stems         = {params.base .. params.strong .. "le"}
	stems         = {weak_stem .. "ld"}
	stems           = {params.base .. params.strong .. "le"}
	stems           = {params.base .. params.strong .. "lesi"}
	stems       = {params.base .. params.strong .. "les"}
	stems           = {weak_stem .. "lg"}
	stems      = {params.base .. params.strong .. "le"}
	stems      = {weak_stem .. "ln"}
	stems      = {weak_stem .. "ld"}
	stems = {weak_stem .. "ld"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ], no gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " rabelema-type verbs")
	
	local params = get_params(args, 1)
	
	local stems = {}
	stems         = {params.base .. "ele"}
	stems         = {params.base .. "eld"}
	stems           = {params.base .. "ele"}
	stems           = {params.base .. "elesi"}
	stems       = {params.base .. "eles"}
	stems           = {params.base .. "elg"}
	stems      = {params.base .. "ele"}
	stems      = {params.base .. "eln"}
	stems      = {params.base .. "eld"}
	stems = {params.base .. "eld"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " seisma-type verbs")
	
	local params = get_params(args, 4)
	
	local t_stem = params.base .. params.strong
	local past_stem = params.base .. params.strong .. "i"
	local past_3sg_stem = params.base .. params.strong .. "is"
	
	if params.strong == params.weak then
		data.title = data.title .. ", length gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	if params.base == "jooks" then
		t_stem = "joos"
	end
	
	if params.base == "kaits" then
		past_stem = "kaitsesi"
		past_3sg_stem = "kaitses"
	end

	local stems = {}
	stems         = {params.base .. params.strong}
	stems         = {t_stem .. "t"}
	stems           = {params.base .. params.weak  .. params.final}
	stems           = {past_stem}
	stems       = {past_3sg_stem}
	stems           = {params.base .. params.strong .. "k"}
	stems      = {params.base .. params.strong .. "e"}
	stems      = {params.base .. params.strong .. "n"}
	stems      = {t_stem .. "t"}
	stems = {t_stem .. "t"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " naerma-type verbs")
	
	local params = get_params(args, 4)
	
	if params.strong == params.weak then
		data.title = data.title .. ", no gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	local stems = {}
	stems         = {params.base .. params.strong}
	stems         = {params.base .. params.strong .. "d"}
	stems           = {params.base .. params.weak .. params.final}
	stems           = {params.base .. params.strong .. "si"}
	stems       = {params.base .. params.strong .. "is"}
	stems           = {params.base .. params.strong .. "g"}
	stems      = {params.base .. params.strong .. "e"}
	stems      = {params.base .. params.strong .. "n"}
	stems      = {params.base .. params.strong .. "d"}
	stems = {params.base .. params.strong .. "d"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " saatma-type verbs")
	
	local params = get_params(args, 4)
	
	if params.strong == params.weak then
		data.title = data.title .. ", no gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	local weak_stem = params.base .. params.weak .. params.final
	local pasv_stem = params.base .. params.weak .. "e"
	
	if params.weak == "" then
		if mw.ustring.find(params.base, "ea$") and params.final == "a" then
			-- teadma
			weak_stem = params.base
			pasv_stem = params.base
		end
	end
	
	-- andma, kündma, etc w/ different passives
	if params.weak == "nn" then
		pasv_stem = params.base .. "n"
	end
	
	
	local stems = {}
	stems         = {params.base .. params.strong}
	stems         = {params.base .. params.strong}
	stems           = {weak_stem}
	stems           = {params.base .. params.strong .. "si"}
	stems       = {params.base .. params.strong .. "is"}
	stems           = {params.base .. params.strong .. "k"}
	stems      = {params.base .. params.strong .. "e"}
	stems      = {params.base .. params.strong .. "n"}
	stems      = {pasv_stem .. "t"}
	stems = {pasv_stem .. "t"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " saatma-type verbs")
	
	local params = get_params(args, 4)
	
	if params.strong == params.weak then
		data.title = data.title .. ", no gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	local weak_stem = params.base .. params.weak .. params.final
	local pasv_stem = params.base

	
	local stems = {}
	stems         = {params.base .. params.strong}
	stems         = {params.base .. params.strong}
	stems           = {weak_stem}
	stems           = {params.base .. params.strong .. "si"}
	stems       = {params.base .. params.strong .. "is"}
	stems           = {params.base .. params.strong .. "k"}
	stems      = {params.base .. params.strong .. "e"}
	stems      = {params.base .. params.strong .. "n"}
	stems      = {pasv_stem .. "t"}
	stems = {pasv_stem .. "t"}
	
	process_stems(data, stems)
end


inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " petma-type verbs")
	
	local params = get_params(args, 4)
	
	if params.strong == params.weak then
		data.title = data.title .. ", no gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	local cons = mw.ustring.sub(params.base .. params.strong, -1)
	local pasv_stem = params.base .. params.weak
	
	if mw.ustring.find(params.base, "ü$") then
		pasv_stem = mw.ustring.gsub(params.base, "ü$", "ö")
	end
	
	local stems = {}
	stems         = {params.base .. params.strong}
	stems         = {params.base .. params.strong .. cons}
	stems           = {params.base .. params.weak .. params.final}
	stems           = {params.base .. params.strong .. "si"}
	stems       = {params.base .. params.strong .. cons .. "is"}
	stems           = {params.base .. params.strong .. "k"}
	stems      = {params.base .. params.strong .. cons .. "e"}
	stems      = {params.base .. params.strong .. "n"}
	stems      = {pasv_stem .. "et"}
	stems = {pasv_stem .. "et"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ]"
	table.insert(data.categories, lang:getCanonicalName() .. " tulema-type verbs")
	
	local params = get_params(args, 4)
	
	if params.strong == params.weak then
		data.title = data.title .. ", no gradation"
	else
		data.title = data.title .. ", ''" .. params.strong .. "-" .. (params.weak == "" and "ø" or params.weak) .. "'' gradation"
	end
	
	local cons_strong = mw.ustring.sub(params.base .. params.strong, -1)
	local cons_weak = mw.ustring.sub(params.base .. params.weak, -1)
	
	local stems = {}
	stems         = {params.base .. params.weak .. params.final}
	stems         = {params.base .. params.strong .. (cons_strong == "s" and "t" or cons_strong)}
	stems           = {params.base .. params.weak .. params.final}
	stems           = {params.base .. params.weak .. "i"}
	stems       = {params.base .. params.weak .. "i"}
	stems           = {params.base .. params.weak .. (cons_weak == "s" and "k" or "g")}
	stems      = {params.base .. params.weak .. "e"}
	stems      = {params.base .. params.weak .. "n"}
	stems      = {params.base .. params.weak .. (cons_weak == "s" and "t" or cons_weak)}
	stems = {params.base .. params.strong .. (cons_strong == "s" and "t" or "d")}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ], irregular, no gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " tulema-type verbs")
	table.insert(data.categories, lang:getCanonicalName() .. " irregular verbs")
	
	local stems = {}
	stems         = {"ole"}
	stems         = {"oll"}
	stems           = {"ole"}
	stems           = {"oli"}
	stems       = {"oli"}
	stems           = {"olg"}
	stems      = {"ole"}
	stems      = {"oln"}
	stems      = {"oll"}
	stems = {"old"}
	
	process_stems(data, stems)
	
	data.forms = {"on"}
	data.forms = {"on"}
end

inflections = function(args, data)
	data.title = "ÕS type ] and ], suppletive, ''k-ø'' gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " tulema-type verbs")
	table.insert(data.categories, lang:getCanonicalName() .. " saatma-type verbs")
	table.insert(data.categories, lang:getCanonicalName() .. " suppletive verbs")
	
	local stems = {}
	stems         = {"mine"}
	stems         = {"minn"}
	stems           = {"lähe"}
	stems           = {"läksi"}
	stems       = {"läks"}
	stems           = {"ming"}
	stems      = {"mine"}
	stems      = {"läin"}
	stems      = {"minn"}
	stems = {"mind"}
	
	process_stems(data, stems)
	
	data.forms = {"mine"}
end


inflections = function(args, data)
	data.title = "ÕS type ], no gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " võima-type verbs")
	
	local params = get_params(args, 1)
	local i = args; if i == "" then i = nil end
	
	local i_stem = mw.ustring.gsub(params.base, "()%1$", "%1i")
	
	local stems = {}
	stems         = {params.base}
	stems         = {params.base .. "d"}
	stems           = {params.base}
	stems           = {(i and i_stem or params.base .. "si")}
	stems       = {(i and i_stem or params.base .. "s")}
	stems           = {params.base .. "g"}
	stems      = {params.base}
	stems      = {params.base .. "n"}
	stems      = {params.base .. "d"}
	stems = {params.base .. "d"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ], no gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " käima-type verbs")
	
	local params = get_params(args, 1)
	
	local vowels
	params.base, vowels = mw.ustring.match(params.base, "^(.-)(*)$")
	local raised_vowels = vowels
	local past_vowels = mw.ustring.gsub(vowels, "()%1$", "%1i")
	
	if raised_vowels == "oo" then
		-- jooma
		raised_vowels = "uu"
	elseif raised_vowels == "öö" then
		-- sööma
		raised_vowels = "üü"
	end
	
	if past_vowels == "oi" or past_vowels == "öi" then
		-- jooma, sööma
		past_vowels = "õi"
	end
	
	local stems = {}
	stems         = {params.base .. vowels}
	stems         = {params.base .. raised_vowels}
	stems           = {params.base .. vowels}
	stems           = {params.base .. (vowels == past_vowels and vowels .. "si" or past_vowels)}
	stems       = {params.base .. past_vowels .. (vowels == past_vowels and "s" or "")}
	stems           = {params.base .. vowels .. "g"}
	stems      = {params.base .. vowels}
	stems      = {params.base .. vowels .. "n"}
	stems      = {params.base .. raised_vowels}
	stems = {params.base .. vowels .. "d"}
	
	process_stems(data, stems)
end

inflections = function(args, data)
	data.title = "ÕS type ], irregular gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " saatma-type verbs")
	
	local stems = {}
	stems         = {"lask"}
	stems         = {"last"}
	stems           = {"lase"}
	stems           = {"lasi", "lasksi"}
	stems       = {"lasi", "laskis"}
	stems           = {"lask"}
	stems      = {"laske"}
	stems      = {"laskn"}
	stems      = {"last"}
	stems = {"last"}
	
	process_stems(data, stems)
	
	data.forms = {"lase"}
end

inflections = function(args, data)
	data.title = "ÕS type ], defective, d-ø gradation"
	table.insert(data.categories, lang:getCanonicalName() .. " õppima-type verbs")
	
	local stems = {}
	stems         = {"pida"}
	stems         = {"pidad"}
	stems           = {"pea"}
	stems           = {"pidi"}
	stems       = {"pidi"}
	stems      = {"pida"}
	stems      = {"pidan"}

	process_stems(data, stems)
	
	data.forms = {"—"}
	
end


local adp_after = {
	"pres_1sg",
	"pres_2sg",
	"pres_3sg",
	"pres_1pl",
	"pres_2pl",
	"pres_3pl",
	"pres_pasv",
	"pres_neg",
	"pres_pasv_neg",

	"past_1sg",
	"past_3sg",
	"past_2sg",
	"past_1pl",
	"past_2pl",
	"past_3pl",
	"past_pasv",
	"past_neg",
	"past_pasv_neg",

	"cond_1sg",
	"cond_2sg",
	"cond_3sg",
	"cond_1pl",
	"cond_2pl",
	"cond_3pl",
	"cond_pasv",
	"cond_neg",
	"cond_pasv_neg",
	
	"impr_2sg",
	"impr_2sg_neg",
	"impr_3sg",
	"impr_3sg_neg",
	"impr_1pl",
	"impr_1pl_neg",
	"impr_2pl",
	"impr_2pl_neg",
	"impr_3pl",
	"impr_3pl_neg",
	"impr_pasv",
	"impr_pasv_neg",

	"quot",
	"quot_pasv",
	"quot_neg",
	"quot_pasv_neg",
}

local adp_after_preperf = {
	"cond_perf_1sg",
	"cond_perf_2sg",
	"cond_perf_3sg",
	"cond_perf_1pl",
	"cond_perf_2pl",
	"cond_perf_3pl",
	"cond_perf_pasv",
	"cond_perf_neg",
	"cond_perf_pasv_neg",
}

local adp_before = {
	"ma_inf",
	"ma_inf_pasv",
	"ma_inf_ine",
	"ma_inf_ela",
	"ma_inf_tra",
	"ma_inf_abe",
	"da_inf",
	"da_inf_ine",
	"pres_part",
	"pres_pasv_part",
	"past_part",
	"past_pasv_part",
	"neg_part",
}


function postprocess(args, data)
	local adppref = args and args .. " " or ""

	local function addbefore(dest_key, source_key, prefix, add_adp)
		if not data.forms then
			return
		end

		if add_adp then
			prefix = prefix .. adppref
		end
		
		data.forms = data.forms or {}
		
		for _, subform in ipairs(data.forms) do
			if not subform:find("[[", nil, true) then
				table.insert(data.forms, prefix .. "]")
			else
				table.insert(data.forms, prefix .. subform)
			end
		end
	end
	
	local function addadpbefore(key, prefix)
		local forms = data.forms
		if not forms then
			return
		end

		local adp_link = prefix:find("[[", nil, true)
		for i, subform in ipairs(forms) do
			if not subform:find("[[", nil, true) then
				if adp_link then
					forms = prefix .. "]"
				else
					forms = "]"
				end
			else
				forms = prefix .. subform
			end
		end
	end
	
	local function addadpafter(key, suffix)
		local forms = data.forms
		if not forms then
			return
		end
		
		local adp_link = suffix:find("[[", nil, true)
		for i, subform in ipairs(forms) do
			if not subform:find("[[", nil, true) then
				if adp_link then
					forms = "]" .. suffix
				else
					forms = "]"
				end
			else
				forms = subform .. suffix
			end
		end
	end
	
	if args then
		for _, formkey in ipairs(adp_after_preperf) do
			addadpafter(formkey, " " .. args)
		end
	end
	
	-- Present analytic forms
	addbefore("pres_neg", "pres_conn", "] ", false)
	addbefore("pres_pasv_neg", "pres_pasv_conn", "] ", false)
	
	addbefore("pres_perf_1sg", "past_part", "] ", true)
	addbefore("pres_perf_2sg", "past_part", "] ", true)
	addbefore("pres_perf_3sg", "past_part", "] ", true)
	addbefore("pres_perf_1pl", "past_part", "] ", true)
	addbefore("pres_perf_2pl", "past_part", "] ", true)
	addbefore("pres_perf_3pl", "past_part", "] ", true)
	addbefore("pres_perf_pasv", "past_pasv_part", "] ", true)
	
	addbefore("pres_perf_neg", "past_part", "] ] ", true)
	addbefore("pres_perf_neg", "past_part", "] ", true)
	addbefore("pres_perf_pasv_neg", "past_pasv_part", "] ] ", true)
	addbefore("pres_perf_pasv_neg", "past_pasv_part", "] ", true)
	
	-- Past analytic forms
	addbefore("past_neg", "past_part", "] ", false)
	addbefore("past_pasv_neg", "past_pasv_part", "] ", false)
	
	addbefore("past_perf_1sg", "past_part", "] ", true)
	addbefore("past_perf_2sg", "past_part", "] ", true)
	addbefore("past_perf_3sg", "past_part", "] ", true)
	addbefore("past_perf_1pl", "past_part", "] ", true)
	addbefore("past_perf_2pl", "past_part", "] ", true)
	addbefore("past_perf_3pl", "past_part", "] ", true)
	addbefore("past_perf_pasv", "past_pasv_part", "] ", true)
	
	addbefore("past_perf_neg", "past_part", "] ] ", true)
	addbefore("past_perf_neg", "past_part", "] ", true)
	addbefore("past_perf_pasv_neg", "past_pasv_part", "] ] ", true)
	addbefore("past_perf_pasv_neg", "past_pasv_part", "] ", true)
	
	-- Conditional analytic forms
	addbefore("cond_neg", "cond_conn", "] ", false)
	addbefore("cond_pasv_neg", "cond_pasv_conn", "] ", false)
	
	addbefore("cond_perf_1sg", "past_part", "] ", true)
	addbefore("cond_perf_2sg", "past_part", "] ", true)
	addbefore("cond_perf_3sg", "past_part", "] ", true)
	addbefore("cond_perf_1pl", "past_part", "] ", true)
	addbefore("cond_perf_2pl", "past_part", "] ", true)
	addbefore("cond_perf_3pl", "past_part", "] ", true)
	addbefore("cond_perf_pasv", "past_pasv_part", "] ", true)
	
	addbefore("cond_perf_neg", "cond_perf_3sg", "] ", true)
	addbefore("cond_perf_neg", "past_part", "] ", true)
	addbefore("cond_perf_pasv_neg", "past_pasv_part", "] ] ", true)
	addbefore("cond_perf_pasv_neg", "past_pasv_part", "] ", true)
	
	-- Imperative analytic forms
	addbefore("impr_1pl_neg", "pres_1pl", "] ", false)
	if (data.forms == "—") then
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
		data.forms = {"—"}
	else
		addbefore("impr_perf_2sg", "past_part", "] ", true)
		addbefore("impr_perf_3sg", "past_part", "] ", true)
		addbefore("impr_perf_1pl", "past_part", "] ", true)
		addbefore("impr_perf_2pl", "past_part", "] ", true)
		addbefore("impr_perf_3pl", "past_part", "] ", true)
		addbefore("impr_perf_pasv", "past_pasv_part", "] ", true)
		addbefore("impr_2sg_neg", "impr_2sg", "] ", false)
		addbefore("impr_3sg_neg", "impr_3sg", "] ", false)
		addbefore("impr_perf_2sg_neg", "past_part", "] ] ", true)
		addbefore("impr_perf_3sg_neg", "past_part", "] ] ", true)
		addbefore("impr_perf_1pl_neg", "past_part", "] ] ", true)
		addbefore("impr_perf_1pl_neg", "past_part", "] ] ", true)
		addbefore("impr_perf_1pl_neg", "past_part", "] ] ", true)
		addbefore("impr_perf_2pl_neg", "past_part", "] ] ", true)
		addbefore("impr_perf_3pl_neg", "past_part", "] ] ", true)
		addbefore("impr_perf_pasv_neg", "past_pasv_part", "] ] ", true)
		addbefore("impr_1pl_neg", "impr_2sg", "] ", false)
	end
	addbefore("impr_1pl_neg", "impr_1pl", "] ", false)
	addbefore("impr_2pl_neg", "impr_2pl", "] ", false)
	addbefore("impr_3pl_neg", "impr_3pl", "] ", false)
	addbefore("impr_pasv_neg", "impr_pasv", "] ", false)
	
	
	
	
	
	-- Quotative analytic forms
	addbefore("quot_neg", "quot", "] ", false)
	addbefore("quot_pasv_neg", "quot_pasv", "] ", false)
	
	addbefore("quot_perf", "past_part", "] ", true)
	addbefore("quot_perf_pasv", "past_pasv_part", "] ", true)
	
	addbefore("quot_perf_neg", "past_part", "] ] ", true)
	addbefore("quot_perf_neg", "past_part", "] ", true)
	addbefore("quot_perf_pasv_neg", "past_pasv_part", "] ] ", true)
	addbefore("quot_perf_pasv_neg", "past_pasv_part", "] ", true)
	
	addbefore("da_inf_past", "past_part", "] ", true)
	addbefore("da_inf_past_ine", "past_part", "] ", true)

	if args then
		for _, formkey in ipairs(adp_before) do
			addadpbefore(formkey, args .. " ")
		end
		for _, formkey in ipairs(adp_after) do
			addadpafter(formkey, " " .. args)
		end
		if not data.notes then data.notes = {} end
		if not data.notenumbers then data.notenumbers = {} end
		table.insert(data.notes, "The adposition/particle is shown here after the verb, as it would come in main clauses. In subordinate clauses, it comes before the verb.")
		data.notenumbers = #data.notes
	end
	
	-- Check if the lemma form matches the page name
	if data.forms and (lang:makeEntryName(m_links.remove_links(data.forms))) ~= mw.title.getCurrentTitle().text then
		table.insert(data.categories, lang:getCanonicalName() .. " entries with inflection not matching pagename")
	end
end


-- Make the table
function make_table(data)
	local function show_form(form)
		if not form then
			return "—"
		elseif type(form) ~= "table" then
			error("a non-table value was given in the list of inflected forms.")
		end
		
		local ret = {}
		
		for key, subform in ipairs(form) do
			if mw.ustring.find(subform, "") then
				-- TODO: Should use the standard language-agnostic features for character replacements here
				table.insert(ret, m_links.full_link({lang = lang, term = mw.ustring.gsub(subform, "", ""), alt = subform}))
			else
				table.insert(ret, m_links.full_link({lang = lang, term = subform}))
			end
		end
		
		return table.concat(ret, "<br/>")
	end

	local function show_notes(notes)
		local text = '\n|-\n! Notes\n| colspan="5" | <ol>'
		for i, note in ipairs(notes) do
			text = text .. "<p>" .. tostring(i) .. ") " .. note .. "</p>"
		end
		return "</ol>" .. text .. "\n"
	end
	
	local function repl(param)
		if param == "lemma" then
			return m_links.full_link({lang = lang, alt = mw.title.getCurrentTitle().text}, "term")
		elseif param == "info" then
			return data.title and " (" .. data.title .. ")" or ""
		elseif param == "adpnotenum" then
			return data.notenumbers and data.notenumbers and "<sup>" .. data.notenumbers .. ")</sup>" or ""
		elseif param == "notes" then
			return data.notes and show_notes(data.notes) or ""
		else
			return show_form(data.forms)
		end
	end
	
	local wikicode = [=[<div class="NavFrame">
<div class="NavHead" style="background:var(--wikt-palette-blue-2,#ccccff)">Conjugation of {{{lemma}}}{{{info}}}</div>
<div class="NavContent">
{| class="inflection-table" style="width:100%; border: solid 1px var(--wikt-palette-blue-2,#ccccff); text-align: left;" cellspacing="1" cellpadding="2" 
|-
! colspan="6" style="background:var(--wikt-palette-blue-2,#ccccff)" | indicative
|-
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | present{{{adpnotenum}}}
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | perfect
|- style="background:var(--wikt-palette-blue-1,#e6ffe6)"
! style="background:var(--wikt-palette-blue-2,#ccccff); width: 7%" | person
! style="width: 18%" | positive
! style="width: 21%" | negative
! style="background:var(--wikt-palette-blue-2,#ccccff); width: 7%" | person
! style="width: 21%" | positive
! style="width: 24%" | negative
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;sing.
| {{{pres_1sg}}}
| rowspan="6" | {{{pres_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;sing.
| {{{pres_perf_1sg}}}
| rowspan="6" | {{{pres_perf_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;sing.
| {{{pres_2sg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;sing.
| {{{pres_perf_2sg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;sing.
| {{{pres_3sg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;sing.
| {{{pres_perf_3sg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;plur.
| {{{pres_1pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;plur.
| {{{pres_perf_1pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;plur.
| {{{pres_2pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;plur.
| {{{pres_perf_2pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;plur.
| {{{pres_3pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;plur.
| {{{pres_perf_3pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | impersonal
| {{{pres_pasv}}}
| {{{pres_pasv_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | impersonal
| {{{pres_perf_pasv}}}
| {{{pres_perf_pasv_neg}}}
|-
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | past{{{adpnotenum}}}
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | pluperfect
|- style="background:var(--wikt-palette-blue-1,#e6ffe6)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | person
! positive
! negative
! style="background:var(--wikt-palette-blue-2,#ccccff)" | person
! positive
! negative
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;sing.
| {{{past_1sg}}}
| rowspan="6" | {{{past_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;sing.
| {{{past_perf_1sg}}}
| rowspan="6" | {{{past_perf_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;sing.
| {{{past_2sg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;sing.
| {{{past_perf_2sg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;sing.
| {{{past_3sg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;sing.
| {{{past_perf_3sg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;plur.
| {{{past_1pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;plur.
| {{{past_perf_1pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;plur.
| {{{past_2pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;plur.
| {{{past_perf_2pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;plur.
| {{{past_3pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;plur.
| {{{past_perf_3pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | impersonal
| {{{past_pasv}}}
| {{{past_pasv_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | impersonal
| {{{past_perf_pasv}}}
| {{{past_perf_pasv_neg}}}
|-
! colspan="6" style="background:var(--wikt-palette-blue-2,#ccccff)" | conditional
|-
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | present{{{adpnotenum}}}
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | perfect
|- style="background:var(--wikt-palette-blue-1,#e6ffe6)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | person
! positive
! negative
! style="background:var(--wikt-palette-blue-2,#ccccff)" | person
! positive
! negative
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;sing.
| {{{cond_1sg}}}
| rowspan="6" | {{{cond_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;sing.
| {{{cond_perf_1sg}}}
| rowspan="6" | {{{cond_perf_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;sing.
| {{{cond_2sg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;sing.
| {{{cond_perf_2sg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;sing.
| {{{cond_3sg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;sing.
| {{{cond_perf_3sg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;plur.
| {{{cond_1pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;plur.
| {{{cond_perf_1pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;plur.
| {{{cond_2pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;plur.
| {{{cond_perf_2pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;plur.
| {{{cond_3pl}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;plur.
| {{{cond_perf_3pl}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | impersonal
| {{{cond_pasv}}}
| {{{cond_pasv_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | impersonal
| {{{cond_perf_pasv}}}
| {{{cond_perf_pasv_neg}}}
|-
! colspan="6" style="background:var(--wikt-palette-blue-2,#ccccff)" | imperative
|-
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | present
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | perfect
|- style="background:var(--wikt-palette-blue-1,#e6ffe6)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | person
! positive
! negative
! style="background:var(--wikt-palette-blue-2,#ccccff)" | person
! positive
! negative
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;sing.
| {{{impr_1sg}}}
| {{{impr_1sg_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;sing.
| {{{impr_perf_1sg}}}
| {{{impr_perf_1sg_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;sing.
| {{{impr_2sg}}}
| {{{impr_2sg_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;sing.
| {{{impr_perf_2sg}}}
| {{{impr_perf_2sg_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;sing.
| {{{impr_3sg}}}
| {{{impr_3sg_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;sing.
| {{{impr_perf_3sg}}}
| {{{impr_perf_3sg_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;plur.
| {{{impr_1pl}}}
| {{{impr_1pl_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 1st&nbsp;plur.
| {{{impr_perf_1pl}}}
| {{{impr_perf_1pl_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;plur.
| {{{impr_2pl}}}
| {{{impr_2pl_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 2nd&nbsp;plur.
| {{{impr_perf_2pl}}}
| {{{impr_perf_2pl_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;plur.
| {{{impr_3pl}}}
| {{{impr_3pl_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | 3rd&nbsp;plur.
| {{{impr_perf_3pl}}}
| {{{impr_perf_3pl_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | impersonal
| {{{impr_pasv}}}
| {{{impr_pasv_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | impersonal
| {{{impr_perf_pasv}}}
| {{{impr_perf_pasv_neg}}}
|-
! colspan="6" style="background:var(--wikt-palette-blue-2,#ccccff)" | quotative
|-
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | present
! colspan="3" style="background:var(--wikt-palette-blue-2,#ccccff)" | perfect
|- style="background:var(--wikt-palette-blue-1,#e6ffe6)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | voice
! positive
! negative
! style="background:var(--wikt-palette-blue-2,#ccccff)" | voice
! positive
! negative
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | active
| {{{quot}}}
| {{{quot_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | active
| {{{quot_perf}}}
| {{{quot_perf_neg}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | passive
| {{{quot_pasv}}}
| {{{quot_pasv_neg}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | passive
| {{{quot_perf_pasv}}}
| {{{quot_perf_pasv_neg}}}
|-
! style="background:var(--wikt-palette-blue-2,#ccccff)" colspan="10" | Nominal forms
|-
! style="background:var(--wikt-palette-blue-2,#ccccff)" | ma-infinitive
! style="background:var(--wikt-palette-blue-1,#e6ffe6)" | active
! style="background:var(--wikt-palette-blue-1,#e6ffe6)" | passive
! style="background:var(--wikt-palette-blue-2,#ccccff)" | da-infinitive
! style="background:var(--wikt-palette-blue-1,#e6ffe6)" | present
! style="background:var(--wikt-palette-blue-1,#e6ffe6)" | past
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | nominative
| rowspan="2" | {{{ma_inf}}}
| {{{ma_inf_pasv}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | nominative
| {{{da_inf}}}
| {{{da_inf_past}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | illative
|  rowspan="5" | {{{ma_inf_pasv_ine}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | inessive
| {{{da_inf_ine}}}
| {{{da_inf_past_ine}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | inessive
| {{{ma_inf_ine}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | participle
! style="background:var(--wikt-palette-blue-1,#e6ffe6)" | active
! style="background:var(--wikt-palette-blue-1,#e6ffe6)" | passive
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | elative
| {{{ma_inf_ela}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | present
| {{{pres_part}}}
| {{{pres_pasv_part}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | translative
| {{{ma_inf_tra}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | past
| {{{past_part}}}
| {{{past_pasv_part}}}
|- style="background:var(--wikt-palette-blue-0,#f2ffff)"
! style="background:var(--wikt-palette-blue-2,#ccccff)" | abessive
| {{{ma_inf_abe}}}
! style="background:var(--wikt-palette-blue-2,#ccccff)" | negative
| {{{neg_part}}}
| {{{neg_pasv_part}}}
{{{notes}}}|}</div></div>]=]

	return mw.ustring.gsub(wikicode, "{{{(+)}}}", repl)
end

return export