وحدة:category tree/topic cat/data

من ويكاموس، القاموس الحر

يمكن إنشاء صفحة توثيق الوحدة في وحدة:category tree/topic cat/data/شرح

local labels = {}

local subpages = {
	"Body",
	"Buildings and structures",
	"Communication",
	"Culture",
	"Earth",
	"Food and drink",
	"History",
	"Human",
	"Lifeforms",
	"Mathematics",
	"Miscellaneous",
	"Names",
	"Nature",
	"Numbers",
	"People",
	"Philosophy",
	"Place names",
	"Sciences",
	"Social acts",
	"Society",
	"Sports",
	"Technology",
	"Time",
	"Transport",
}

labels["كل مواضيع"] = {
	description = "{{{langname}}} terms organized by topic, such as \"Animals\" or \"Chemistry\".",
	parents = {"Category:{{{langcat}}}"},
	edit = "Module:category tree/topic cat",
}

labels["قائمة المواضيع"] = {
	description = "All topics currently available in {{{langname}}}.",
	parents = {{name = "كل مواضيع", sort = "**"}},
	edit = "Module:category tree/topic cat",
}

-- Import subpages
for _, subpage in ipairs(subpages) do
	local datamodule = "Module:category tree/topic cat/data/" .. subpage
	for label, data in pairs(require(datamodule)) do
		assert(not labels[label], "Duplicate label: " .. label)
		data.edit = datamodule
		labels[label] = data
	end
end

return labels