မော်ဂျူး:category tree/topic cat/data

ဝစ်ရှင်နရီ မှ

Documentation for this module may be created at မော်ဂျူး:category tree/topic cat/data/doc

local labels = {}
local handlers = {}

local subpages = {
	"ခန္ဓာကိုယ်",
	"အဆောက်အဦများ",
	"ဆက်သွယ်ရေး",
	"ယဉ်ကျေးမှု",
	"ကမ္ဘာ",
	"အစားအသောက်",
	"သမိုင်း",
	"လူ",
	"သက်ရှိ",
		"တိရစ္ဆာန်များ",
		"အပင်များ",
	"သင်္ချာ",
	"အမျိုးမျိုးအထွေထွေ",
	"အမည်များ",
	"သဘာဝ",
	"ကိန်းဂဏန်းများ",
	"လူပုဂ္ဂိုလ်များ",
	"ဒဿနိကဗေဒ",
	"နေရာများ",
	"သိပ္ပံ",
	"လိင်",
	"လူမှုလုပ်ဆောင်ချက်များ",
	"လူ့အဖွဲ့အစည်း",
	"အားကစား",
	"နည်းပညာ",
	"အချိန်",
	"သယ်ယူပို့ဆောင်ရေး",
	"ရူပလုပ်ဆောင်ချက်များ",
}

labels["အကြောင်းအရာများ အားလုံး"] = {
	description = "{{{langname}}} ဝေါဟာရများအား \"မိသားစု\" သို့မဟုတ် \"ဓာတုဗေဒ\" ကဲ့သို့သော အကြောင်းအရာအလိုက် စုစည်းထားသည်။",
	parents = {{module = "poscatboiler", args = {label = "{{{langcat}}}", raw = true, called_from_inside = true}}},
}

labels["အကြောင်းအရာများ စာရင်း"] = {
	description = "{{{langname}}} တွင် လတ်တလောရရှိနိုင်သော အကြောင်းအရာများ အားလုံးဖြစ်သည်။",
	parents = {{name = "အကြောင်းအရာများ အားလုံး", sort = " *"}},
}

labels["တည်ရှိမှုများ အားလုံး"] = {
	description = "\"ဂြိုဟ်များ\" သို့မဟုတ် \"ခွေးမျိုးရင်းများ\" ကဲ့သို့သော တည်ရှိမှုများ တစ်ခုခြင်းအလိုက် စုစည်းထားသော {{{langname}}} ဝေါဟာရများ ဖြစ်သည်။",
	parents = {{module = "poscatboiler", args = {label = "{{{langcat}}}", raw = true, called_from_inside = true}}},
}

labels["တည်ရှိမှုများ စာရင်း"] = {
	description = "{{{langname}}} တွင် လတ်တလော ရရှိနိုင်သော တည်ရှိမှုများ အားလုံးဖြစ်သည်။",
	parents = {{name = "တည်ရှိမှုများ အားလုံး", sort = " *"}},
}

for label, data in pairs(labels) do
	data.edit = "Module:category tree/topic cat/data"
end

-- Import subpages
for _, subpage in ipairs(subpages) do
	local datamodule = "Module:category tree/topic cat/data/" .. subpage
	local retval = require(datamodule)
	if not retval["LABELS"] then
		retval = {LABELS = retval}
	end
	for label, data in pairs(retval["LABELS"]) do
		if labels[label] and not retval["IGNOREDUP"] then
			error("Label " .. label .. " defined in both [["
				.. datamodule .. "]] နှင့် [[" .. labels[label].module .. "]].")
		end
		data.module = datamodule
		labels[label] = data
	end
	if retval["HANDLERS"] then
		for _, handler in ipairs(retval["HANDLERS"]) do
			table.insert(handlers, { module = datamodule, handler = handler })
		end
	end
end

return {LABELS = labels, HANDLERS = handlers}