Module:Distinguish/sandbox
Appearance
From Wikipedia, the free encyclopedia
Warning This Lua module is used on approximately 119,000 pages .
To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing.
This module depends on the following other modules:
Implements {{distinguish }}.
The above documentation is transcluded from Module:Distinguish/doc. (edit | history)
Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this module.
Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this module.
localmHatnote=require('Module:Hatnote') localmHatlist=require('Module:Hatnote list') localmArguments--initialize lazily localmTableTools--initialize lazily locallibraryUtil=require('libraryUtil') localcheckType=libraryUtil.checkType localp={} functionp.distinguish(frame) mArguments=require('Module:Arguments') mTableTools=require('Module:TableTools') localargs=mArguments.getArgs(frame) localselfref=args.selfref localtext=args.text args=mTableTools.compressSparseArray(args) returnp._distinguish(args,text,selfref) end functionp._distinguish(args,text,selfref) checkType("_distinguish",1,args,'table') if#args==0andnottextthenreturn''end localtext=string.format( 'Not to be confused with %s.', textormHatlist.orList(args,true) ) hnOptions={selfref=selfref} returnmHatnote._hatnote(text,hnOptions) end returnp