มอดูล:families/data/hierarchy
- The following documentation is located at มอดูล:families/data/hierarchy/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
Algic (aql)
| ||||
|
Arai-Samaia (paa-asa)
|
└───Left May (qfa-mal) |
Arawakan (awd)
|
├───Nawiki (awd-nwk) └─── Ta-Arawakan (awd-taa) |
Arnhem (aus-arn)
|
└───Gunwinyguan (aus-gun) |
Cariban (sai-car)
| ||||
├───
└─── |
Chukotko-Kamchatkan (qfa-cka)
|
└───Chukotkan (qfa-ckn) |
Dene-Yeniseian (qfa-dny)
| ||||||||
|
Eskimo-Aleut (esx)
| ||
|
Harákmbut-Katukinan (sai-hkt)
|
├───Harákmbut (sai-har) └─── Katukinan (sai-ktk) |
Hokan (hok)
|
├───Jicaquean (nai-jcq) ├─── Pakawan (nai-pak) ├─── Pomoan (nai-pom) ├─── Shastan (nai-shs) └─── Tequistlatecan (nai-tqn) |
Iroquoian (iro)
|
└───North Iroquoian (iro-nor) |
Khoe-Kwadi (khi-kkw)
| ||
|
Macro-Chibchan (qfa-mch)
|
├───Chibchan (cba) └─── Misumalpan (nai-min) |
Macro-Jê (sai-mje)
| ||||
|
Mataco-Guaicuru (sai-mgc)
|
├───Guaicuruan (sai-guc) └─── Matacoan (sai-mtc) |
Oto-Manguean (omq)
| ||||||||
├───Chinantecan (omq-chi) ├─── Mazatecan (omq-maz)
|
Pama-Nyungan (aus-pam)
| ||
├───Arandic (aus-rnd) ├─── Central New South Wales (aus-cww) ├─── Dyirbalic (aus-dyb) ├─── Karnic (aus-kar) ├─── Paman (aus-pmn)
├─── |
Pano-Tacanan (sai-pat)
|
├───Panoan (sai-pan) └─── Tacanan (sai-tac) |
Papuan Gulf (paa-pag)
|
└───Kutubuan (paa-kut) |
Plateau Penutian (nai-plp)
|
└───Sahaptian (nai-shp) |
Serbi-Mongolic (qfa-xgs)
| ||||||
├───Para-Mongolic (qfa-xgx)
|
Siouan-Catawban (nai-sca)
| ||||
├───Catawban (nai-cat)
|
Trans-New Guinea (ngf)
|
├───Finisterre (ngf-fin) ├─── Kainantu-Goroka (paa-kag) ├─── Ok (ngf-okk) ├─── South Bird's Head (ngf-sbh) └─── มาดัง (ngf-mad) |
Tungusic (tuw)
|
├───Ewenic (tuw-ewe) ├─── Nanaic (tuw-nan) ├─── Udegheic (tuw-udg) └─── จูร์เชนิก (tuw-jrc) |
West Papuan (paa-wpa)
|
├───North Halmahera (paa-nha) └─── Sentani (paa-sen) |
Yok-Utian (nai-you)
|
├───Utian (nai-utn) └─── Yokuts (yok) |
ขร้า-ไท (qfa-tak)
| ||||||||||||
├───Kam-Sui (qfa-kms)
└─── |
คอเคเซียนเหนือ (ccn)
| ||||||||||||||
|
คาร์ทเวเลียน (ccs)
| ||
|
ซีโน-ทิเบตัน (sit)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
├───Angami-Pochuri (tbq-anp) ├─── Ao (sit-aao)
├───
├───
├───
├───
|
ดราวิเดียน (dra)
| ||||||||||||||||||||||||
|
ตูเปียน (tup)
|
└───ตูปี-กัวรานี (tup-gua) |
sign (sgn)
|
├───French Sign Languages (sgn) ├─── German Sign Languages (sgn) └─── Japanese Sign Languages (sgn) |
ม้ง-เมี่ยน (hmx)
|
├───ม้ง (hmn) └─── เมี่ยน (hmx-mie) |
ยูราลิก (urj)
| ||||
├───Mari (chm) ├─── Mordvinic (urj-mdv)
├───
|
ยูโต-แอซเทกัน (azc)
| ||
├───Numic (azc-num)
├─── |
ออสโตรนีเซียน (map)
| ||||||||||||||||||||||||||||||||
├───Atayalic (map-ata)
|
ออสโตรเอเชียติก (aav)
| ||||||||
└─── |
อินโด-ยูโรเปียน (ine)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
├───Albanian (sqj)
├─── |
เกรตอันดามันนีส (qfa-adm)
|
├───เกรตอันดามันนีสตอนกลาง (qfa-adc) ├─── เกรตอันดามันนีสเหนือ (qfa-adn) └─── เกรตอันดามันนีสใต้ (qfa-ads) |
เตอร์กิก (trk)
| ||||
├───การ์ลุก (trk-kar)
├───
|
แจพอนิก (jpx)
| ||
|
แอฟโฟรเอเชียติก (afa)
| ||||||||||||||||||||||
├───
└─── |
ไนเจอร์-คองโก (nic)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
├───
├───
|
local p = {}
local fam = mw.loadData("Module:families/data")
local function format(code)
if code == "sgn" then
return "<code>[[:Category:Sign languages|sign <span style=\"color:green;\">(sgn)</span>]]</code>"
elseif code == "sgn-fsl" then
return "<code>[[:Category:French Sign Languages|French Sign Languages <span style=\"color:green;\">(sgn)</span>]]</code>"
elseif code == "sgn-gsl" then
return "<code>[[:Category:German Sign Languages|German Sign Languages <span style=\"color:green;\">(sgn)</span>]]</code>"
elseif code == "sgn-jsl" then
return "<code>[[:Category:Japanese Sign Languages|Japanese Sign Languages <span style=\"color:green;\">(sgn)</span>]]</code>"
else
return "<code>[[:Category:" .. fam[code][1] .. " languages|" .. fam[code][1] .. " <span style=\"color:green;\">(" .. code .. ")</span>]]</code>"
end
end
local function dump(data, prefix)
if type(data) == "string" then
return format(data)
else
local result = ""
local branch = "├───"
local next_level = prefix .. "│ "
local current = ""
for i,val in ipairs(data) do
if i == #data then
branch = "└───"
next_level = prefix .. " "
end
if #val == 0 then
result = result .. prefix .. branch .. dump(val.name) .. "<br/>"
else
result = result .. "{{(!}} class=mw-collapsible style=border-collapse:collapse\n{{!}}"
result = result .. prefix .. branch .. dump(val.name)
result = result .. "\n{{!-}}\n{{!}}"
result = result .. dump(val, next_level)
result = result .. "\n{{!)}}\n"
end
end
return result
end
end
local function deep_sort(current)
local result = {}
local is_table = {}
for key,val in pairs(current) do
if type(key) == "number" then
table.insert(result, val)
else
is_table[key] = true
table.insert(result, key)
end
end
table.sort(result, function(a,b)
return (fam[a] or error(a))[1] < (fam[b] or error(b))[1]
end)
local i = 2
while i<#result do
while fam[result[i-1]] == fam[result[i]] do
table.remove(result,i)
end
i = i + 1
end
for i=1,#result do
if is_table[result[i]] then
local name = result[i]
result[i] = deep_sort(current[result[i]])
result[i].name = name
else
result[i] = {name = result[i]}
end
end
return result
end
function p.show(frame)
local children = {}
for key,val in pairs(fam) do
if val[3] and val[3] ~= "qfa-not" and val[3] ~= "qfa-und" then
if children[val[3]] then
table.insert(children[val[3]], key)
else
children[val[3]] = {key}
end
end
end
local function make_nested(data)
local make_nil = {}
for key,val in pairs(data) do
if type(key) == "number" then
if children[val] then
data[val] = make_nested(children[val])
table.insert(make_nil, key)
children[val] = nil
end
else
data[key] = make_nested(val)
end
end
for _,key in ipairs(make_nil) do
data[key] = nil
end
return data
end
children = make_nested(children)
children = deep_sort(children)
local result = ""
for i=1,#children do
result = result .. "\n\n\n{| class=mw-collapsible style=border-collapse:collapse\n|" .. format(children[i].name) .. "\n|-\n|"
result = result .. dump(children[i], " ")
result = result .. "\n|}"
end
return frame:preprocess(result)
end
return p