K wobsahej skočić

Modul:category tree/lang/gmq-osw

z Wikisłownika

This module handles generating the descriptions and categorization for Old Swedish category pages of the format "Old Swedish 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 = {}

local rmatch = mw.ustring.match

table.insert(handlers, function(data)
	local stem = rmatch(data.label, "^(.+[%s%-]stem) nouns$")
	if stem then
		return {
			description = "Old Swedish " .. stem .. " nouns.",
			breadcrumb = stem,
			parents = {{name = "nouns by inflection type", sort = stem}},
		}
	end
end)

return {LABELS = labels, HANDLERS = handlers}