Difference between revisions of "Template:Class"
From Kerbal Space Program Wiki
m (-don't include template, because it would add the page to the Stubs;) |
(Added "implements" parameter to template) |
||
Line 1: | Line 1: | ||
<includeonly>== {{{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 18: | Line 20: | ||
{{Parameter Row|name|Name of class}} | {{Parameter Row|name|Name of class}} | ||
{{Parameter Row|inherits|Inheritance values. Already in a table if set.|Not set}} | {{Parameter Row|inherits|Inheritance values. Already in a table if set.|Not set}} | ||
+ | {{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.”}} | {{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}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:API Templates]] | [[Category:API Templates]] | ||
</noinclude> | </noinclude> |