You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or
API help for more information.
<?xml version="1.0"?>
<api>
<warnings>
<paraminfo xml:space="preserve">Unrecognized value for parameter 'querymodules': allpages%7Csiteinfo</paraminfo>
</warnings>
<paraminfo>
<modules>
<module classname="ApiParse" description="Parses content and returns parser output. See the various prop-Modules of action=query to get information from the currentversion of a page. There are several ways to specify the text to parse: 1) Specify a page or revision, using page, pageid, or oldid. 2) Specify content explicitly, using text, title, and contentmodel. 3) Specify only a summary to parse. prop should be given an empty value." examples="Parse a page api.php?action=parse&page=Project:Sandbox Parse wikitext api.php?action=parse&text={{Project:Sandbox}}&contentmodel=wikitext Parse wikitext, specifying the page title api.php?action=parse&text={{PAGENAME}}&title=Test Parse a summary api.php?action=parse&summary=Some+[[link]]&prop=" version="" prefix="" readrights="" name="parse">
<helpurls>
<helpurl>https://www.mediawiki.org/wiki/API:Parsing_wikitext#parse</helpurl>
</helpurls>
<allexamples>
<example description="Parse a page" xml:space="preserve">api.php?action=parse&page=Project:Sandbox</example>
<example description="Parse wikitext" xml:space="preserve">api.php?action=parse&text={{Project:Sandbox}}&contentmodel=wikitext</example>
<example description="Parse wikitext, specifying the page title" xml:space="preserve">api.php?action=parse&text={{PAGENAME}}&title=Test</example>
<example description="Parse a summary" xml:space="preserve">api.php?action=parse&summary=Some+[[link]]&prop=</example>
</allexamples>
<parameters>
<param name="title" description="Title of page the text belongs to. If omitted, contentmodel must be specified, and "API" will be used as the title" type="string" />
<param name="text" description="Text to parse. Use title or contentmodel to control the content model" type="string" />
<param name="summary" description="Summary to parse" type="string" />
<param name="page" description="Parse the content of this page. Cannot be used together with text and title" type="string" />
<param name="pageid" description="Parse the content of this page. Overrides page" type="integer" />
<param name="redirects" description="If the page or the pageid parameter is set to a redirect, resolve it" default="false" type="boolean" />
<param name="oldid" description="Parse the content of this revision. Overrides page and pageid" type="integer" />
<param name="prop" description="Which pieces of information to get text - Gives the parsed text of the wikitext langlinks - Gives the language links in the parsed wikitext categories - Gives the categories in the parsed wikitext categorieshtml - Gives the HTML version of the categories languageshtml - DEPRECATED. Will be removed in MediaWiki 1.24. Gives the HTML version of the language links links - Gives the internal links in the parsed wikitext templates - Gives the templates in the parsed wikitext images - Gives the images in the parsed wikitext externallinks - Gives the external links in the parsed wikitext sections - Gives the sections in the parsed wikitext revid - Adds the revision ID of the parsed page displaytitle - Adds the title of the parsed wikitext headitems - Gives items to put in the <head> of the page headhtml - Gives parsed <head> of the page iwlinks - Gives interwiki links in the parsed wikitext wikitext - Gives the original wikitext that was parsed properties - Gives various properties defined in the parsed wikitext limitreportdata - Gives the limit report in a structured way. Gives no data, when disablepp is set. limitreporthtml - Gives the HTML version of the limit report. Gives no data, when disablepp is set." default="text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties" multi="" limit="50" lowlimit="50" highlimit="500">
<type>
<t>text</t>
<t>langlinks</t>
<t>languageshtml</t>
<t>categories</t>
<t>categorieshtml</t>
<t>links</t>
<t>templates</t>
<t>images</t>
<t>externallinks</t>
<t>sections</t>
<t>revid</t>
<t>displaytitle</t>
<t>headitems</t>
<t>headhtml</t>
<t>iwlinks</t>
<t>wikitext</t>
<t>properties</t>
<t>limitreportdata</t>
<t>limitreporthtml</t>
</type>
</param>
<param name="pst" description="Do a pre-save transform on the input before parsing it Only valid when used with text" default="false" type="boolean" />
<param name="onlypst" description="Do a pre-save transform (PST) on the input, but don't parse it Returns the same wikitext, after a PST has been applied. Only valid when used with text" default="false" type="boolean" />
<param name="effectivelanglinks" description="Includes language links supplied by extensions (for use with prop=langlinks|languageshtml)" default="false" type="boolean" />
<param name="uselang" description="Which language to parse the request in" type="string" />
<param name="section" description="Only retrieve the content of this section number" type="string" />
<param name="disablepp" description="Disable the PP Report from the parser output" default="false" type="boolean" />
<param name="generatexml" description="Generate XML parse tree (requires contentmodel=wikitext)" default="false" type="boolean" />
<param name="preview" description="Parse in preview mode" default="false" type="boolean" />
<param name="sectionpreview" description="Parse in section preview mode (enables preview mode too)" default="false" type="boolean" />
<param name="disabletoc" description="Disable table of contents in output" default="false" type="boolean" />
<param name="contentformat" description="Content serialization format used for the input text Only valid when used with text">
<type>
<t>text/x-wiki</t>
<t>text/javascript</t>
<t>text/css</t>
<t>text/plain</t>
</type>
</param>
<param name="contentmodel" description="Content model of the input text. If omitted, title must be specified, and default will be the model of the specified title Only valid when used with text">
<type>
<t>wikitext</t>
<t>javascript</t>
<t>css</t>
<t>text</t>
</type>
</param>
</parameters>
<errors>
<error code="readapidenied" info="You need read permission to use this module" />
<error code="params" info="The page parameter cannot be used together with the text and title parameters" />
<error code="missingrev" info="There is no revision ID oldid" />
<error code="permissiondenied" info="You don't have permission to view deleted revisions" />
<error code="missingtitle" info="The page you specified doesn't exist" />
<error code="nosuchsection" info="There is no section sectionnumber in page" />
<error code="nosuchpageid" info="There is no page with ID $1" />
<error code="invalidtitle" info="Bad title "title"" />
<error code="parseerror" info="Failed to parse the given text." />
<error code="notwikitext" info="The requested operation is only supported on wikitext content." />
</errors>
</module>
</modules>
<querymodules />
</paraminfo>
</api>