From: S Page Date: Thu, 5 Nov 2015 02:38:28 +0000 (-0800) Subject: Add example of help for all query submodules X-Git-Tag: 1.31.0-rc.0~9096^2 X-Git-Url: http://git.cyclocoop.org/%27.generer_url_ecrire%28%27admin_couteau_suisse%27%2C%27cmd=descrip&outil=boites_privees?a=commitdiff_plain;h=87496302f5afbb527b4d6ed3b25ef7ca34503efe;p=lhc%2Fweb%2Fwiklou.git Add example of help for all query submodules It's useful and shows difference from recursivesubmodules. Change-Id: I85cb5c89fde0063bbd9dfc86d00c14553035f053 --- 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}}",