Difference between revisions of "Template:Api help"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "</>" to "")
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<languages/>
+
 
 
</noinclude>
 
</noinclude>
{{#switch:<translate></translate>
+
{{#switch:
 
| =
 
| =
 
<hr/>{{ombox
 
<hr/>{{ombox
 
|image=[[File:Tools clipart.png|20px]]
 
|image=[[File:Tools clipart.png|20px]]
| text=<translate><!--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= 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 17: Line 17:
 
{{Documentation|content=
 
{{Documentation|content=
  
<translate>
+
 
<!--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 ==  
</translate>
+
 
 
; 1
 
; 1
: <translate><!--T:4--> module name. No leading space. You can reference query submodules by ''module''+''submodule''</translate>
+
: module name. No leading space. You can reference query submodules by ''module''+''submodule''
 +
 
 +
 
 +
== Sample ==
  
<translate>
 
== 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=<translate><!--T:6--> You can't transclude the help of multiple API modules at once</translate>}}
+
{{Note|1= You can't transclude the help of multiple API modules at once}}
  
 
}}
 
}}
  
[[Category:API templates{{#translation:}}|{{PAGENAME}}]]
+
[[Category:API templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:40, 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