Module:category tree/families: Difference between revisions

No edit summary
m top: clean up
 
(4 intermediate revisions by the same user not shown)
Line 14: Line 14:
raw_categories["Language families"] = {
raw_categories["Language families"] = {
topright = "{{commonscat|Languages by family}}\n{{wp|Language family,List of language families}}",
topright = "{{commonscat|Languages by family}}\n{{wp|Language family,List of language families}}",
description = "This category lists all [[language family|language families]].",
description = "This category lists all [[wikt:language family|language families]].",
parents = {"Fundamental"},
parents = {"Fundamental"},
breadcrumb = "All language families"
breadcrumb = "All language families"
Line 21: Line 21:
raw_categories["Languages by family"] = {
raw_categories["Languages by family"] = {
topright = "{{commonscat|Languages by family}}\n{{wp|Language family,List of language families}}",
topright = "{{commonscat|Languages by family}}\n{{wp|Language family,List of language families}}",
description = "This category contains all languages categorized hierarchically according to the [[language family]] they belong to.",
description = "This category contains all languages categorized hierarchically according to the [[wikt:language family|language family]] they belong to.",
additional = "Only top-level language families are shown here. For a full list of all language families, see [[:Category:All language families]] or [[Wiktionary:List of families]].",
additional = "Only top-level language families are shown here. For a full list of all language families, see [[:Category:Language families]] or [[wikt:Wiktionary:List of families]].",
parents = {
parents = {
{name = "Languages", sort = " "},
{name = "Languages", sort = " "},
{name = "All language families", sort = " "},
{name = "Language families", sort = " "},
},
},
}
}
Line 37: Line 37:
parents = {
parents = {
{name = "Languages by family", sort = "*"},
{name = "Languages by family", sort = "*"},
"All language families",
"Language families",
},
},
}
}
Line 212: Line 212:
["qfa-dis"] = "These are languages where there is no consensus concerning which family, if any, they belong to.",
["qfa-dis"] = "These are languages where there is no consensus concerning which family, if any, they belong to.",
["qfa-iso"] = "These are languages where there is general agreement that the language has no known relatives.",
["qfa-iso"] = "These are languages where there is general agreement that the language has no known relatives.",
["qfa-mix"] = "A [[mixed language]] is a language which is composed of two different languages.",
["qfa-mix"] = "A [[wikt:mixed language|mixed language]] is a language which is composed of two different languages.",
["qfa-unc"] = "These are languages that cannot be confidently assigned to a family due to lack of sufficient linguistic data. " ..
["qfa-unc"] = "These are languages that cannot be confidently assigned to a family due to lack of sufficient linguistic data. " ..
"They are also commonly called {{w|unclassified language|unclassified languages}}, but this is ambiguous between " ..
"They are also commonly called {{w|unclassified language|unclassified languages}}, but this is ambiguous between " ..
Line 274: Line 274:
if family_is_not_a_family(family) then
if family_is_not_a_family(family) then
additional_preface = additional_preface ..
additional_preface = additional_preface ..
"This is a pseudo-family, used for grouping purposes but not forming a linguistically valid [[clade]] " ..
"This is a pseudo-family, used for grouping purposes but not forming a linguistically valid [[wikt:clade|clade]] " ..
"(i.e. a set of linguistically related languages descending from a common parent).\n\n" ..
"(i.e. a set of linguistically related languages descending from a common parent).\n\n" ..
"Information about this family:\n\n"
"Information about this family:\n\n"
Line 317: Line 317:
local parents = {
local parents = {
{name = first_parent, sort = first_parent_sort_key},
{name = first_parent, sort = first_parent_sort_key},
{name = "All language families", sort = parent_sort_key},
{name = "Language families", sort = parent_sort_key},
}
}
if parent_fam and parent_fam:getCode() == "sgn" then
if parent_fam and parent_fam:getCode() == "sgn" then
insert(parents, "All sign languages")
insert(parents, "Sign languages")
end
end
if family_is_papuan(family) then
if family_is_papuan(family) then