求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

模块:No globals/doc

增加 133 位元組, 6 年前
Use phab: interwiki link
{{high-risk|11,040,000+ pages, which is {{#expr:(1104688900/{{NUMBEROFPAGES:R}}) round 0}}% of all}}
{{module rating|protected}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
本模块在读取非全域数据或写入全局变量出错时生成提示,含有变量This module causes an error if any nil global is read or if any global is written to, with the exception of <var>arg</var> 的例外。为使用本模块,在模块上方添加. To use, add <syntaxhighlight lang="lua"inline>require('Module:No globals')</syntaxhighlight> 即可使用。to the top of the module using it. The <var>arg</var> 变量被排除是因为让 variable is excluded because it is necessary for Scribunto 's [[mw:Extension:Scribunto/Lua reference manual#require| 请求require]] 功能正确运行是必要的。(function to work properly. (See the Scribunto source code [https[phab:diffusion/ELUA/git.wikimedia.orgbrowse/blobmaster/mediawiki%2Fextensions%2FScribuntoengines/f768b950134a6a32c094be92c8c139a11f8880dfLuaCommon/lualib/engines%2FLuaCommon%2Flualib%2Fpackagepackage.lua#L101 在此;f768b950134a6a32c094be92c8c139a11f8880df$101|here]] 参阅 Scribunto 代码。).)
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandboxSandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Lua metamodules]]
}}</includeonly>