{{Helper module|name=Mainonly
|ftype1=Any value
|fuse1=If the module is invoked in the content namespace, it will return arg, otherwise, it will return an empty string
|fuse2=Returns true if invoked in the content namespace, otherwise false
-- Module to return text only when invoked in the content namespace
local p = {}
function p.main(frame)
	local ret = frame:getParent().args[1] or ''
	return p._main(ret)
function p._main(text)
	if mw.title.getCurrentTitle().namespace == 0 then
		return text
		return ''
-- Boolean for whether or not the page is in the mainspace
-- Sometimes it might be better to just check first
-- Rather than spend processing time on something that won't be used
function p.on_main()
	return mw.title.getCurrentTitle().namespace == 0
return p

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.