Difference between revisions of "Template:Type"
From Kerbal Space Program Wiki
m (+use Template:Type/Text;) |
(+parameters; +link List;) |
||
Line 13: | Line 13: | ||
|Int16 | |Int16 | ||
|short={{Type/Text|{{{1|{{{type|}}}}}}|{{{2|{{{desc|}}}}}}}} | |short={{Type/Text|{{{1|{{{type|}}}}}}|{{{2|{{{desc|}}}}}}}} | ||
+ | |List={{Type/MSDN|{{{1|{{{type|}}}}}}|{{{2|{{{desc|}}}}}}|6sh2ey19.aspx}} | ||
|#default=[[API:{{{1|{{{type|}}}}}}|{{Type/Text|{{{1|{{{type|}}}}}}|{{{2|{{{desc|}}}}}}}}]] | |#default=[[API:{{{1|{{{type|}}}}}}|{{Type/Text|{{{1|{{{type|}}}}}}|{{{2|{{{desc|}}}}}}}}]] | ||
− | }}</includeonly><noinclude>Creates an API link. | + | }}</includeonly><noinclude>Creates an API link. The following values won't be linked: |
*int | *int | ||
*uint | *uint | ||
Line 28: | Line 29: | ||
*Int16 | *Int16 | ||
*short | *short | ||
+ | |||
+ | Those values will be linked to the MSDN: | ||
+ | * List | ||
+ | |||
+ | == Parameters == | ||
+ | {{Parameter Table|name=text|parameters= | ||
+ | {{Parameter Row|1|name2=type|Type of the, links to an API page with this name}} | ||
+ | {{Parameter Row|2|name2=desc|Description which shows as a tooltip.|The target page's name (<tt>API:{{{1}}}</tt>)}} | ||
+ | }} | ||
== Examples == | == Examples == | ||
Line 41: | Line 51: | ||
|} | |} | ||
− | [[Category:Templates | + | [[Category:Templates]] |
− | [[Category:API Templates | + | [[Category:API Templates]]</noinclude> |
Revision as of 16:22, 17 July 2013
Creates an API link. The following values won't be linked:
- int
- uint
- double
- float
- string
- String
- byte
- Byte
- Int32
- Int64
- long
- Int16
- short
Those values will be linked to the MSDN:
- List
Parameters
Examples
Code | Result |
---|---|
{{Type|Vessel}} |
Vessel |
{{Type|Vessel|A vessel}} |
Vessel |
{{Type|type=Vessel|desc=A vessel}} |
Vessel |