Difference between revisions of "Template:Type"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';)
m (*renamed Parameter Table to Parameter table;)
Line 34: Line 34:
  
 
== Parameters ==
 
== Parameters ==
{{Parameter Table|name=text|parameters=
+
{{Parameter table|name=text|parameters=
 
{{Parameter row|1|name2=type|Type of the, links to an API page with this name}}
 
{{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>)}}
 
{{Parameter row|2|name2=desc|Description which shows as a tooltip.|The target page's name (<tt>API:{{{1}}}</tt>)}}

Revision as of 12:15, 19 December 2014

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

Name Optional Description Default
1 or type No Type of the, links to an API page with this name
2 or desc Yes Description which shows as a tooltip. The target page's name (API:{{{1}}})

Examples

Code Result
{{Type|Vessel}}
Vessel
{{Type|Vessel|A vessel}}
Vessel
{{Type|type=Vessel|desc=A vessel}}
Vessel