Warning
This is an unofficial archive of PsychonautWiki as of 2025-08-11T15:14:44Z. Content on this page may be outdated, incomplete, or inaccurate. Please refer to the original page for the most up-to-date information.

Module:No globals/doc: Difference between revisions

From PsychonautWiki Archive
Jump to navigation Jump to search
iw>Noyster
Reverted 1 edit by 50.131.128.90 (talk): Unexplained blanking. ( Using Twinkle)
 
>PJosepherum
m 1 revision imported
 
(No difference)

Latest revision as of 19:43, 20 February 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 <syntaxhighlight lang="lua">require('Module:No globals')</syntaxhighlight> 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.)