Modul:category tree/lang/bbl
Napohlad
- The following documentation is generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
This module handles generating the descriptions and categorization for Bats category pages of the format "Bats LABEL" where LABEL can be any text. Examples are Category:Bulgarian conjugation 2.1 verbs and Category:Russian velar-stem neuter-form nouns. This module is part of the category tree system, which is a general framework for generating the descriptions and categorization of category pages.
For more information, see Module:category tree/lang/documentation.
NOTE: If you add a new language-specific module, you must add the language code to the list at the top of Module:category tree/lang in order for the module to be recognized.
local labels = {}
local handlers = {}
------- Nominal categories -------
labels["nominals by inflection type"] = {
description = "{{{langname}}} nouns categorized by their inflection type.",
breadcrumb = "by inflection type",
parents = {
{name = "nouns", sort = "inflection type"},
},
}
table.insert(handlers, function(data)
local nomtype = data.label:match("^(.*)%-type nominals$")
if nomtype then
return {
description = ("{{{langname}}} ''%s''-type nominals."):format(nomtype),
breadcrumb = {name = ("''%s''-type"):format(nomtype), nocap = true},
parents = {"nominals by inflection type"},
}
end
end)
return {LABELS = labels, HANDLERS = handlers}