Module:rad-IPA: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
m (Added automatic brackets)
No edit summary
Line 1,347: Line 1,347:
outputIPA = syllables_to_string(outputIPA)
outputIPA = syllables_to_string(outputIPA)
if parameters["phon"] then
if parameters["phon"] and parameters["format"] then
outputIPA = "[" .. outputIPA .. "]"
outputIPA = "<span class=\"IPA\">[" .. outputIPA .. "]</span>"
else
elseif parameters["format"] then
outputIPA = "/" .. outputIPA .. "/"
outputIPA = "<span class=\"IPA\">/" .. outputIPA .. "/</span>"
end
end
mw.log(outputIPA)
mw.log(outputIPA)
return "<span class=\"IPA\">" .. outputIPA .. "</span>"
return outputIPA
end
end

Navigation menu