This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing.
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,'_',' ')elseifv==mw.ustring.upper(v)thenv=string.format("'''%s'''",v)endifi~=1andnothasUnsc[i-1]thenv='-'..vendendtable.insert(ret,v)endj=iendret=string.format("<small title=\"English pronunciation respelling\">''%s''</small>",table.concat(ret))-- For documentation: Disable linking by adding a blank parameter at the endifargs[j]~=''thenret=string.format('[[Help:Pronunciation respelling key|%s]]',ret)endreturnretendfunctionp.main(frame)localargs=getArgs(frame,{removeBlanks=false})returnp._main(args)endreturnp