模組: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 = {
		"Umbrella metacategories",
		{name = "依文字分類的詞", is_label = true, sort = " "},
	},
}



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


table.insert(handlers, function(data)
	local script = data.label:match("^以(.+)書寫的$")
	if script then
		return {
			description = "以" .. script .. "書寫的{{{langname}}}詞。",
			umbrella_parents = "文字子分類",
			parents = {{
				name = "依文字分類的詞",
				sort = script,
			}},
		}
	end
end)


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