Module:category tree/poscatboiler/data/phrases


This data submodule defines part of Wiktionary's category structure.

For an introduction to the category tree system and a description of how to add or modify categories, see Module:category tree/documentation.


local labels = {}
local raw_categories = {}


labels["වාක්‍ය ඛණ්ඩ"] = {
	description = "{{{langname}}} groups of words elaborated to express ideas, not necessarily [[phrase]]s in the grammatical sense.",
	umbrella_parents = "භාෂාව අනුව ලෙමා උප ප්‍රවර්ග",
	parents = {"පාඨ", "multiword terms"},
}

labels["adverb-adjective phrases"] = {
	description = "{{{langname}}} phrases in which an adverb modifies the adjective that heads the phrase.",
	umbrella_parents = {name = "වාක්‍ය ඛණ්ඩ", is_label = true, sort = " "},
	parents = {"වාක්‍ය ඛණ්ඩ"},
}

labels["alliterative phrases"] = {
	description = "{{{langname}}} phrases composed of two or more words that alliterate.",
	umbrella_parents = {name = "වාක්‍ය ඛණ්ඩ", is_label = true, sort = " "},
	parents = {"වාක්‍ය ඛණ්ඩ"},
}

labels["rhyming phrases"] = {
	description = "{{{langname}}} phrases composed of two or more words that rhyme.",
	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 = "Basic", topics = {}},
	{name = "Communication", topics = {"Communication"}},
	{name = "Emergencies", topics = {"Emergency medicine"}},
	{name = "Ethnicity", topics = {"Ethnicity"}},
	{name = "Family", topics = {"Family"}},
	{name = "Farewells", topics = {}},
	{name = "Festivities", topics = {}},
	{name = "Food and drink", topics = {"Food and drink"}},
	{name = "Greetings", topics = {}},
	{name = "Health", topics = {"Health"}},
	{name = "Love", topics = {"Love"}},
	{name = "Money", topics = {"Money"}},
	{name = "Needs", topics = {}},
	{name = "ආගම", topics = {"ආගම"}},
	{name = "Sex", topics = {"Sex"}},
	{name = "කාලය", topics = {"කාලය"}},
	{name = "Travel", topics = {"Travel"}},
	{name = "Weather", 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}
ප්‍රවර්ගය:Category tree data modules/poscatboiler