Module:Mainonly/doc

This is the documentation page for Module:Mainonly

Information icon-grey.png
This is a documentation subpage for Module:Mainonly.
It contains usage information, categories, and other content that is not part of the original module page.

This module is a helper module to be used by other modules; it may not be designed to be invoked directly. See Near-Reality:Lua/Helper modules for a full list and more information.

ModuleFunctionTypeUse
Mainonly_main(arg)Any valueIf the module is invoked in the content namespace, it will return arg, otherwise, it will return an empty string
on_main()N/AReturns true if invoked in the content namespace, otherwise false