Help:Template limits: Difference between revisions

Content deleted Content added
m Nested transclusions: syntaxhighlight
Line 91:
Note that the sizes of the wikitexts of all expanded templates and parser functions are added, even in the case of nesting (see [[phab:T15260]]), so extra levels increase the count. If page A transcludes B and B does nothing but transclude C, then the size of C will be counted ''twice'' towards the post-expand include size on page A, and similarly if a template consists of a parser function call, or a parser function has a template call as parameter, etc. Possible substitutions to reduce nesting include:
 
*<code><nowikisyntaxhighlight lang="wikitext" inline>{{#if:{{{test|}}}|{{template1}}|{{template2}} }}</nowiki></codesyntaxhighlight> replaced with <code><nowikisyntaxhighlight lang="wikitext" inline>{{ {{#if:{{{test|}}}|template1|template2}} }}</nowiki></codesyntaxhighlight>.
*{{tl|navboxes}} replaced with {{tl|navboxes top}} and {{tl|navboxes bottom}}
*{{tl|trim|...}} replaced with {{pf|if|1|...}}
*{{tlf|Episode table|episodes{{=}}...}} -> <code><nowikisyntaxhighlight lang="wikitext" inline>{{episode table|dontclose=y}} ... {{End|html=y|Episode table}}</nowiki></codesyntaxhighlight>
 
=== Non-rendered transclusions ===