MediaWiki
REL1_23
|
A special page that expands submitted templates, parser functions, and variables, allowing easier debugging of these. More...
Public Member Functions | |
__construct () | |
execute ($subpage) | |
Show the special page. | |
Public Attributes | |
const | MAX_INCLUDE_SIZE = 50000000 |
Protected Member Functions | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
Protected Attributes | |
boolean | $generateRawHtml |
whether or not to show the raw HTML code * | |
boolean | $generateXML |
whether or not to show the XML parse tree * | |
boolean | $removeComments |
whether or not to remove comments in the expanded wikitext * | |
boolean | $removeNowiki |
whether or not to remove <nowiki> tags in the expanded wikitext * | |
Private Member Functions | |
generateHtml (Title $title, $text) | |
Renders the supplied wikitext as html. | |
makeForm ($title, $input) | |
Generate a form allowing users to enter information. | |
makeOutput ($output, $heading= 'expand_templates_output') | |
Generate a nice little box with a heading for output. | |
showHtmlPreview (Title $title, $html, OutputPage $out) | |
Wraps the provided html code in a div and outputs it to the page. |
A special page that expands submitted templates, parser functions, and variables, allowing easier debugging of these.
Definition at line 30 of file SpecialExpandTemplates.php.
Definition at line 43 of file SpecialExpandTemplates.php.
SpecialExpandTemplates::execute | ( | $ | subpage | ) |
Show the special page.
Reimplemented from SpecialPage.
Definition at line 50 of file SpecialExpandTemplates.php.
References $options, $out, $output, $title, $wgParser, array(), generateHtml(), SpecialPage\getContext(), SpecialPage\getOutput(), SpecialPage\getPageTitle(), SpecialPage\getRequest(), global, makeForm(), makeOutput(), ParserOptions\newFromContext(), Title\newFromText(), SpecialPage\setHeaders(), showHtmlPreview(), and MWTidy\tidy().
SpecialExpandTemplates::generateHtml | ( | Title $ | title, |
$ | text | ||
) | [private] |
Renders the supplied wikitext as html.
Title | $title | |
string | $text |
Definition at line 223 of file SpecialExpandTemplates.php.
Referenced by execute().
SpecialExpandTemplates::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 252 of file SpecialExpandTemplates.php.
SpecialExpandTemplates::makeForm | ( | $ | title, |
$ | input | ||
) | [private] |
Generate a form allowing users to enter information.
string | $title | Value for context title field |
string | $input | Value for input textbox |
Definition at line 134 of file SpecialExpandTemplates.php.
Referenced by execute().
SpecialExpandTemplates::makeOutput | ( | $ | output, |
$ | heading = 'expand_templates_output' |
||
) | [private] |
Generate a nice little box with a heading for output.
string | $output | Wiki text output |
string | $heading |
Definition at line 203 of file SpecialExpandTemplates.php.
Referenced by execute().
SpecialExpandTemplates::showHtmlPreview | ( | Title $ | title, |
$ | html, | ||
OutputPage $ | out | ||
) | [private] |
Wraps the provided html code in a div and outputs it to the page.
Title | $title | |
string | $html | |
OutputPage | $out |
Definition at line 240 of file SpecialExpandTemplates.php.
Referenced by execute().
boolean SpecialExpandTemplates::$generateRawHtml [protected] |
whether or not to show the raw HTML code *
Definition at line 34 of file SpecialExpandTemplates.php.
boolean SpecialExpandTemplates::$generateXML [protected] |
whether or not to show the XML parse tree *
Definition at line 32 of file SpecialExpandTemplates.php.
boolean SpecialExpandTemplates::$removeComments [protected] |
whether or not to remove comments in the expanded wikitext *
Definition at line 36 of file SpecialExpandTemplates.php.
boolean SpecialExpandTemplates::$removeNowiki [protected] |
whether or not to remove <nowiki> tags in the expanded wikitext *
Definition at line 38 of file SpecialExpandTemplates.php.
const SpecialExpandTemplates::MAX_INCLUDE_SIZE = 50000000 |
Definition at line 41 of file SpecialExpandTemplates.php.