Difference between revisions of "Template:Arg"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>{{#switch:{{{1|{{{type|}}}}}}
 
<includeonly>{{#switch:{{{1|{{{type|}}}}}}
|int,uint,double,string,String,byte,Byte,Int32,Int64,long,Int16,short,int[],uint[],double[],string[],String[],byte[],Byte[],Int32[],Int64[],long[],Int16[],short[]=<span style="color:green;" title="{{{3|{{{desc|}}}}}}">{{{1|{{{type|}}}}}}</span>
+
|int,uint,double,string,String,byte,Byte,Int32,Int64,long,Int16,short=<span style="color:green;" title="{{{3|{{{desc|}}}}}}">{{{1|{{{type|}}}}}}</span>
 
|#default=[[API:{{{1|{{{type|}}}}}}|<span style="color:green;" title="{{{3|{{{desc|}}}}}}">{{{1|{{{type|}}}}}}</span>]]
 
|#default=[[API:{{{1|{{{type|}}}}}}|<span style="color:green;" title="{{{3|{{{desc|}}}}}}">{{{1|{{{type|}}}}}}</span>]]
 
}}&nbsp;{{{2|{{{name|}}}}}}</includeonly><noinclude>
 
}}&nbsp;{{{2|{{{name|}}}}}}</includeonly><noinclude>

Revision as of 19:10, 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