Manual:$wgMaxPPExpandDepth

Details
Stack depth limit for expansion with the preprocessor.