Help:Template limits: Difference between revisions

Content deleted Content added
m Reverted edits by Mhadi1 (talk) (HG) (3.2.0)
Post-expand include size: add non-rendered transclusions section
Line 85:
:<nowiki>{{ {{#if:{{{test|}}}|template1|template2}} }}.</nowiki>
</code>
 
=== Non-rendered transclusions ===
Non-rendered tranclusions still count towards limit. For example, a page which contains only <code><nowiki>{{#if:{{:Main Page}}}}</nowiki><code> would still have a post-expand include size even though it would have no output at all.
 
The same applies to [[Wikipedia:Lua|Scribunto modules]]. For example, <code><nowiki>{{#invoke:Test|main}}</nowiki><code> would still increase post-expand include size even if Module:Test were simply: <syntaxhighlight lang=lua>mw.getCurrentFrame():preprocess'{{msgnw::Main Page}}'
return {main = function()end}</syntaxhighlight>
 
==Template argument size==