Difference between revisions of "Module:Noinclude"

From blackwiki
Jump to navigation Jump to search
blackwiki>Pppery
blackwiki>Pppery
m (Pppery moved page Module:Sandbox/pppery/noinclude to Module:Noinclude without leaving a redirect: Move out of sandbox in preparation for sync of Template:Tfm)
(No difference)

Revision as of 16:58, 29 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