模組:Category tree/poscatboiler/data/templates/sandbox


此數據子模塊定義了維基詞典分類結構的一部分。

關於poscatboiler系統的介紹以及如何添加或更改分類,請參見Module:category tree/poscatboiler/data/documentation


local labels = {}
local raw_categories = {}



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


labels["模板"] = {
	description = "{{{langname}}}[[Wiktionary:模板|模板]],包含可重用的維基代碼,便於建立和管理詞條。",
	umbrella = {
		parents = {{name = "模板", sort = " "}},
		breadcrumb = "各語言",
	},
	parents = {{name = "{{{langcat}}}", raw = true}},
}

labels["模塊"] = {
	description = "{{{langname}}}模組,包含可重用的Lua脚本,便於建立和管理詞條。",
	umbrella = {
		parents = {{name = "模塊", sort = " "}},
		breadcrumb = "各語言",
	},
	parents = {{name = "{{{langcat}}}", raw = true}},
}

labels["形容詞變格表模板"] = {
	description = "模板 used to show declension tables for {{{langname}}} adjectives.",
	parents = {"變格表模板"},
}

labels["auto-table模板"] = {
	description = "模板 that contain {{{langname}}} tables generated automatically. They use the \"table:\" prefix. For example, see [[Template:table:chess pieces/en]].",
	parents = {"模板"},
}

labels["分類樣板模板"] = {
	description = "模板 used to generate descriptions and categorization for category pages.",
	parents = {"模板"},
}

labels["declension-table模板"] = {
	description = "模板 used to show declension tables for {{{langname}}} nouns and adjectives.",
	parents = {"變格表模板"},
}

labels["定義模板"] = {
	description = "模板 used in the [[Wiktionary:Glossary#definition line|definition line]] of {{{langname}}} entries to help in creating definitions.",
	parents = {"模板"},
}

labels["詞條模板"] = {
	description = "模板 used to help in the creation of {{{langname}}} entries.",
	parents = {"模板"},
}

labels["詞源模板"] = {
	description = "模板 used in the etymology section of {{{langname}}} entries.",
	parents = {"模板"},
}

labels["實驗模板"] = {
	description = "模板 used to test possible content for {{{langname}}} entries.",
	parents = {"模板"},
}

labels["之形式模板"] = {
	description = "模板 used on the definition line of entries for inflected forms of words in {{{langname}}}, to link back to the main form.",
	parents = {"模板"},
}

labels["標題行模板"] = {
	description = "模板 used to show lines that contain headwords in {{{langname}}}.",
	parents = {"模板"},
}

labels["索引模板"] = {
	description = "模板 used to organize {{{langname}}} indexes.",
	parents = {"模板"},
}

labels["變格表模板"] = {
	description = "用於顯示{{{langname}}}詞條變格表的模板。",
	parents = {"模板"},
}

labels["列表模板"] = {
	description = "含有{{{langname}}}列表的模板",
	parents = {"模板"},
}

labels["mutation模板"] = {
	description = "模板 used to show mutation of {{{langname}}} words.",
	parents = {"模板"},
}

labels["nominal inflection-table模板"] = {
	description = "模板 used to show declension tables for {{{langname}}} nominals.",
	parents = {"變格表模板"},
}

labels["名詞變格表模板"] = {
	description = "用於顯示{{{langname}}}名詞變格表的模板。",
	parents = {"變格表模板"},
}

labels["數詞變格表模板"] = {
	description = "模板 used to show declension tables for {{{langname}}} numerals.",
	parents = {"變格表模板"},
}

labels["participle inflection-table模板"] = {
	description = "模板 used to show declension tables for {{{langname}}} participles.",
	parents = {"變格表模板"},
}

labels["代詞變格表模板"] = {
	description = "模板 used to show declension tables for {{{langname}}} pronouns.",
	parents = {"變格表模板"},
}

labels["引文模板"] = {
	description = "Templates used to generate quotations for {{{langname}}} entries.",
	parents = {"模板"},
}

labels["參考模板"] = {
	description = "模板 used to generate reference footnotes for {{{langname}}} entries.",
	parents = {"模板"},
}

labels["補充模板"] = {
	description = "模板 used to keep contents for other {{{langname}}}模板.",
	parents = {"模板"},
}

labels["usage模板"] = {
	description = "模板 used to show usage notes in {{{langname}}} entries.",
	parents = {"模板"},
}

labels["動詞變位表模板"] = {
	description = "用於顯示{{{langname}}}動詞變化形式的模板。",
	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
end



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


raw_categories["模板"] = {
	intro = "{{shortcut|WT:T}}",
	description = "維基詞典上使用的所有模板的母分類。",
	additional = "另見:[[Wiktionary:模板]]、[[m:Help:Template|Help:模板]]",
	parents = {"Category:维基词典"},
}

raw_categories["模塊"] = {
	description = "這是模塊的母分類。",
	additional = "有關什麼是模塊以及工作原理的更多信息,請參閱[[Wiktionary:Scribunto]]。有關所有模塊的完整列表,請參閱[[Special:PrefixIndex/Module:|此處]]。",
	parents = {"Category:维基词典"},
}

raw_categories["模板子分類"] = {
	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}