localmArguments--initialize lazilylocalmHatlist=require('Module:Hatnote list')localmHatnote=require('Module:Hatnote')localyesNo=require('Module:Yesno')localp={}--Implements {{For}} from the frame--uses capitalized "For" to avoid collision with Lua reserved word "for"functionp.For(frame)mArguments=require('Module:Arguments')returnp._For(mArguments.getArgs(frame))end--Implements {{For}} but takes a manual arguments tablefunctionp._For(args)localuse=args[1]if(notuse)thenreturnmHatnote.makeWikitextError('پارامتر زمینه ارائه نشدهاست. برای پیغام «دیگر کاربردها» از الگوی {{دیگر کاربردها}} استفاده کنید.','الگو:برای',args.category)endlocalpages={}functiontwo(a,b)returna,b,1end--lets us run ipairs from 2fork,vintwo(ipairs(args))dotable.insert(pages,v)endlocaltitle=mw.title.getCurrentTitle()localskipCat=title.isTalkPageortitle.namespace==2--don't categorise talk pages and userspacelocaloddCat=skipCatand''or'[[رده:الگو:سرنویس که از پارامترهای غیر معمول استفاده میکند]]'localcategory=yesNo(args.category)returnmHatnote._hatnote(mHatlist.forSeeTableToString({{use=use,pages=pages}}),{selfref=args.selfref})..((use=='دیگر کاربردها')and((category==true)or(category==nil))andoddCator'')endreturnp