Module:category tree/families: Difference between revisions
No edit summary |
No edit summary |
||
| (2 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: | 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 = " | {name = "Language families", sort = " "}, | ||
}, | }, | ||
} | } | ||
| 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 = " | {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, " | insert(parents, "Sign languages") | ||
end | end | ||
if family_is_papuan(family) then | if family_is_papuan(family) then | ||