Difference between revisions of "Template:ApiParam"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<tvar|1>" to "")
m (Text replacement - "<tvar|2>" to "")
 
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 {{{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}}}

Latest revision as of 19:19, 21 December 2019


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