From 3cdc12c6097527d2e8d3dd7866c2ebc802d0643b Mon Sep 17 00:00:00 2001 From: S Page Date: Tue, 7 Apr 2015 03:31:43 -0700 Subject: 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 --- includes/api/ApiQueryPageProps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/api/ApiQueryPageProps.php') diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 269afb147c7b..8c89a60ede91 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', ); } -- cgit v1.2.3