Module:category tree/poscatboiler/data/word of the day
Appearance
- පහත දැක්වෙන උපදෙස්, Template:poscatboiler data submodule documentation මගින් ජනනය කොට ඇත. [සංස්කරණය කරන්න]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • testcases • sandbox
This data submodule defines part of Wiktionary's category structure.
For an introduction to the poscatboiler
system and a description of how to add or modify categories, see Module:category tree/poscatboiler/data/documentation.
local raw_categories = {}
local raw_handlers = {}
-----------------------------------------------------------------------------
-- --
-- RAW CATEGORIES --
-- --
-----------------------------------------------------------------------------
raw_categories["Foreign words of the day by language"] = {
description = "Categories with foreign words of day in various languages.",
additional = "{{{umbrella_msg}}}",
parents = {
"Category:Foreign word of the day archive",
},
breadcrumb = "Foreign words of the day by language",
hidden = true,
}
-----------------------------------------------------------------------------
-- --
-- RAW HANDLERS --
-- --
-----------------------------------------------------------------------------
table.insert(raw_handlers, function(data)
local langname = data.category:match("^Foreign words of the day in (.*)$")
if langname then
local lang = require("Module:languages").getByCanonicalName(langname, true)
return {
lang = lang:getCode(),
description = "Foreign words of the day in " .. lang:makeCategoryLink() .. ".",
parents = {
{name = "Foreign words of the day by language", sort = langname},
},
breadcrumb = langname,
hidden = true,
}
end
end)
return {RAW_CATEGORIES = raw_categories, RAW_HANDLERS = raw_handlers}