模組:Category tree/poscatboiler/data/word of the day


此數據子模塊定義了維基詞典分類結構的一部分。

關於poscatboiler系統的介紹以及如何添加或更改分類,請參見Module:category tree/poscatboiler/data/documentation


local raw_categories = {}
local raw_handlers = {}



-----------------------------------------------------------------------------
--                                                                         --
--                              RAW CATEGORIES                             --
--                                                                         --
-----------------------------------------------------------------------------


raw_categories["各語言外語每日一詞"] = {
	description = "包含各語言的外語每日一詞的分類。",
	additional = "{{{umbrella_msg}}}",
	parents = {
		"Category:外語每日一詞存檔",
	},
	breadcrumb = "各語言外語每日一詞",
	hidden = true,
}



-----------------------------------------------------------------------------
--                                                                         --
--                                RAW HANDLERS                             --
--                                                                         --
-----------------------------------------------------------------------------


table.insert(raw_handlers, function(data)
	local langname = data.category:match("^(.*)外語每日一詞$")
	if langname then
		local lang = require("Module:languages").getByCanonicalName(langname, true)
		return {
			lang = lang:getCode(),
			description = "曾獲選為外語每日一詞的" .. lang:makeCategoryLink() .. "詞。",
			parents = {
				{name = "各語言外語每日一詞", sort = langname},
			},
			breadcrumb = langname,
			hidden = true,
		}
	end
end)


return {RAW_CATEGORIES = raw_categories, RAW_HANDLERS = raw_handlers}