Jump to content

Module:Distinguish

Permanently protected module
From Wikipedia, the free encyclopedia

localmHatnote=require('Module:Hatnote')localmHatlist=require('Module:Hatnote list')localmArguments--initialize lazilylocalmTableTools--initialize lazilylocallibraryUtil=require('libraryUtil')localcheckType=libraryUtil.checkTypelocalp={}functionp.distinguish(frame)mArguments=require('Module:Arguments')mTableTools=require('Module:TableTools')localargs=mArguments.getArgs(frame)localselfref=args.selfreflocaltext=args.textargs=mTableTools.compressSparseArray(args)returnp._distinguish(args,text,selfref)endfunctionp._distinguish(args,text,selfref)checkType("_distinguish",1,args,'table')if#args==0andnottextthenreturn''endlocaltext=string.format('Not to be confused with %s.',textormHatlist.orList(args,true))hnOptions={selfref=selfref}returnmHatnote._hatnote(text,hnOptions)endreturnp
close