Difference between revisions of "Template:Enum"

From Kerbal Space Program Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>|-
 
<includeonly>|-
 
| <tt>{{{name|Enum template: name parameter missing}}}</tt>
 
| <tt>{{{name|Enum template: name parameter missing}}}</tt>
| {{{desc|Enum template: enum parameter missing}}}</includeonly><noinclude>{{doc start}}
+
| <tt>{{{values|Enum template: values parameter missing}}}</tt></includeonly><noinclude>{{doc start}}
 
An element to be used in [[Template:Enums]].
 
An element to be used in [[Template:Enums]].
  
Line 7: Line 7:
  
 
:name - The identifier of this enum.
 
:name - The identifier of this enum.
:desc - The enumeration elements.
+
:values - The enumeration elements. Use [[Template:EnumValue]] for each value.
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:API Templates]]</noinclude>
 
[[Category:API Templates]]</noinclude>

Latest revision as of 23:56, 20 October 2015

Documentation for Enum

An element to be used in Template:Enums.

Takes parameters:

name - The identifier of this enum.
values - The enumeration elements. Use Template:EnumValue for each value.