localp={}localgetArgsfunctionp.main(frame)ifnotgetArgsthengetArgs=require('Modulo:Dagiti argumento').getArgsendlocalargs=getArgs(frame,{wrappers='Plantilia:Gaps'})localret=mw.html.create('span'):css({['white-space']='nowrap',['font-size']=args.size})ifargs.lhsthenret:wikitext(args.lhs..' = ')endlocalgap=string.lower(args.gapor'')localgapSize,gapUnit=string.match(gap,'([%d%.]+)%s*([ep][mnx])')localacceptedUnits={em='em',en='en',px='px'}gapUnit=acceptedUnits[gapUnit]ifgapSizeandgapUnitthengap=gapSize..gapUnitelsegap='0.25em'endfork,vinipairs(args)doifk==1thenret:wikitext(v)elseret:tag('span'):css('margin-left',gap):wikitext(v)endendifargs.ethenret:tag('span'):css({['margin-left']='0.27em',['margin-right']='0.27em'}):wikitext('×'):done():wikitext(args.baseor'10'):tag('span'):css('display','none'):wikitext('^'):done():tag('sup')-- the double parentheses here are not redundant.-- they keep the second return value from being passed:wikitext((mw.ustring.gsub(args.e,'-','−'))):done()endifargs.uthenret:wikitext('&nbsp;'..args.u)endreturnretendreturnp