Manual:Preprocessor DOM.php

Description
This file contains functions for recursively expanding variables, parser functions, templates, and template parameters.

As an intermediate step it creates an XML DOM representation of the wikitext (see also 1>Special:MyLanguage/Help:ExpandTemplates#XML parse tree|Help:ExpandTemplates#XML parse tree).

Functions called from   include:

It performs double-brace expansion, calling   in  , and triple-brace expansion, calling   in  .
 * - preprocesses wikitext and returns a document tree, also called DOM tree. It calls:
 * - parses the wikitext with respect to double braces  , triple braces   , and double rectangular brackets  ... </>, and also finds the pipes <tvar|4>|</> and the equals signs <tvar|5>=</>.  The result is the DOM tree.
 * - produces the expanded wikitext from the DOM tree.

External link

 *  The MediaWiki parser, uncovered