Content deleted Content added
←Created page with 'require('strict') local rawData = mw.title.getCurrentTitle().subpageText == 'sandbox' and mw.loadData('Module:IPA/data/sandbox') or mw.loadData('Module:IPA/data') local data = {} local function getNameAndLink(code) local res = require('Module:Lang')._name_from_tag({ code, link = 'yes' }) local name = res:match('([^%[|%]]+)%]%]$') local link = res:match('^%[%[([^|%]]+)') return name, link end local function augmentData(lect) if lect.name and not le...' |
No edit summary Tag: Reverted |
||
Line 33:
table.insert(data, langData)
if lang.dialects then
local aliases = {}
for diaCode, dialect in pairs(lang.dialects) do
Line 60 ⟶ 61:
augmentData(diaData)
table.insert(data, diaData)
langData.dialects = langData.dialects
▲ table.insert(langData.dialects, diaCode)
end
end
|