Module:category tree/poscatboiler/data/templates

विक्षनरी से

"इस मॉड्यूल हेतु प्रलेख Module:category tree/poscatboiler/data/templates/doc पर बनाया जा सकता है"

local labels = {}
local raw_categories = {}



-----------------------------------------------------------------------------
--                                                                         --
--                                  LABELS                                 --
--                                                                         --
-----------------------------------------------------------------------------


labels["साँचे"] = {
	description = "{{{langname}}} [[Wiktionary:Templates|templates]], containing reusable wiki code that help with creating and managing entries.",
	umbrella = {
		parents = {{name = "साँचे", sort = " "}},
		breadcrumb = "भाषा अनुसार",
	},
	parents = {{name = "{{{langcat}}}", raw = true}},
}

labels["ऑटो-सारणी साँचे"] = {
	description = "Templates that contain {{{langname}}} tables generated automatically.",
	additional = "They use the <code>table:</code> prefix. For example, see [[Template:table:chess pieces/en]].",
	parents = {"साँचे"},
}

labels["श्रेणी ब्वायलरप्लेट साँचे"] = {
	description = "Templates used to generate descriptions and categorization for category pages.",
	parents = {"साँचे"},
}

labels["परिभाषा साँचे"] = {
	description = "Templates used in the [[Wiktionary:Glossary#definition line|definition line]] of {{{langname}}} entries to help in creating definitions.",
	parents = {"साँचे"},
}

labels["प्रविष्टि साँचे"] = {
	description = "Templates used to help in the creation of {{{langname}}} entries.",
	parents = {"साँचे"},
}

labels["व्युत्पत्ति साँचे"] = {
	description = "Templates used in the etymology section of {{{langname}}} entries.",
	parents = {"साँचे"},
}

labels["प्रायोगिक साँचे"] = {
	description = "Templates used to test possible content for {{{langname}}} entries.",
	parents = {"साँचे"},
}

labels["फ़ॉर्म-ऑफ़ साँचे"] = {
	description = "Templates used on the definition line of entries for inflected forms of words in {{{langname}}}, to link back to the main form.",
	parents = {"साँचे"},
}

labels["हेडवर्ड-लाइन साँचे"] = {
	description = "Templates used to show lines that contain headwords in {{{langname}}}.",
	parents = {"साँचे"},
}

labels["संसूची साँचे"] = {
	description = "Templates used to organize {{{langname}}} indexes.",
	parents = {"साँचे"},
}

labels["इन्फ्लेक्शन-सारणी साँचे"] = {
	description = "Templates used to show inflection tables for {{{langname}}} terms.",
	parents = {"साँचे"},
}

-- Do particular types of inflection-table templates.
for _, pos in ipairs({
	"adjective",
	"adverb",
	"determiner",
	"nominal",
	"noun",
	"numeral",
	"participle",
	"postposition",
	"preposition",
	"pronoun",
	"verb",
}) do
	labels[pos .. " इन्फ्लेक्शन-सारणी साँचे"] = {
		description = "Templates used to show declension tables for {{{langname}}} " .. pos .. "s.",
		parents = {"इन्फ्लेक्शन-सारणी साँचे"},
	}
end

labels["सूची साँचे"] = {
	description = "Templates that contain {{{langname}}} lists.",
	additional = "They use the <code>list:</code> prefix. For example, see [[Template:list:Latin script letters/en]].",
	parents = {"साँचे"},
}

labels["म्यूटेशन साँचे"] = {
	description = "Templates used to show mutation of {{{langname}}} words.",
	parents = {"साँचे"},
}

labels["उद्धरण साँचे"] = {
	description = "Templates used to generate quotations for {{{langname}}} entries.",
	parents = {"साँचे"},
}

labels["संदर्भ साँचे"] = {
	description = "Templates used to generate reference footnotes for {{{langname}}} entries.",
	parents = {"साँचे"},
}

labels["अनुपूरक साँचे"] = {
	description = "Templates used to keep contents for other {{{langname}}} templates.",
	parents = {"साँचे"},
}

labels["प्रयोगविधि साँचे"] = {
	description = "Templates used to show usage notes in {{{langname}}} entries.",
	parents = {"साँचे"},
}


-- Add 'umbrella_parents' key if not already present.
for key, data in pairs(labels) do
	if not data.umbrella_parents then
		data.umbrella_parents = "साँचा उपश्रेणियाँ भाषा अनुसार"
	end
	-- Add breadcrumb by chopping off the parent from the end of the label, if possible.
	if #data.parents == 1 and type(data.parents[1]) == "string" then
		local parent_re = " " .. require("Module:utilities").pattern_escape(data.parents[1]) .. "$"
		if key:find(parent_re) then
			data.breadcrumb = key:gsub(parent_re, "")
		end
	end
end



-----------------------------------------------------------------------------
--                                                                         --
--                              RAW CATEGORIES                             --
--                                                                         --
-----------------------------------------------------------------------------


raw_categories["साँचे"] = {
	--intro = "{{shortcut|WT:T}}",
	description = "An organizing category intended for all templates in use on Wiktionary.",
	additional = "''See also: [[Wiktionary:Index to templates]], [[m:Help:Template|Help:Template]]''",
	parents = {"श्रेणी:विक्षनरी"},
}

raw_categories["Non-production templates and modules"] = {
	description = "Templates and modules not currently used in production.",
	additional = "{{also|Special:UnusedTemplates|Category:Unused templates}}",
	parents = {"साँचे", "Modules", "श्रेणी:विक्षनरी रखरखाव"},
}

raw_categories["Templates subcategories by language"] = {
	description = "Umbrella categories covering topics related to templates.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Umbrella metacategories",
		{name = "साँचे", is_label = true, sort = " "},
	},
}


return {LABELS = labels, RAW_CATEGORIES = raw_categories}