jenkins-bot has submitted this change and it was merged. Change subject: Add wbsearchentities example with continue param ......................................................................
Add wbsearchentities example with continue param Bug: T141620 Change-Id: I6e2b0f2aa21dfdbd98012f5a2949b3b4dba146ed --- M repo/i18n/en.json M repo/i18n/qqq.json M repo/includes/Api/SearchEntities.php 3 files changed, 4 insertions(+), 0 deletions(-) Approvals: Hoo man: Looks good to me, approved Thiemo Mättig (WMDE): Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/repo/i18n/en.json b/repo/i18n/en.json index 471d90d..1ee99c8 100644 --- a/repo/i18n/en.json +++ b/repo/i18n/en.json @@ -521,6 +521,7 @@ "apihelp-wbsearchentities-example-1": "Search for \"abc\" in English language, with defaults for type and limit", "apihelp-wbsearchentities-example-2": "Search for \"abc\" in English language with a limit of 50", "apihelp-wbsearchentities-example-3": "Search for \"alphabet\" in English language for type property", + "apihelp-wbsearchentities-example-4": "Search for \"abc\" in English language with a limit of 2 and an offset of 2", "apihelp-query+wbsearch-description": "Searches for entities using labels and aliases.\nThis can be used as a generator for other queries.\nReturns the matched term that should be displayed.", "apihelp-query+wbsearch-param-search": "Search for this text.", "apihelp-query+wbsearch-param-language": "Search in this language.", diff --git a/repo/i18n/qqq.json b/repo/i18n/qqq.json index b2c3cfb..2895782 100644 --- a/repo/i18n/qqq.json +++ b/repo/i18n/qqq.json @@ -551,6 +551,7 @@ "apihelp-wbsearchentities-example-1": "{{doc-apihelp-example|wbsearchentities}}", "apihelp-wbsearchentities-example-2": "{{doc-apihelp-example|wbsearchentities}}", "apihelp-wbsearchentities-example-3": "{{doc-apihelp-example|wbsearchentities}}", + "apihelp-wbsearchentities-example-4": "{{doc-apihelp-example|wbsearchentities}}", "apihelp-query+wbsearch-description": "{{doc-apihelp-description|query+wbsearch}}", "apihelp-query+wbsearch-param-search": "{{doc-apihelp-param|query+wbsearch|search}}", "apihelp-query+wbsearch-param-language": "{{doc-apihelp-param|query+wbsearch|language}}", diff --git a/repo/includes/Api/SearchEntities.php b/repo/includes/Api/SearchEntities.php index 756374b..ec74262 100644 --- a/repo/includes/Api/SearchEntities.php +++ b/repo/includes/Api/SearchEntities.php @@ -288,6 +288,8 @@ 'apihelp-wbsearchentities-example-1', 'action=wbsearchentities&search=abc&language=en&limit=50' => 'apihelp-wbsearchentities-example-2', + 'action=wbsearchentities&search=abc&language=en&limit=2&continue=2' => + 'apihelp-wbsearchentities-example-4', 'action=wbsearchentities&search=alphabet&language=en&type=property' => 'apihelp-wbsearchentities-example-3', ); -- To view, visit https://gerrit.wikimedia.org/r/302138 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6e2b0f2aa21dfdbd98012f5a2949b3b4dba146ed Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Addshore <addshorew...@gmail.com> Gerrit-Reviewer: Addshore <addshorew...@gmail.com> Gerrit-Reviewer: Aude <aude.w...@gmail.com> Gerrit-Reviewer: Hoo man <h...@online.de> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: Thiemo Mättig (WMDE) <thiemo.maet...@wikimedia.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits