Jump to content

မေႃႇၵျူး:category tree/lang/tg

လုၵ်ႉတီႈ ဝိၵ်ႇသျိၼ်ႇၼရီႇ မႃး

Documentation for this module may be created at မေႃႇၵျူး:category tree/lang/tg/doc

local labels = {}
local handlers = {}

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

labels["compound verbs"] = {
	description = "{{{langname}}} {{w|light verb}} constructions consisting of a verb and a non-verbal element, such as a noun.",
	parents = {"verbs", "Category:Phrasal verbs by language", "compound terms"},
}

table.insert(handlers, function(data)
	local auxverb = data.label:match("^compound verbs formed with (.+)$")
	if auxverb then
		local link = require("Module:links").full_link({ lang = lang, term = auxverb }, "term")
		local altlink = require("Module:links").full_link({ lang = lang, alt = auxverb }, "term")
		return {
			description = "{{{langname}}} compound verbs formed with the {{w|light verb}} " .. link .. ".",
			displaytitle = "{{{langname}}} compound verbs formed with " .. altlink,
			breadcrumb = altlink,
			parents = {{name = "compound verbs", sort = auxverb}},
		}
	end
end)

labels["pre-1998 spellings"] = {
	description = "{{{langname}}} spellings from before the [[Wiktionary:Tajik entry guidelines#1998 spelling reform|1998 spelling reform]].",
	parents = {{ name = "terms by orthographic property", sort = "1998" }},
	additional = "This category is populated by {{tl|tg-pre-1998}}.",
	breadcrumb = "pre-1998",
}

labels["post-1998 spellings"] = {
	description = "{{{langname}}} spellings from after the [[[Wiktionary:Tajik entry guidelines#1998 spelling reform|1998 spelling reform]].",
	parents = {{ name = "terms by orthographic property", sort = "1998 " }},
	breadcrumb = "post-1998",
}

return {LABELS = labels, HANDLERS = handlers}