From: umherirrender Date: Sat, 13 Oct 2012 18:01:38 +0000 (+0200) Subject: (bug 40574) hints for generatexml param in api modules X-Git-Tag: 1.31.0-rc.0~21806 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=185da8808ea41cc8a218a55e5f8350f4d949fab8;p=lhc%2Fweb%2Fwiklou.git (bug 40574) hints for generatexml param in api modules Change-Id: I782d64eed5faac6836a57463e195e64c4314199c --- diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 2c8349f768..12c20fb596 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -633,7 +633,7 @@ class ApiParse extends ApiBase { 'uselang' => 'Which language to parse the request in', 'section' => 'Only retrieve the content of this section number', 'disablepp' => 'Disable the PP Report from the parser output', - 'generatexml' => 'Generate XML parse tree', + 'generatexml' => 'Generate XML parse tree (requires prop=wikitext)', 'contentformat' => 'Content serialization format used for the input text', 'contentmodel' => 'Content model of the new content', ); diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 881b79721b..5c3b33be7f 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -715,9 +715,10 @@ class ApiQueryRevisions extends ApiQueryBase { 'dir' => $this->getDirectionDescription( $p, ' (enum)' ), 'user' => 'Only include revisions made by user (enum)', 'excludeuser' => 'Exclude revisions made by user (enum)', - 'expandtemplates' => 'Expand templates in revision content', - 'generatexml' => 'Generate XML parse tree for revision content', - 'parse' => 'Parse revision content. For performance reasons if this option is used, rvlimit is enforced to 1.', + 'expandtemplates' => "Expand templates in revision content (requires {$p}prop=content)", + 'generatexml' => "Generate XML parse tree for revision content (requires {$p}prop=content)", + 'parse' => array( "Parse revision content (requires {$p}prop=content).", + 'For performance reasons if this option is used, rvlimit is enforced to 1.' ), 'section' => 'Only retrieve the content of this section number', 'token' => 'Which tokens to obtain for each revision', 'continue' => 'When more results are available, use this to continue',