Jump to content

Module:category tree/poscatboiler/data/lang-specific/nb

Wiktionary වෙතින්

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


--------------------------------- Miscellaneous --------------------------------

local known_reform_years = require("Module:table/listToSet") {
	"1907", "1917", "1938", "1959", "1981", "2005"
}

table.insert(handlers, function(data)
	local year = data.label:match("^pre%-([0-9]+) forms$")
	if year then
		return {
			description = "{{{langname}}} forms that become nonstandard after " .. (
				-- FIXME: Need a better link. Maybe to an article in the Bokmål Wikipedia?
				known_reform_years[year] and ("the [[w:Bokmål#Riksmål versus Bokmål|spelling reform of %s]]."):format(year)
				or ("a spelling decision made in %s."):format(year)
			),
			breadcrumb = year,
			parents = {{name = "superseded forms", sort = year}},
		}
	end
end)

return {LABELS = labels, HANDLERS = handlers}
"https://si.wiktionary.org/w/index.php?title=Module:category_tree/poscatboiler/data/lang-specific/nb&oldid=165388" වෙතින් සම්ප්‍රවේශනය කෙරිණි