(Translated by https://www.hiragana.jp/)
模組: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 = "以" .. script .. "書寫しょしゃてき{{{langname}}}。",
			umbrella_parents = "文字もじ分類ぶんるい",
			parents = {{
				name = "文字もじ分類ぶんるいてき",
				sort = script,
			}},
		}
	end
end)


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