Difference between revisions of "Template:ApiParam"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<!--T:(.*)-->" to "")
m (Text replacement - "<tvar|2>" to "")
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
</noinclude><includeonly>{{#switch:<!--
 
</noinclude><includeonly>{{#switch:<!--
 
-->| =<!--
 
-->| =<!--
--><code {{#if:{{{required|}}}|style="font-weight:bold"}} {{#if:{{{id|{{{1|{{{name|}}}}}}}}}|id="{{{id|{{{1|{{{name}}}}}}}}}"}}>{{{1|{{{name|}}}}}}</code>{{#if:{{{2|{{{description|}}}}}}|&#58; {{{2|{{{description|}}}}}}}}{{#if:{{{maxallowed|}}}|&#32; No more than <tvar|1>{{{maxallowed}}}</> (<tvar|2>{{#if:{{{maxallowedbot|}}}|{{{maxallowedbot}}}|{{#switch:{{{maxallowed}}}|50=500|500=5000}}}}</> for bots) allowed.}}{{#if:{{{type|}}}|&#32;''' Type:''' {{{type}}}}}{{#if:{{{values|}}}|&#32; Possible values: {{{values}}}}}{{#if:{{{default|}}}|&#32;( Default: {{{default}}})}}{{#if:{{{version|}}}|&#32;{{MW version-inline|{{#switch:{{#if:{{{removed|}}}|R}}
+
--><code {{#if:{{{required|}}}|style="font-weight:bold"}} {{#if:{{{id|{{{1|{{{name|}}}}}}}}}|id="{{{id|{{{1|{{{name}}}}}}}}}"}}>{{{1|{{{name|}}}}}}</code>{{#if:{{{2|{{{description|}}}}}}|&#58; {{{2|{{{description|}}}}}}}}{{#if:{{{maxallowed|}}}|&#32; No more than {{{maxallowed}}} ({{#if:{{{maxallowedbot|}}}|{{{maxallowedbot}}}|{{#switch:{{{maxallowed}}}|50=500|500=5000}}}} for bots) allowed.}}{{#if:{{{type|}}}|&#32;''' Type:''' {{{type}}}}}{{#if:{{{values|}}}|&#32; Possible values: {{{values}}}}}{{#if:{{{default|}}}|&#32;( Default: {{{default}}})}}{{#if:{{{version|}}}|&#32;{{MW version-inline|{{#switch:{{#if:{{{removed|}}}|R}}
 
|={{{version}}}+
 
|={{{version}}}+
 
|R={{{version}}}-{{{removed}}}
 
|R={{{version}}}-{{{removed}}}
Line 12: Line 12:
 
{{Documentation|content=
 
{{Documentation|content=
  
: ''Consider replacing invocations of this template with Special:ApiHelp transclusion (<tvar|task>[[phab:T89318]]</>), since filling in this template redundantly repeats API parameter documentation in source code.''
+
: ''Consider replacing invocations of this template with Special:ApiHelp transclusion (<tvar|task>[[phab:T89318]]), since filling in this template redundantly repeats API parameter documentation in source code.''
  
  
Line 71: Line 71:
 
== See also ==  
 
== See also ==  
  
* {{tl|Parameter}} &ndash;  older version of <tvar|1>ApiParam</>
+
* {{tl|Parameter}} &ndash;  older version of ApiParam
  
 
}}
 
}}
[[Category:Typing-aid templates{{#translation:}}]]
+
[[Category:Typing-aid templates]]
[[Category:Formatting templates{{#translation:}}]]
+
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:19, 21 December 2019


Template documentation
Consider replacing invocations of this template with Special:ApiHelp transclusion (<tvar