From: S Page Date: Tue, 7 Apr 2015 10:31:43 +0000 (-0700) Subject: Better pageprops API example X-Git-Tag: 1.31.0-rc.0~11604^2 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=3cdc12c6097527d2e8d3dd7866c2ebc802d0643b;p=lhc%2Fweb%2Fwiklou.git Better pageprops API example Change example query from non-existent Category:Foo to querying Main Page and MediaWiki, which exist on both enwiki and mediawiki.org (and have really interesting info on enwiki). To test, visit api.php?action=help&modules=query+pageprops and try the example URL. Change-Id: Ibad1e912bd2fa0f0f627025a60ec137f43a2abe4 --- diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 269afb147c..8c89a60ede 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -136,7 +136,7 @@ class ApiQueryPageProps extends ApiQueryBase { protected function getExamplesMessages() { return array( - 'action=query&prop=pageprops&titles=Category:Foo' + 'action=query&prop=pageprops&titles=Main%20Page|MediaWiki' => 'apihelp-query+pageprops-example-simple', ); } diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index 9d0663c448..a6d9d61a43 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -777,7 +777,7 @@ "apihelp-query+pageprops-description": "Get various properties defined in the page content.", "apihelp-query+pageprops-param-prop": "Only list these props. Useful for checking whether a certain page uses a certain page prop.", - "apihelp-query+pageprops-example-simple": "Get properties for Category:Foo.", + "apihelp-query+pageprops-example-simple": "Get properties for the pages Main Page and MediaWiki.", "apihelp-query+pageswithprop-description": "List all pages using a given page property.", "apihelp-query+pageswithprop-param-propname": "Page prop for which to enumerate pages.",