Module:Noinclude
From Thetacola Wiki
Jump to navigationJump to search
File:Ambox warning yellow.svg | This Lua module is used on many pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
File:Full-protection-shackle.svg | 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