Difference between revisions of "Module:No globals/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Noyster
(Reverted 1 edit by 50.131.128.90 (talk): Unexplained blanking. ( Using Twinkle))
blackwiki>Eric Wieser
m (Add category)
Line 7: Line 7:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
+
[[Category:Lua metamodules]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 11:40, 7 June 2015

This module causes an error if any nil global is read or if any global is written to, with the exception of arg. To use, add

require('Module:No globals')

to the top of the module using it. The arg variable is excluded because it is necessary for Scribunto's require function to work properly. (See the Scribunto source code here.)