Пређи на садржај

Модул:category tree/poscatboiler/data/phrases

Script error: The function "main" does not exist.

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 = {"леме", "вишезначни термини"},
}

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}}} [[sentence]]s.",
	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 [[Викиречник:Збирка израза]] for more information.\n\n{{{umbrella_msg}}}",
	parents = "Почетак",
}

for _, category in ipairs({
	{name = "Основа", topics = {}},
	{name = "Комуникација", topics = {"Комуникација"}},
	{name = "Emergencies", topics = {"Emergency medicine"}},
	{name = "Ethnicity", topics = {"Ethnicity"}},
	{name = "Породица", topics = {"Породица"}},
	{name = "Farewells", topics = {"Farewells"}},
	{name = "Festivities", topics = {}},
	{name = "Food and drink", topics = {"Food and drink"}},
	{name = "Greetings", topics = {"Greetings"}},
	{name = "Здравље", topics = {"Здравље"}},
	{name = "Љубав", topics = {"Љубав"}},
	{name = "Новац", topics = {"Новац"}},
	{name = "Потребе", topics = {}},
	{name = "Религија", topics = {"Религија"}},
	{name = "Секс", topics = {"Секс"}},
	{name = "Време", topics = {"Време"}},
	{name = "Путовање", 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}