API:Parsing wikitext

Returns parsed wikitext. Partly overlaps with the functionality provided by Expandtemplates. Retrieving just the raw source wikitext can be done through prop=revisions. Extension:TextExtracts provides additional APIs.

Parameters
The  parameter from the main module is also useful with Parse to localize various items. Please see that page for details. Note: MediaWiki wikis include several other parameters for this module which are added by extensions. They are not documented here.



Possible errors
is returned only for syntactically invalid page titles (eg. empty). Trying to fetching a missing page will return the rendered HTML of the "page missing" notice, not an error. However, you can check the  attribute of, which will always be   for missing pages.