API: (bug 17873) Mention the 'g' prefix for generator parameters in the api.php help
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 9 Mar 2009 10:36:48 +0000 (10:36 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 9 Mar 2009 10:36:48 +0000 (10:36 +0000)
includes/api/ApiQuery.php

index 75792ff..c969911 100644 (file)
@@ -553,7 +553,8 @@ class ApiQuery extends ApiBase {
                        'prop' => 'Which properties to get for the titles/revisions/pageids',
                        'list' => 'Which lists to get',
                        'meta' => 'Which meta data to get about the site',
-                       'generator' => 'Use the output of a list as the input for other prop/list/meta items',
+                       'generator' => array('Use the output of a list as the input for other prop/list/meta items',
+                                       'NOTE: generator parameter names must be prefixed with a \'g\', see examples.'),
                        'redirects' => 'Automatically resolve redirects',
                        'indexpageids' => 'Include an additional pageids section listing all returned page IDs.',
                        'export' => 'Export the current revisions of all given or generated pages',
@@ -571,7 +572,8 @@ class ApiQuery extends ApiBase {
 
        protected function getExamples() {
                return array (
-                       'api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment'
+                       'api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment',
+                       'api.php?action=query&generator=allpages&gapprefix=API/&prop=revisions',
                );
        }