Manual:Preprocessor_DOM.php
Appearance
この機能は、バージョン MediaWiki 1.35 で完全に除去されました。 |
| MediaWiki ファイル: Preprocessor_DOM.php | |
|---|---|
| 場所: | includes/parser/ (1.46 以降は includes/Parser/) |
| ソース コード: | master • 1.45.3 • 1.44.5 • 1.43.8 |
| クラス: | Preprocessor_DOM |
説明
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).
Parser.php から呼び出される関数は以下を含みます:
function preprocessToObj- preprocesses wikitext and returns a document tree, also called DOM tree. 以下を呼び出します: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 =. 結果は DOM ツリーです。
function expand- produces the expanded wikitext from the DOM tree. It performs double-brace expansion, callingfunction braceSubstitutioninParser.php, and triple-brace expansion, callingfunction argSubstitutioninParser.php.
関連項目