Module:IPA/overview: Difference between revisions

Content deleted Content added
mNo edit summary
refactor
Line 170:
end
lang = lang or keyLects[1]
local nameCellprev = row:tag('td'):wikitext({
string.format('[[%s|%s]]',name lang.link,= lang.name),
count = 1,
)
nameCellcell = subRowrow:tag('td'):wikitext(
local nameRowspan = 1
string.format('[[%s|%s]]', lectlang.link, lectlang.name)
)
}
row:tag('td'):wikitext('<code>' .. lang.code .. '</code>')
for i_, lect in ipairs(keyLects) do
if lect ~= lang then
local subRow = t:tag('tr')
local prev = i == 1 and lang or keyLects[i - 1]
if prev.name == lect.name then
nameRowspanprev.count = nameRowspanprev.count + 1
nameCellprev.cell:attr('rowspan', nameRowspanprev.count)
else
nameRowspanprev = 1{
name = lect.name,
nameCell = subRow:tag('td'):wikitext(
count = 1,
string.format('[[%s|%s]]', lect.link, lect.name)
cell = subRow:tag('td'):wikitext(
)
string.format('[[%s|%s]]', lect.link, lect.name)
)
}
end
subRow:tag('td'):wikitext('<code>' .. lect.code .. '</code>')
Line 194 ⟶ 199:
return tostring(t)
end
 
 
return p