Module:Noinclude

From Wiki.Agency
Revision as of 22:40, 24 October 2018 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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