From 87496302f5afbb527b4d6ed3b25ef7ca34503efe Mon Sep 17 00:00:00 2001 From: S Page Date: Wed, 4 Nov 2015 18:38:28 -0800 Subject: [PATCH] Add example of help for all query submodules It's useful and shows difference from recursivesubmodules. Change-Id: I85cb5c89fde0063bbd9dfc86d00c14553035f053 --- includes/api/ApiHelp.php | 2 ++ includes/api/i18n/en.json | 1 + includes/api/i18n/qqq.json | 1 + 3 files changed, 4 insertions(+) diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index c33b27bc1b..db7c149575 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -759,6 +759,8 @@ class ApiHelp extends ApiBase { return array( 'action=help' => 'apihelp-help-example-main', + 'action=help&modules=query&submodules=1' + => 'apihelp-help-example-submodules', 'action=help&recursivesubmodules=1' => 'apihelp-help-example-recursive', 'action=help&modules=help' diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index 450d83ab92..d4e5303569 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -191,6 +191,7 @@ "apihelp-help-param-wrap": "Wrap the output in a standard API response structure.", "apihelp-help-param-toc": "Include a table of contents in the HTML output.", "apihelp-help-example-main": "Help for the main module.", + "apihelp-help-example-submodules": "Help for action=query and all its submodules.", "apihelp-help-example-recursive": "All help in one page.", "apihelp-help-example-help": "Help for the help module itself.", "apihelp-help-example-query": "Help for two query submodules.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 947c89b462..05b19f1759 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -184,6 +184,7 @@ "apihelp-help-param-wrap": "{{doc-apihelp-param|help|wrap}}", "apihelp-help-param-toc": "{{doc-apihelp-param|help|toc}}", "apihelp-help-example-main": "{{doc-apihelp-example|help}}", + "apihelp-help-example-submodules": "{{doc-apihelp-example|help}}", "apihelp-help-example-recursive": "{{doc-apihelp-example|help}}", "apihelp-help-example-help": "{{doc-apihelp-example|help}}", "apihelp-help-example-query": "{{doc-apihelp-example|help}}", -- 2.20.1