Module:rad-pronunciation: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
m (Fixed multi-rhyme function)
mNo edit summary
Line 89: Line 89:
if args[i] == "no auto" then
if args[i] == "no auto" then
IPA_no_auto = true
IPA_no_auto = true
else
elseif args[i] ~= nil then
table.insert(IPA[mode_dialect][mode_register], args[i])
table.insert(IPA[mode_dialect][mode_register], args[i])
mw.log("IPA: added '" .. args[i] .. "' to IPA[" .. mode_dialect .. "][" .. mode_register .. "]")
mw.log("IPA: added '" .. args[i] .. "' to IPA[" .. mode_dialect .. "][" .. mode_register .. "]")
Line 116: Line 116:
end
end
elseif mode == "homophones" then
elseif mode == "homophones" then
table.insert(homophones, args[i])
if args[i] ~= nil then
mw.log("Homophones: " .. args[i] .. " registered.")
table.insert(homophones, args[i])
mw.log("Homophones: " .. args[i] .. " registered.")
end
end
end

Navigation menu