localp={}localgetArgs=require('Module:Arguments').getArgsfunctionp._main(args)localret={}localhasUnsc={}localj=0fori,vinipairs(args)do-- Compatibility: Ignore arguments that only contain an apostropheifvandv~=''andv~="'"thenhasUnsc[i]=mw.ustring.find(v,'_')ifhasUnsc[i]thenv=mw.ustring.gsub(v,'_',' ')elseifmw.ustring.find(v,'%u')andv==mw.ustring.upper(v)thenv=string.format("'''%s'''",v)endifi~=1andnothasUnsc[i-1]andv~='-'thentable.insert(ret,'-')endendtable.insert(ret,v)endj=iend-- Create <small title="..."><i>...</i></small>localsmall=mw.html.create('small')small:attr('title','Inglis pronunciation respellin'):tag('i'):wikitext(table.concat(ret))ret=tostring(small)-- For documentation: Disable linking by adding a blank parameter at the endifargs[j]~=''thenret=string.format('[[Help:Pronunciation respellin key|%s]]',ret)endreturnretendfunctionp.main(frame)localargs=getArgs(frame,{removeBlanks=false})returnp._main(args)endreturnp