본문으로 이동

모듈:category tree/terms by script

위키낱말사전, 말과 글의 누리

이 모듈에 대한 설명문서는 모듈:category tree/terms by script/설명문서에서 만들 수 있습니다

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

-------------------------------------------------------------------------------
--                                    레이블                                 --
-------------------------------------------------------------------------------
labels["문자 체계"] = {
	description = "사용하는 문자 체계별로 분류된 {{{langname}}} 낱말 (여러 고유 문자 체계를 가진 언어의 경우).",
	umbrella_parents = "언어별 어휘 속성 하위 분류",
	parents = {"정서법 속성"},
}

-------------------------------------------------------------------------------
--                            원시(RAW) 분류                                 --
-------------------------------------------------------------------------------
raw_categories["언어별 문자 체계별 낱말 하위 분류"] = {
	description = "문자 체계별로 분류된 낱말 관련 주제를 다루는 포괄 분류.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"포괄 메타분류",
		{name = "문자 체계", is_label = true, sort = " "},
	},
}

-------------------------------------------------------------------------------
--                                     핸들러                                --
-------------------------------------------------------------------------------
table.insert(handlers, function(data)
	local name = data.label:match("^(.+) 문자로 표기된 낱말$")
	if not name then
		return
	end
	local sc = require("Module:scripts").getByCanonicalName(name)
	if not sc then
		return
	end
	return {
		description = name .. " 문자로 표기된 {{{langname}}} 낱말.",
		umbrella_parents = "언어별 문자 체계별 낱말 하위 분류",
		catfix_sc = sc:getCode(),
		parents = {{
			name = "문자 체계",
			sort = name,
		}},
		breadcrumb = name,
	}
end)

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