Module:No globals/doc

&#x3c;!-- Template categories go at the bottom of this page. --&#x3e;

This module causes an error if any nil global is read or if any global is written to, with the exception of &#x3c;var&#x3e;arg&#x3c;/var&#x3e;. To use, add &#x3c;syntaxhighlight lang="lua" inline&#x3e;require('Module:No globals')&#x3c;/syntaxhighlight&#x3e; to the top of the module using it. The &#x3c;var&#x3e;arg&#x3c;/var&#x3e; variable is excluded because it is necessary for Scribunto's require function to work properly. (See the Scribunto source code here.)