Module:Noinclude: Difference between revisions

From Thetacola Wiki
Jump to navigationJump to search
en>CambridgeBayWeather
m (Protected "Module:Noinclude": High-risk Lua module ([Edit=Require template editor access] (indefinite)))
 
m (1 revision imported)
 
(No difference)

Latest revision as of 00:22, 15 August 2022

Usage[edit source]

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