Difference between revisions of "Template:Arg"
From Kerbal Space Program Wiki
Line 1: | Line 1: | ||
{{descr-wrap | {{descr-wrap | ||
− | |towrap={{type|{{{1|{{{type|}}}}}}}}{{#if:{{{array|}}}|{{{array}}}}} {{{2|{{{name|}}}}}}{{#if:{{{default|}}}| = {{{default}}}}} | + | |towrap={{type|{{{1|{{{type|}}}}}}}}{{#if:{{{array|}}}|{{{array}}}}} {{{2|{{{name|}}}}}}{{#if:{{{default|}}}|2= = {{{default}}}}} |
|desc={{{3|{{{desc|}}}}}} | |desc={{{3|{{{desc|}}}}}} | ||
}}<noinclude> | }}<noinclude> |
Revision as of 20:27, 12 October 2012
Documentation for Arg
Used in the API namespace for formatting property/method arguments.
Usage
Code | Result |
---|---|
{{arg|Type|name|Description}}
|
Type name |
{{arg|type=Type|name=name|desc=Description}}
|
Type name |
{{arg|Type|name|Description|default=null}}
|
Type name = null |
{{arg|Type|name|Description|array=[]}}
|
Type[] name |