From 185da8808ea41cc8a218a55e5f8350f4d949fab8 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 13 Oct 2012 20:01:38 +0200 Subject: [PATCH] (bug 40574) hints for generatexml param in api modules Change-Id: I782d64eed5faac6836a57463e195e64c4314199c --- includes/api/ApiParse.php | 2 +- includes/api/ApiQueryRevisions.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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', -- 2.20.1