Module:Noinclude

From imedwiki
Jump to navigation Jump to 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}}

This module (and the documentation) are based (partially) on Module:Noinclude from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.

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