模組:Category tree/poscatboiler/data/phrases

子頁面


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 = "分類",
	parents = {{name = "{{{langcat}}}", raw = true}},
}

labels["常用語手冊"] = {
	description = "{{{langname}}} non-idiomatic phrases that are used in common situations, and may be useful to language learners or travellers.",
	parents = {
		"短語",
		{name = "按語言分類的常用語手冊", raw = true, sort = "{{{langname}}}"}
	},
	umbrella = false, -- Umbrella has a nonstandard name so we treat it as a raw category
}

raw_categories["按語言分類的常用語手冊"] = {
	description = "Categories with phrasebooks in various specific languages.",
	additional = "Phrasebook categories contain non-idiomatic phrases that are used in common situations, and may be useful to language learners or travellers.\n\n" ..
	"See [[Wiktionary:Phrasebook]] for more information.\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 = {"Farewells"}},
	{name = "慶祝活動", topics = {}},
	{name = "飲食", topics = {"Food and drink"}},
	{name = "問候", topics = {"Greetings"}},
	{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}}} common non-idiomatic phrases in the category '" .. category.name .. "'.",
		breadcrumb = category.name,
		parents = parents,
		umbrella = false,
	}
	raw_categories["按語言分類的常用語手冊/" .. category.name] = {
		description = "Categories with common non-idiomatic phrases in the category '" .. category.name .. "', in various specific languages.",
		additional = "{{{umbrella_msg}}}",
		parents = {{name = "按語言分類的常用語手冊", sort = " "}},
		breadcrumb = category.name,
	}
end


return {LABELS = labels, RAW_CATEGORIES = raw_categories}