Difference between revisions of "Template:Type"
From Kerbal Space Program Wiki
(+documention; !corrected parameter numbering;) |
m (+use Template:Type/Text;) |
||
Line 12: | Line 12: | ||
|long | |long | ||
|Int16 | |Int16 | ||
− | |short= | + | |short={{Type/Text|{{{1|{{{type|}}}}}}|{{{2|{{{desc|}}}}}}}} |
− | |#default=[[API:{{{1|{{{type|}}}}}}| | + | |#default=[[API:{{{1|{{{type|}}}}}}|{{Type/Text|{{{1|{{{type|}}}}}}|{{{2|{{{desc|}}}}}}}}]] |
}}</includeonly><noinclude>Creates an API link. If won't link to the following values: | }}</includeonly><noinclude>Creates an API link. If won't link to the following values: | ||
*int | *int | ||
Line 34: | Line 34: | ||
! Result | ! Result | ||
|- | |- | ||
− | | <pre>{{Type | + | | <pre>{{Type|Vessel}}</pre> || {{Type|Vessel}} |
|- | |- | ||
− | | <pre>{{Type | + | | <pre>{{Type|Vessel|A vessel}}</pre> || {{Type|Vessel|A vessel}} |
|- | |- | ||
− | | <pre>{{Type | + | | <pre>{{Type|type=Vessel|desc=A vessel}}</pre> || {{Type|type=Vessel|desc=A vessel}} |
|} | |} | ||
[[Category:Templates|Type]] | [[Category:Templates|Type]] | ||
[[Category:API Templates|Type]]</noinclude> | [[Category:API Templates|Type]]</noinclude> |
Revision as of 23:18, 24 April 2013
Creates an API link. If won't link to the following values:
- int
- uint
- double
- float
- string
- String
- byte
- Byte
- Int32
- Int64
- long
- Int16
- short
Examples
Code | Result |
---|---|
{{Type|Vessel}} |
Vessel |
{{Type|Vessel|A vessel}} |
Vessel |
{{Type|type=Vessel|desc=A vessel}} |
Vessel |