มอดูล:category tree/poscatboiler/data/ศัพท์แบ่งตามอักษร

จาก วิกิพจนานุกรม พจนานุกรมเสรี
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 = {"ศัพท์แบ่งตามสมบัติเชิงอักขรวิธี"},
}
labels["terms by script"] = labels["ศัพท์แบ่งตามอักษร"]



-----------------------------------------------------------------------------
--                                                                         --
--                              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}