Content deleted Content added
rm diaCode |
sort Māori correctly |
||
Line 125:
local key = lect.key or lect.parent and lect.parent.key
if key then
local asciiKey = ''
for s in mw.ustring.gmatch(mw.ustring.toNFD(key), '[ -~]+') do
byKey[key] = {}▼
asciiKey = asciiKey .. s
table.insert(keys, key)▼
end
end
table.insert(byKey[asciiKey], {
code = lect.code,
name = lect.name or lect.extName,
Line 137 ⟶ 141:
end
table.sort(keys)
for _,
local row = t:tag('tr')
local
local keyCell = row:tag('td'):wikitext('[[' .. keyLects.name .. ']]')
local lang
if #keyLects > 1 then
keyCell:attr('rowspan', #keyLects)
table.sort(keyLects, function (a, b) return a.name < b.name end)
local keyName = mw.ustring.gsub(
for _, lect in ipairs(keyLects) do
if lect.name == keyName then
|