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:


 * - 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 | and the equals signs =.  The result is the DOM tree.
 * - produces the expanded wikitext from the DOM tree. It performs double-brace expansion, calling   in  </>, and triple-brace expansion, calling <tvar|3> </> in <tvar|4> </>.

External link

 *  The MediaWiki parser, uncovered