Module:IPA: Difference between revisions

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


Line 79: Line 75:
local args = require("Module:parameters").process(frame:getParent().args, params_inline)
local args = require("Module:parameters").process(frame:getParent().args, params_inline)
local language = require("Module:languages").get_by_code(args[1])
local language = require("Module:languages").get_by_code(args[1])
if language == nil then
return format_ipa(language, args[2], true, true, true)
return format_ipa({name = ""}, args[2], true, true, false)
end
else
 
return format_ipa(language, args[2], true, true, true)
function export.show_inline_linkless(frame)
end
local args = require("Module:parameters").process(frame:getParent().args, params_inline)
local language = require("Module:languages").get_by_code(args[1])
return format_ipa(language, args[2], true, true, false)
end
end