跳转到内容

模組:Category tree/phrases

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

本資料子模組定義了維基詞典分類結構的一部分。

關於 category tree 系統的介紹,以及新增或修改分類的說明,請參見Module:category tree/doc。


local labels = {}
local raw_categories = {}


labels["短語"] = {
	description = "{{{langname}}}中用於表達想法的常用詞組,不一定是語法意義上的[[短語]]。",
	umbrella_parents = "詞元子分類",
	parents = {"詞元", "詞組"},
}

labels["副詞-形容詞短語"] = {
	description = "{{{langname}}}中由副詞修飾形容詞(作為中心語)的短語。",
	umbrella_parents = {name = "短語", is_label = true, sort = " "},
	parents = {"短語"},
}

labels["頭韻短語"] = {
	description = "{{{langname}}}中由兩個或兩個以上押頭韻的詞組成的短語。",
	umbrella_parents = {name = "短語", is_label = true, sort = " "},
	parents = {"短語"},
}

labels["押韻短語"] = {
	description = "{{{langname}}}中由兩個或多個押韻詞彙組成的短語。",
	umbrella_parents = {name = "短語", is_label = true, sort = " "},
	parents = {"短語"},
}

labels["句子"] = {
	description = "{{{langname}}}[[句子]]。",
	umbrella_parents = "分類",
	parents = {{name = "{{{langcat}}}", raw = true}},
}

labels["常用語手冊"] = {
	description = "{{{langname}}}用於日常情境的非習語短語,可能有助於語言學習者或旅行者。",
	parents = {
		"短語",
		{name = "按語言分類的常用語手冊", raw = true, sort = "{{{langname}}}"}
	},
	umbrella = false, -- Umbrella has a nonstandard name so we treat it as a raw category
}

raw_categories["按語言分類的常用語手冊"] = {
	description = "包含各種特定語言的常用語手冊的分類。",
	additional = "常用語手冊分類包含用於日常情境的非習語短語,可能有助於語言學習者或旅行者。\n\n" ..
	"更多信息請見[[Wiktionary:常用語手冊]]。\n\n{{{umbrella_msg}}}",
	parents = "分類",
}

for _, category in ipairs({
	{name = "基本", topics = {}},
	{name = "溝通", topics = {"Communication"}},
	{name = "緊急情況", topics = {"Emergency medicine"}},
	{name = "種族", topics = {"Ethnicity"}},
	{name = "家庭", topics = {"Family"}},
	{name = "告別", topics = {}},
	{name = "慶祝活動", topics = {}},
	{name = "飲食", topics = {"Food and drink"}},
	{name = "問候", topics = {}},
	{name = "健康", topics = {"Health"}},
	{name = "愛", topics = {"Love"}},
	{name = "金錢", topics = {"Money"}},
	{name = "需求", topics = {}},
	{name = "宗教", topics = {"Religion"}},
	{name = "性", topics = {"Sex"}},
	{name = "時間", topics = {"Time"}},
	{name = "旅行", topics = {"Travel"}},
	{name = "天氣", topics = {"Weather"}},
}) do
	local parents = {
		{name = "常用語手冊", sort = category.name},
		{name = "按語言分類的常用語手冊/" .. category.name, raw = true, sort = "{{{langname}}}"},
	}
	for _, topic in ipairs(category.topics) do
		table.insert(parents, {module = "topic cat", args = {code = "{{{langcode}}}", label = topic}, sort = " "})
	end
	labels["常用語手冊/" .. category.name] = {
		description = "{{{langname}}}中屬於「" .. category.name .. "」分類的常用非習語短語。",
		breadcrumb = category.name,
		parents = parents,
		umbrella = false,
	}
	raw_categories["按語言分類的常用語手冊/" .. category.name] = {
		description = "包含各種特定語言中屬於「" .. category.name .. "」分類的常用非習語短語的分類。",
		additional = "{{{umbrella_msg}}}",
		parents = {{name = "按語言分類的常用語手冊", sort = " "}},
		breadcrumb = category.name,
	}
end


return {LABELS = labels, RAW_CATEGORIES = raw_categories}