Module:category tree/poscatboiler/data/lang-specific/fy
Appearance
- 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 West Frisian category pages of the format "West Frisian 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 poscatboiler system, which is a general framework for generating the descriptions and categorization of category pages.
For more information, see Module:category tree/poscatboiler/data/lang-specific/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/poscatboiler/data/lang-specific in order for the module to be recognized.
local labels = {}
local handlers = {}
local lang = require("Module:languages").getByCode("fy")
labels["verbs by derivation type"] = {
description = "West Frisian verbs categorized by the type of derivation.",
parents = {{name = "verbs", sort = "derivation"}},
}
labels["separable verbs"] = {
topright = "{{wikipedia|Separable verb}}",
description = "This category contains West Frisian separable verbs, which are verbs that are compounded with a particle, " ..
"often an adverb. When the particle is immediately followed by the verb form, it is written together with it as one word. " ..
"In other cases, it is separated from the main verb by a space and possibly other words.",
parents = {{name = "verbs by derivation type", sort = "separable"}},
}
table.insert(handlers, function(data)
local particle = data.label:match("^separable verbs with (.+)$")
if particle then
local link = require("Module:links").full_link({ lang = lang, term = particle }, "term")
local altlink = require("Module:links").full_link({ lang = lang, alt = particle }, "term")
return {
description = "West Frisian separable verbs with the particle " .. link .. ".",
displaytitle = "West Frisian separable verbs with " .. altlink,
breadcrumb = altlink,
parents = {{name = "separable verbs", sort = particle}},
}
end
end)
return {LABELS = labels, HANDLERS = handlers}