Thread:Project:Support desk/Wikitemplates interpretation/visualisation/reply (4)

The parser is recursive. It just expands each template into its respective wikitext, then expands any templates in said wikitext and so on, and at the end does the proper parsing which turns the wikitext into HTML. The parser doesn't need to know anything about any template, just how to parse standard wikitext which you can use anywhere.