Difference between revisions of "Module:Noinclude"

From blackwiki
Jump to navigation Jump to search
blackwiki>Pppery
(Created page with 'local p = {} function p.noinclude(frame) return frame:getParent():preprocess("<noinclude>" .. frame.args.text .. "</noinclude>"); end return noinclude')
 
blackwiki>Pppery
Line 3: Line 3:
 
return frame:getParent():preprocess("<noinclude>" .. frame.args.text .. "</noinclude>");
 
return frame:getParent():preprocess("<noinclude>" .. frame.args.text .. "</noinclude>");
 
end
 
end
return noinclude
+
return p

Revision as of 22:16, 26 October 2016

Usage

This module has the same function as a pair of <noinclude>...</noinclude> tags, but can be nested within them without causing issues.

{{#invoke:Noinclude|noinclude|text=content to noinclude}}


local p = {}
function p.noinclude(frame)
	return frame:getParent():preprocess("<noinclude>" .. frame.args.text .. "</noinclude>");
end
return p