Modul:category tree/poscatboiler/data/phrases
Penampilan
- Berikut merupakan pendokumenan yang dijana oleh Templat:poscatboiler data submodule documentation. [sunting]
- Pautan berguna: laman akar • sublaman • pautan • transklusi • kes ujian • kotak pasir
Submodul data ini mentakrifkan sebahagian daripada struktur kategori Wikikamus.
Untuk pengenalan kepada sistem poscatboiler
dan penerangan tentang cara menambah atau mengubah suai kategori, lihat Modul:category tree/poscatboiler/data/doc.
local labels = {}
local raw_categories = {}
labels["frasa"] = {
description = "Kumpulan bahasa {{{langname}}} diterangkan untuk menyatakan idea, tidak semestinya [[frasa]] dalam erti tatabahasa.",
umbrella_parents = "Subkategori lema mengikut bahasa",
parents = {"lema", "multiword terms"},
}
labels["adverb-adjective phrases"] = {
description = "{{{langname}}} phrases in which an adverb modifies the adjective that heads the phrase.",
umbrella_parents = {name = "frasa", is_label = true, sort = " "},
parents = {"frasa"},
}
labels["alliterative phrases"] = {
description = "{{{langname}}} phrases composed of two or more words that alliterate.",
umbrella_parents = {name = "frasa", is_label = true, sort = " "},
parents = {"frasa"},
}
labels["rhyming phrases"] = {
description = "{{{langname}}} phrases composed of two or more words that rhyme.",
umbrella_parents = {name = "frasa", is_label = true, sort = " "},
parents = {"frasa"},
}
labels["ayat"] = {
description = "[[ayat|Ayat]] bahasa {{{langname}}}.",
umbrella_parents = "Asas",
parents = {{name = "{{{langcat}}}", raw = true}},
}
labels["buku frasa"] = {
description = "Frasa bukan peribahasa bahasa {{{langname}}} yang digunakan dalam situasi lazim, dan mungkin berguna kepada pelajar bahasa dan pelancong.",
parents = {
"frasa",
{name = "Buku frasa mengikut bahasa", raw = true, sort = "{{{langname}}}"}
},
umbrella = false, -- Umbrella has a nonstandard name so we treat it as a raw category
}
raw_categories["Buku frasa mengikut bahasa"] = {
description = "Kategori buku frasa dalam bahasa-bahasa khusus.",
additional = "Kategori frasa buku mengandungi frasa bukan peribahasa yang digunakan dalam situasi lazim, dan mungkin berguna kepada pelajar bahasa dan pelancong.\n\n" ..
"Lihat [[Wiktionary:Frasa buku]] bagi maklumat lanjut.\n\n{{{umbrella_msg}}}",
parents = "Asas",
}
for _, category in ipairs({
{name = "Asas", topics = {}},
{name = "Komunikasi", topics = {"Komunikasi"}},
{name = "Kecemasan", topics = {"Kecemasan perubatan"}},
{name = "Etnik", topics = {"Etnik"}},
{name = "Keluarga", topics = {"Keluarga"}},
{name = "Perpisahan", topics = {"Perpisahan"}},
{name = "Keraian", topics = {}},
{name = "Makanan dan minuman", topics = {"Makanan dan minuman"}},
{name = "Sapaan", topics = {"Sapaan"}},
{name = "Kesihatan", topics = {"Kesihatan"}},
{name = "Cinta", topics = {"Cinta"}},
{name = "Wang", topics = {"Wang"}},
{name = "Keperluan", topics = {}},
{name = "Agama", topics = {"Agama"}},
{name = "Seks", topics = {"Seks"}},
{name = "Masa", topics = {"Masa"}},
{name = "Pelancongan", topics = {"Pelancongan"}},
{name = "Cuaca", topics = {"Cuaca"}},
}) do
local parents = {
{name = "frasa buku", sort = category.name},
{name = "Frasa buku mengikut bahasa/" .. 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["Frasa buku/" .. category.name] = {
description = "{{{langname}}} common non-idiomatic phrases in the category '" .. category.name .. "'.",
breadcrumb = category.name,
parents = parents,
umbrella = false,
}
raw_categories["Frasa buku mengikut bahasa/" .. category.name] = {
description = "Categories with common non-idiomatic phrases in the category '" .. category.name .. "', in various specific languages.",
additional = "{{{umbrella_msg}}}",
parents = {{name = "Frasa buku mengikut bahasa", sort = " "}},
breadcrumb = category.name,
}
end
return {LABELS = labels, RAW_CATEGORIES = raw_categories}