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

From imedwiki
Jump to navigation Jump to search
(Import from wikipedia)
 
m (Source template Wikipedia)
 
Line 12: Line 12:
 
[[Category:Lua metamodules]]
 
[[Category:Lua metamodules]]
 
}}</includeonly>
 
}}</includeonly>
 +
{{SourceWikipedia}}

Latest revision as of 01:52, 20 September 2021

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.)

See also


This module (and the documentation) are based (partially) on Module:No globals/doc from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.