Difference between revisions of "Template:Api help"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<translate>" to "")
m (Text replacement - "</translate>" to "")
Line 2: Line 2:
 
<languages/>
 
<languages/>
 
</noinclude>
 
</noinclude>
{{#switch:</translate>
+
{{#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).</translate>
+
| 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-->
</translate>
+
 
 
; 1
 
; 1
: <!--T:4--> module name. No leading space. You can reference query submodules by ''module''+''submodule''</translate>
+
: <!--T:4--> module name. No leading space. You can reference query submodules by ''module''+''submodule''
  
  
 
== Sample == <!--T:5-->
 
== Sample == <!--T:5-->
</translate>
+
 
 
<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</translate>}}
+
{{Note|1=<!--T:6--> You can't transclude the help of multiple API modules at once}}
  
 
}}
 
}}

Revision as of 04:17, 21 December 2019



Template documentation

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



Module "query+extracts" not found.


You can't transclude the help of multiple API modules at once