Manual:$wgMaxTemplateDepth

Category:MediaWiki configuration settings#MaxTemplateDepthCategory:MediaWiki configuration settings introduced in version 1.12.0#MaxTemplateDepthCategory:MediaWiki configuration settings still in use#MaxTemplateDepthCategory:Parser variables#MaxTemplateDepth
Parser: $wgMaxTemplateDepth
Maximum recursion depth for templates within templates.
Introduced in version:1.12.0 (r29569)
Removed in version:Still in use
Allowed values:(integer)
Default value:100 (1.38+)
40 (1.12-1.37)

Details

Maximum recursion depth for templates within templates. The current parser adds two levels to the PHP call stack for each template, and xdebug limits the call stack to 256 by default. So this should hopefully stop the parser before it hits the xdebug limit.

See also

Category:MediaWiki configuration settings Category:MediaWiki configuration settings introduced in version 1.12.0 Category:MediaWiki configuration settings still in use Category:Parser variables