模組:Category tree/poscatboiler/data/lang-specific/nl

維基詞典,自由的多語言詞典

This module handles generating the descriptions and categorization for 荷蘭語 category pages of the format "荷蘭語 LABEL" where LABEL can be any text. Examples are Category:Bulgarian conjugation 2.1 verbs and Category:Russian velar-stem neuter-form nouns. 該模块是 poscatboiler 系統的一部分,該系統是用於生成分類頁面的描述和分類的通用框架。

有關更多資訊,請參閱Module:category tree/poscatboiler/data/lang-specific/doc

注意:如果您新增了特定語言的模块,請將語言代碼新增至 Module:category tree/poscatboiler/data/lang-specific 頂部的清單中,使程式碼能識別該模块。


local labels = {}
local handlers = {}

local lang = require("Module:languages").getByCode("nl")


labels["依派生類型分類的動詞"] = {
	intro = "{{wikipedia|Dutch conjugation#By derivation}}",
	description = "Dutch verbs categorized by the type of derivation.",
	parents = {{name = "動詞", sort = "derivation"}},
}

labels["基本動詞"] = {
	description = "This category contains Dutch verbs that are neither prefixed nor separable.",
	parents = {{name = "依派生類型分類的動詞", sort = "prefixed"}},
}

labels["不可分動詞"] = {
	description = "This category contains Dutch prefixed verbs, which are verbs that are compounded with an unstressed prefix, such as " ..
	"{{m|nl|be-}}, {{m|nl|ver-}} or {{m|nl|ont-}}. The unstressed prefix replaces the {{m|nl||ge-}} prefix that normally occurs in the " ..
	"past participle.",
	parents = {{name = "依派生類型分類的動詞", sort = "prefixed"}},
}

labels["可分動詞"] = {
	intro = "{{wikipedia}}",
	description = "This category contains Dutch 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 = "依派生類型分類的動詞", sort = "separable"}},
}

table.insert(handlers, function(data)
	local pref = data.label:match("^prefixed verbs with (.+%-)$")
	if pref then
		local link = require("Module:links").full_link({ lang = lang, term = pref }, "term")
		local altlink = require("Module:links").full_link({ lang = lang, alt = pref }, "term")
		return {
			description = "Dutch prefixed verbs with the prefix " .. link .. ".",
			displaytitle = "Dutch prefixed verbs with " .. altlink,
			breadcrumb = altlink,
			parents = {{name = "不可分動詞", sort = pref}},
		}
	end
end)

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 = "Dutch separable verbs with the particle " .. link .. ".",
			displaytitle = "Dutch separable verbs with " .. altlink,
			breadcrumb = altlink,
			parents = {{name = "可分動詞", sort = particle}},
		}
	end
end)


return {LABELS = labels, HANDLERS = handlers}