localmArguments--initialize lazilylocalmHatlist=require('Module:Hatnote list')localmHatnote=require('Module:Hatnote')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]--cases with parameter 1 unspecified should probably be flaggedifuse=='other uses'thenuse=use..'[[Category:Hatnote templates using unusual parameters]]'endlocalpages={}functiontwo(a,b,c)returna,b,1end--lets us run ipairs from 2fork,vintwo(ipairs(args))dotable.insert(pages,v)endreturnmHatnote._hatnote(mHatlist.forSeeTableToString({{use=use,pages=pages}}),{selfref=args.selfref})endreturnp