Difference between revisions of "Template:Api help"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
Joelmartin (talk | contribs) m (Text replacement - "</translate>" to "") |
||
Line 2: | Line 2: | ||
<languages/> | <languages/> | ||
</noinclude> | </noinclude> | ||
− | {{#switch: | + | {{#switch: |
| = | | = | ||
<hr/>{{ombox | <hr/>{{ombox | ||
|image=[[File:Tools clipart.png|20px]] | |image=[[File:Tools clipart.png|20px]] | ||
− | | text=<!--T:1--> The following documentation is the output of <tvar|special>[[Special:ApiHelp/{{{1|}}}]]</>, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org). | + | | text=<!--T:1--> The following documentation is the output of <tvar|special>[[Special:ApiHelp/{{{1|}}}]]</>, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org). |
}} | }} | ||
<includeonly><!-- | <includeonly><!-- | ||
Line 22: | Line 22: | ||
== Usage == <!--T:3--> | == Usage == <!--T:3--> | ||
− | + | ||
; 1 | ; 1 | ||
− | : <!--T:4--> module name. No leading space. You can reference query submodules by ''module''+''submodule'' | + | : <!--T:4--> module name. No leading space. You can reference query submodules by ''module''+''submodule'' |
== Sample == <!--T:5--> | == Sample == <!--T:5--> | ||
− | + | ||
<code><nowiki>{{Api help|query+extracts}}</nowiki></code> produces | <code><nowiki>{{Api help|query+extracts}}</nowiki></code> produces | ||
---- | ---- | ||
{{Api help|query+extracts}} | {{Api help|query+extracts}} | ||
---- | ---- | ||
− | {{Note|1=<!--T:6--> You can't transclude the help of multiple API modules at once | + | {{Note|1=<!--T:6--> You can't transclude the help of multiple API modules at once}} |
}} | }} |
Revision as of 04:17, 21 December 2019
![]() | The following documentation is the output of <tvar |

This transcludes Special:ApiHelp/module-name and explains what's going on.
Usage
- 1
- module name. No leading space. You can reference query submodules by module+submodule
Sample
{{Api help|query+extracts}}
produces
![]() | The following documentation is the output of <tvar |
Module "query+extracts" not found.
You can't transclude the help of multiple API modules at once