Difference between revisions of "Template:Class"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+clear;)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== {{{name}}} {{lang|en=Class}} ==
+
<includeonly>== {{{name}}} {{lang|en=Class}} ==
{{#if: {{{inherits|}}}|{{(!}} class="wikitable" style="float:right;"
+
{{#if: {{{inherits|}}}{{{implements|}}}|{{(!}} class="wikitable" style="float:right;"
 
! Inherits
 
! Inherits
 +
! Implements
 
{{!}}-
 
{{!}}-
{{!}} {{{inherits}}}
+
{{!}} {{{inherits|}}}
 +
{{!}} {{{implements|}}}
 
{{!)}}}}
 
{{!)}}}}
 
{{{summary|{{Stub}}  
 
{{{summary|{{Stub}}  
Line 10: Line 12:
 
}}
 
}}
 
}}}
 
}}}
{{clear}}<noinclude>
+
{{clear}}</includeonly><noinclude>
 
{{doc start}}
 
{{doc start}}
 
This template is used to document classes in the API namespace.
 
This template is used to document classes in the API namespace.
  
 
== Parameters ==
 
== Parameters ==
{{Parameter Table|name=text|parameters=
+
{{Parameter table|name=text|parameters=
{{ParameterRow|name|Name of class}}
+
{{Parameter row|name|Name of class}}
{{ParameterRow|inherits|Inheritance values. Already in a table if set.|Not set}}
+
{{Parameter row|inherits|Inheritance values. Already in a table if set.|Not set}}
{{ParameterRow|summary|Summary text.|{{Tl|Stub}} and “No summary has been written for this class.”}}
+
{{Parameter row|implements|Interface implementation. Already in a table if set.|Not set}}
 +
{{Parameter row|summary|Summary text.|{{Tl|Stub}} and “No summary has been written for this class.”}}
 
}}
 
}}
  
Line 25: Line 28:
  
 
{{tlx|class|2=name=ClassName{{!}}inherits=Inheritance}}
 
{{tlx|class|2=name=ClassName{{!}}inherits=Inheritance}}
 +
 +
{{tlx|class|2=name=ClassName{{!}}inherits=Inheritance{{!}}implements=IOne, ITwo}}
 +
 +
{{class|name=ClassName}}
 +
 +
{{class|name=ClassName|inherits=Inheritance}}
 +
 +
{{class|name=ClassName|inherits=Inheritance|implements=IOne, ITwo}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:API Templates]]
 
[[Category:API Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:48, 16 October 2015

Documentation for Class

This template is used to document classes in the API namespace.

Parameters

Name Optional Description Default
name No Name of class
inherits Yes Inheritance values. Already in a table if set. Not set
implements Yes Interface implementation. Already in a table if set. Not set
summary Yes Summary text. {{Stub}} and “No summary has been written for this class.”

Usage Examples

{{class|name=ClassName}}

{{class|name=ClassName|inherits=Inheritance}}

{{class|name=ClassName|inherits=Inheritance|implements=IOne, ITwo}}

ClassName Class

This article is a stub. You can help KSP Wiki by expanding it.

No summary has been written for this class.

ClassName Class

Inherits Implements
Inheritance
This article is a stub. You can help KSP Wiki by expanding it.

No summary has been written for this class.

ClassName Class

Inherits Implements
Inheritance IOne, ITwo
This article is a stub. You can help KSP Wiki by expanding it.

No summary has been written for this class.