Difference between revisions of "Module:Noinclude"
Jump to navigation
Jump to search
en>CambridgeBayWeather m (Protected "Module:Noinclude": High-risk Lua module ([Edit=Require template editor access] (indefinite))) |
(No difference)
|
Revision as of 23:09, 29 October 2016
This Lua module is used on many pages, so changes to it will be widely noticed. Please test any changes in the module's /sandbox or /testcases subpages. Please consider discussing changes on the talk page before implementing them. |
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
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