Difference between revisions of "Module:Noinclude"

From blackwiki
Jump to navigation Jump to search
blackwiki>CambridgeBayWeather
m (Protected "Module:Noinclude": High-risk Lua module ([Edit=Require template editor access] (indefinite)))
m (4 revisions imported)
 
(No difference)

Latest revision as of 08:10, 27 September 2020

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