Difference between revisions of "Template:Class"
From Kerbal Space Program Wiki
(Added "implements" parameter to template) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 17: | Line 17: | ||
== Parameters == | == Parameters == | ||
− | {{Parameter | + | {{Parameter table|name=text|parameters= |
− | {{Parameter | + | {{Parameter row|name|Name of class}} |
− | {{Parameter | + | {{Parameter row|inherits|Inheritance values. Already in a table if set.|Not set}} |
− | {{Parameter | + | {{Parameter row|implements|Interface implementation. Already in a table if set.|Not set}} |
− | {{Parameter | + | {{Parameter row|summary|Summary text.|{{Tl|Stub}} and “No summary has been written for this class.”}} |
}} | }} | ||
Line 30: | Line 30: | ||
{{tlx|class|2=name=ClassName{{!}}inherits=Inheritance{{!}}implements=IOne, ITwo}} | {{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
Contents
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
No summary has been written for this class.
ClassName Class
Inherits | Implements |
---|---|
Inheritance |
No summary has been written for this class.
ClassName Class
Inherits | Implements |
---|---|
Inheritance | IOne, ITwo |
No summary has been written for this class.