--[[ v1.0]]localp={}localyesno=require("Module:yesno")functionp.main(frame)localrawpages={}localnvalid=0localnamespace=frame.args.nsorframe.args['فن']fori,vinipairs(frame:getParent().args)doif(v~=nil)thenlocalthisArg=mw.text.trim(v)if(thisArg~="")thenlocaltitle=mw.title.new(thisArg,namespace)iftitle~=nilandtitle.existsthentable.insert(rawpages,title.fullText)nvalid=nvalid+1endendendendif(nvalid==0)thenifyesno(frame.args.warningorframe.args['هشدار'])thenifnamespace==nilthennamespace="صفحه"elseifnamespace:sub(-1)=="y"thennamespace=namespace:sub(0,-2).."ie"endmw.addWarning(string.format("'''[[%s]] — no output, because none of the %ss currently exist.'''",frame:getParent():getTitle(),namespace))endreturn""endlocalmHatnote=require("Module:Hatnote")localmHatList=require("Module:Hatnote list")localoptions={extraclasses="relarticle mainarticle"}localhatnoteText=mw.ustring.format("برای اطلاعات بیشتر، %s را ببینید",mHatList.andList(rawpages,true))returnmHatnote._hatnote(hatnoteText,options)endreturnp