jenkins-bot has submitted this change and it was merged. Change subject: Better pageprops API example ......................................................................
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 --- M includes/api/ApiQueryPageProps.php M includes/api/i18n/en.json 2 files changed, 2 insertions(+), 2 deletions(-) Approvals: Anomie: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 269afb1..8c89a60 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -136,7 +136,7 @@ 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 9d0663c..a6d9d61 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 <kbd>Category:Foo</kbd>.", + "apihelp-query+pageprops-example-simple": "Get properties for the pages <kbd>Main Page</kbd> and <kbd>MediaWiki</kbd>.", "apihelp-query+pageswithprop-description": "List all pages using a given page property.", "apihelp-query+pageswithprop-param-propname": "Page prop for which to enumerate pages.", -- To view, visit https://gerrit.wikimedia.org/r/202374 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibad1e912bd2fa0f0f627025a60ec137f43a2abe4 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Spage <sp...@wikimedia.org> Gerrit-Reviewer: Anomie <bjor...@wikimedia.org> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: Spage <sp...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits