localp,__output,args,data={},{},{},mw.loadData("Module:IPA symbol/data")localid,output__output.name=function()returndata.correspondences[id]["name"]end__output.wikipage=function()returndata.correspondences[id]["wikipage"]end__output.soundfile=function()returndata.correspondences[id]["soundfile"]end__output.type=function()returndata.correspondences[id]["type"]endlocalfunctionhtml_error(message)ifargs[2]thenreturnargs[2]elsereturnmw.ustring.format('<strong class="error">Error using {[[Template:IPA symbol|IPA symbol]]}: %s%s</strong>',message,mw.title.getCurrentTitle().isContentPageand("[[Category:International Phonetic Alphabet pages needing attention|"..(args[1]or"").."]]")or"")endendfunctionp.main(frame)-- all input is trimmed; accepted parameters are:-- name description-- ==== ===========-- (1) the input-- (2) overwrite the error message-- (3) overwrite the output when input is empty-- output the output, one of: input; name; wikipage; soundfile; typefork,vinpairs(frame:getParent().args)doargs[k]=vandmw.text.trim(v)endargs.output=args.outputor'wikipage'ifnotargs[1]orargs[1]==""thenreturnargs[3]or""endid=data.symbols[args[1]]ifnotidthenreturnhtml_error('"'..args[1]..'" not found in list')endreturn__output[args.output]and__output[args.output]()orhtml_error("No such output option")endreturnp