Module:EditRequest

local p ={} function requestCheck(frame, title) local noRequests = ' There are no current unresolved requested edits ' if title:subPageTitle'EditRequest'.exists then local count = select(2, mw.ustring.gsub( mw.ustring.gsub(				mw.text.killMarkers(frame:expandTemplate{title=(title.nsText== and ':' or )..title:subPageTitle'EditRequest'.fullText}),				'== -RESOLVED[^\r\n]*==',				''			), '==[^\r\n]*==', ''		))		if count > 0 then return ' There are currently ' ..count..' unresolved edit requests. [ view ]' end end return noRequests end function p.main(frame) local title = frame.args.title and mw.title.new(frame.args.title) or mw.title.getCurrentTitle return frame:expandTemplate{title='KupoM',args={'If you are unable to edit, [' ..title:subPageTitle'EditRequest':fullUrl{ action='edit', section='new', preloadtitle='', preload='Module_talk:EditRequest/preload' }		..' click here] to submit an edit request. '		..requestCheck(frame, title) ..' [ ['		..title:fullUrl{action='purge'} ..'#editrequest refresh] ]' }} end return p