I am in the process of upgrading my Mediawiki parser for TomeRaider files, adding template processing, and I also noticed how complicated templates can becomeHere is an example: For article fr.wikipedia.org/wiki/Paris the following templates were executed:#expr: 294 #if: 100 #ifexpr: 350After disabling geohack code, which yields two numbers only (longitude and latitude):#expr: 2 #if: 88 #ifexpr: 2Also what happens when a switch stateent has hundreds of clauses, each with new sub-templates: are these all resolved before resolving the switch? Just wondering.Erik Zachte-----------------Domas:We had some slowness today, where after some temporary issue cluster ended up spending >50% of it's time working on Spanish wikipedia template. We nuked the template (es.wikipedia site was also turned off at some moment), so now it is all up and running.
The template was used for adding a single line of text, though it took 20 seconds to render. ;-)
We'll probably have to do something about that.