Difference between revisions of "Template:Infobox/Part/Parameters"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+add definition for type parameter;)
m (!type, notes, nref are all optional;)
Line 8: Line 8:
 
{{Parameter Row|role|Role of the part. Overrides the type parameter.}}}}
 
{{Parameter Row|role|Role of the part. Overrides the type parameter.}}}}
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
{{Parameter Row|type|[[#Types|Type]] of the part. Automatically defines the role and parent parameter.}}}}
+
{{Parameter Row|type|[[#Types|Type]] of the part. Automatically defines the role and parent parameter.|Not set/Hidden}}}}
 
{{Parameter Row|file|Filename to image of the part.|[[:File:Image needed.svg]]}}
 
{{Parameter Row|file|Filename to image of the part.|[[:File:Image needed.svg]]}}
 
{{Parameter Row|size|Radial size of the part (uses {{Tl|Radial Size}}).|{{#if: {{{def size|}}}|<tt>{{{def size}}}</tt> ({{Radial Size|{{{def size}}}}})|Not set/Hidden}}}}
 
{{Parameter Row|size|Radial size of the part (uses {{Tl|Radial Size}}).|{{#if: {{{def size|}}}|<tt>{{{def size}}}</tt> ({{Radial Size|{{{def size}}}}})|Not set/Hidden}}}}
Line 34: Line 34:
 
{{#if: {{{def parent|}}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}|{{Parameter Row|parent|Parent directory of the part folder. Used for ''part.cfg'' file, see above. Overrides the type parameter.|{{{def parent|}}}}}}}
 
{{#if: {{{def parent|}}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}|{{Parameter Row|parent|Parent directory of the part folder. Used for ''part.cfg'' file, see above. Overrides the type parameter.|{{{def parent|}}}}}}}
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
{{Parameter Row|notes|Additional notes below the part information.}}
+
{{Parameter Row|notes|Additional notes below the part information.|Not set/Hidden}}
{{Parameter Row|nref|Automatically add references of the group with that name (usually <tt>N</tt>). Modules might have a <tt>nref</tt> parameter which needs to be set to the same value.}}}}
+
{{Parameter Row|nref|Automatically add references of the group with that name (usually <tt>N</tt>). Modules might have a <tt>nref</tt> parameter which needs to be set to the same value.|Not set/Hidden}}}}
 
}}<noinclude><!--- note to editers: entries might not show up here, because they only show on the main template! -->Creates a parameters table for the templates of {{Tl|Infobox/Part}}.
 
}}<noinclude><!--- note to editers: entries might not show up here, because they only show on the main template! -->Creates a parameters table for the templates of {{Tl|Infobox/Part}}.
  

Revision as of 19:48, 28 March 2014

Template:Parameter TableCreates a parameters table for the templates of {{Infobox/Part}}.

Parameters

Template:Parameter Table

Additional parameters

To add additional parameters add a row for each parameter using {{Parameter Row}}.