Модул:category tree/poscatboiler/data/terms by script

Документацију овог модула можете да направите на страници Модул:category tree/poscatboiler/data/terms by script/док

local labels = {}
local raw_categories = {}
local handlers = {}



-----------------------------------------------------------------------------
--                                                                         --
--                                  LABELS                                 --
--                                                                         --
-----------------------------------------------------------------------------

labels["појмови по тексту"] = {
	description = "{{{langname}}} terms categorized by the script they are written in (for languages with multiple native scripts).",
	umbrella_parents = "Термини по тексту подкатегорије по језику",
	parents = {"термини по правописној својини"},
}



-----------------------------------------------------------------------------
--                                                                         --
--                              RAW CATEGORIES                             --
--                                                                         --
-----------------------------------------------------------------------------


raw_categories["Термини по тексту подкатегорије по језику"] = {
	description = "Umbrella categories covering topics related to terms categorized by their script.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Кишобран метакатегорија",
		{name = "појмови по тексту", is_label = true, sort = " "},
	},
}



-----------------------------------------------------------------------------
--                                                                         --
--                                 HANDLERS                                --
--                                                                         --
-----------------------------------------------------------------------------


table.insert(handlers, function(data)
	local script = data.label:match("^појмови у (.+) тексту$")
	if script then
		return {
			description = "{{{langname}}} terms written in " .. script .. " script.",
			umbrella_parents = "Термини по тексту подкатегорије по језику",
			parents = {{
				name = "појмови по тексту",
				sort = script,
			}},
		}
	end
end)


return {LABELS = labels, RAW_CATEGORIES = raw_categories, HANDLERS = handlers}