Difference between revisions of "Template:Arg"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#switch:{{{1|{{{type|}}}}}} |int,uint,double,string,String,byte,Byte,Int32,Int64,long,Int16,short |int[],uint[],double[],string[],String[],byte[],Byte[],Int32[]...")
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|{{{type|}}}}}}
+
{{descr-wrap
|int,uint,double,string,String,byte,Byte,Int32,Int64,long,Int16,short
+
|towrap={{type|{{{1|{{{type|}}}}}}}}{{#if:{{{array|}}}|{{{array}}}}}&nbsp;{{{2|{{{name|}}}}}}{{#if:{{{default|}}}|&nbsp;=&nbsp;{{{default}}}}}
|int[],uint[],double[],string[],String[],byte[],Byte[],Int32[],Int64[],long[],Int16[],short[]=<span style="color:green;" title="{{{3|{{{desc|}}}}}}">{{{1|{{{type|}}}}}}</span>
+
|desc={{{3|{{{desc|}}}}}}
|#default=[[API:{{{1|{{{type|}}}}}}|<span style="color:green;" title="{{{3|{{{desc|}}}}}}">{{{1|{{{type|}}}}}}</span>]]
+
}}<noinclude>
}}
 
{{{2|{{{name|}}}}}}</includeonly><noinclude>
 
 
{{doc start}}
 
{{doc start}}
  
Line 16: Line 14:
 
| {{tlx|arg|Type|name|Description}}  
 
| {{tlx|arg|Type|name|Description}}  
 
| {{arg|Type|name|Description}}
 
| {{arg|Type|name|Description}}
 +
|-
 +
| {{tlx|arg|2=type=Type|3=name=name|4=desc=Description}}
 +
| {{arg|Type|name|Description}}
 +
|-
 +
| {{tlx|arg|Type|name|Description|5=default=null}}
 +
| {{arg|Type|name|Description|default=null}}
 +
|-
 +
| {{tlx|arg|Type|name|Description|5=array=[]}}
 +
| {{arg|Type|name|Description|array=[]}}
 
|}
 
|}
 +
 +
[[Category:API Templates|Arg]]

Latest revision as of 20:28, 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