Manual:Preprocessor DOM.php/pt-br
Este recurso foi removido completamente na versão 1.35. |
Arquivo MediaWiki: Preprocessor_DOM.php | |
---|---|
Local: | includes/parser/ |
Código fonte: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | Preprocessor_DOM |
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 Help:ExpandTemplates#XML parse tree).
Functions called from Parser.php
include:
function preprocessToObj
- preprocesses wikitext and returns a document tree, also called DOM tree. It calls:function preprocessToXml
- 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.
function expand
- produces the expanded wikitext from the DOM tree. It performs double-brace expansion, callingfunction braceSubstitution
inParser.php
, and triple-brace expansion, callingfunction argSubstitution
inParser.php
.