Zeroclanzhang(讨论 | 贡献)2024年1月16日 (二) 10:30的版本 (创建页面,内容为“local mHatnote = require('Module:Hatnote') local mHatlist = require('Module:Hatnote list') local mArguments --initialize lazily local mTableTools --initialize lazily local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local p = {} function p.distinguish(frame) mArguments = require('Module:Arguments') mTableTools = require('Module:TableTools') local args = mArguments.getArgs(frame) local selfref = args.selfref local text = ar…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
This Lua module is used on many pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them.
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing.
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