--[[-- This module produces a "See also: a, b and c" link. It implements the-- template {{see also}}.--]]localmHatnote=require('Module:Hatnote')localmTableTools-- lazily initialiselocalmArguments-- lazily initialiselocalp={}functionp.seealso(frame)mTableTools=require('Module:TableTools')mArguments=require('Module:Arguments')localargs=mArguments.getArgs(frame,{parentOnly=true})localpages={}fork,vinpairs(args)doiftype(k)=='number'thenlocalnumstring=tostring(k)localdisplay=args['label '..numstring]orargs['l'..numstring]localpage={v,display}pages[k]=pageendendpages=mTableTools.compressSparseArray(pages)ifnotpages[1]thenreturnmHatnote.makeWikitextError('पानाचे नाव नमूद केले नाही','Template:See also#Errors',args.category)endlocaloptions={altphrase=args.altphrase,selfref=args.selfref}returnp._seealso(options,unpack(pages))endfunctionp._seealso(options,...)localaltphrase=optionsandoptions.altphraseor'हेही बघा'locallinks=mHatnote.formatPageTables(...)links=mw.text.listToText(links)localtext=altphrase..': '..links-- Pass options through.localhnOptions={}hnOptions.selfref=options.selfrefreturnmHatnote._hatnote(text,hnOptions)endreturnp