Difference between revisions of "Template:Api help"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "</translate>" to "")
m (Text replacement - "<!--T:(.*)-->" to "")
Line 6: Line 6:
 
<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= 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 18: Line 18:
  
  
<!--T:2-->
+
 
 
This transcludes Special:ApiHelp/''module-name'' and explains what's going on.
 
This transcludes Special:ApiHelp/''module-name'' and explains what's going on.
  
== Usage == <!--T:3-->
+
== Usage ==  
  
 
; 1
 
; 1
: <!--T:4--> module name. No leading space. You can reference query submodules by ''module''+''submodule''
+
: module name. No leading space. You can reference query submodules by ''module''+''submodule''
  
  
== Sample == <!--T:5-->
+
== Sample ==  
  
 
<code><nowiki>{{Api help|query+extracts}}</nowiki></code> produces
 
<code><nowiki>{{Api help|query+extracts}}</nowiki></code> produces
Line 33: Line 33:
 
{{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= You can't transclude the help of multiple API modules at once}}
  
 
}}
 
}}

Revision as of 14:34, 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