Module:IPA: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 70: Line 70:
local language = require("Module:languages").get_by_code(args[1])
local language = require("Module:languages").get_by_code(args[1])
if language == nil then
if language == nil then
error("No such language: " .. args[1])
return format_ipa({name = ""}, args[2], args["nolarge"], true, true)
else
return format_ipa(language, args[2], args["nolarge"], args["nopre"], args["linked"])
end
end
return format_ipa(language, args[2], args["nolarge"], args["nopre"], args["linked"])
end
end


Line 79: Line 80:
local language = require("Module:languages").get_by_code(args[1])
local language = require("Module:languages").get_by_code(args[1])
if language == nil then
if language == nil then
error("No such language: " .. args[1])
return format_ipa({name = ""}, args[2], true, true, true)
else
return format_ipa(language, args[2], true, true, true)
end
end
return format_ipa(language, args[2], true, true, true)
end
end