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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*wet costs;)
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';)
Line 4: Line 4:
 
{{!}}-
 
{{!}}-
 
! colspan="3" {{!}} Parameters of {{Tl|Infobox/Part}}}}
 
! colspan="3" {{!}} Parameters of {{Tl|Infobox/Part}}}}
{{Parameter Row|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}}{{if||{{#ifeq: {{{more|}}}|all|1}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}|
+
{{Parameter row|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}}{{if||{{#ifeq: {{{more|}}}|all|1}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}|
{{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.|Not set/Hidden}}}}
+
{{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}}}}
{{Parameter Row|size2|Second radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden|1}}
+
{{Parameter row|size2|Second radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden|1}}
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part||{{Parameter Row|height|Height of the part in meters.|Not set/Hidden}}}}
+
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part||{{Parameter row|height|Height of the part in meters.|Not set/Hidden}}}}
{{Parameter Row|costs|Wet costs of the part, which is usually given in the part.cfg.}}
+
{{Parameter row|costs|Wet costs of the part, which is usually given in the part.cfg.}}
{{Parameter Row|mass|Dry mass of the part, which is usually given in the part.cfg.|{{{def mass|}}}}}
+
{{Parameter row|mass|Dry mass of the part, which is usually given in the part.cfg.|{{{def mass|}}}}}
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
{{Parameter Row|lf|Amount of liquid fuel on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
+
{{Parameter row|lf|Amount of liquid fuel on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|ox|Amount of oxidizer on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
+
{{Parameter row|ox|Amount of oxidizer on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|mp|Amount of monopropellant on that part in units. Only used wet mass/dry costs calculation.|<tt>0</tt>}}
+
{{Parameter row|mp|Amount of monopropellant on that part in units. Only used wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|sf|Amount of solid fuel on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
+
{{Parameter row|sf|Amount of solid fuel on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|xg|Amount of xenon gas on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
+
{{Parameter row|xg|Amount of xenon gas on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|ia|Amount of intake air on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}}}
+
{{Parameter row|ia|Amount of intake air on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}}}
{{Parameter Row|drag|Drag of the part}}
+
{{Parameter row|drag|Drag of the part}}
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
{{Parameter Row|drag type|Drag type of the part}}}}
+
{{Parameter row|drag type|Drag type of the part}}}}
{{Parameter Row|temp|Temperature resistance of the part}}
+
{{Parameter row|temp|Temperature resistance of the part}}
{{Parameter Row|tolerance|Impact tolerance of the part}}
+
{{Parameter row|tolerance|Impact tolerance of the part}}
{{Parameter Row|manufacturer|Manufacturer of the part. If set linked to the category of this name (see also [[:Category:Manufacturers]]). Automatically uses {{Tl|Infobox/Part/Manufacturer}} and {{Tl|Infobox/Part/Manufacturer entry}} on it.|Not set/Hidden}}
+
{{Parameter row|manufacturer|Manufacturer of the part. If set linked to the category of this name (see also [[:Category:Manufacturers]]). Automatically uses {{Tl|Infobox/Part/Manufacturer}} and {{Tl|Infobox/Part/Manufacturer entry}} on it.|Not set/Hidden}}
{{#if: {{{more|}}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}|{{Parameter Row|more|More module-specific information (see {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part||{{Tl|Infobox/Part}} section&#32;}}[[Template:Infobox/Part#More parameter|More parameter]]).|Not set}}}}
+
{{#if: {{{more|}}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}|{{Parameter row|more|More module-specific information (see {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part||{{Tl|Infobox/Part}} section&#32;}}[[Template:Infobox/Part#More parameter|More parameter]]).|Not set}}}}
{{Parameter Row|research|Research node required for this part. Not all subtemplates support this parameter yet.|Unknown}}
+
{{Parameter row|research|Research node required for this part. Not all subtemplates support this parameter yet.|Unknown}}
{{Parameter Row|research page|Article of the research node required for this part. Don't use link to [[technology tree]], but instead redirect from the node if wished. Not all subtemplates support this parameter yet.|The same as {{{research}}}|1}}
+
{{Parameter row|research page|Article of the research node required for this part. Don't use link to [[technology tree]], but instead redirect from the node if wished. Not all subtemplates support this parameter yet.|The same as {{{research}}}|1}}
{{Parameter Row|since|Version the part first appeared in. It will be used in {{Tl|version}}.|Unknown}}
+
{{Parameter row|since|Version the part first appeared in. It will be used in {{Tl|version}}.|Unknown}}
{{Parameter Row|part|Name of the part folder. Used for link to cfg-entry in wiki. It will create a link to <tt><nowiki>Parts/{{{parent}}}/{{{part}}}/part.cfg</nowiki></tt>.}}
+
{{Parameter row|part|Name of the part folder. Used for link to cfg-entry in wiki. It will create a link to <tt><nowiki>Parts/{{{parent}}}/{{{part}}}/part.cfg</nowiki></tt>.}}
{{#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.|Not set/Hidden}}
+
{{Parameter row|notes|Additional notes below the part information.|Not set/Hidden}}
{{Parameter Row|physics insignificant|Mark the mass and drag automatically with a note that they are insignificant (so called [[massless part]]s). This will use {{{nref}}}, so if it isn't set, will set it automatically to "N". Other notes can use that group then too. Must be set to "Y" or "y" to show insignificance.|Not set/Hidden}}
+
{{Parameter row|physics insignificant|Mark the mass and drag automatically with a note that they are insignificant (so called [[massless part]]s). This will use {{{nref}}}, so if it isn't set, will set it automatically to "N". Other notes can use that group then too. Must be set to "Y" or "y" to show insignificance.|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.|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.|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}}.
  
 
== Parameters ==
 
== Parameters ==
 
{{Parameter Table|name=text|parameters=
 
{{Parameter Table|name=text|parameters=
{{Parameter Row|additional|List additional parameters.|Not set}}
+
{{Parameter row|additional|List additional parameters.|Not set}}
{{Parameter Row|more|Show <tt>{{{more}}}</tt>, <tt>{{{class}}}</tt> and <tt>{{{role}}}</tt> parameter. Either:
+
{{Parameter row|more|Show <tt>{{{more}}}</tt>, <tt>{{{class}}}</tt> and <tt>{{{role}}}</tt> parameter. Either:
 
* <tt>all</tt> to show all three
 
* <tt>all</tt> to show all three
 
* All other values to show only the more parameter|No}}
 
* All other values to show only the more parameter|No}}
{{Parameter Row|def size|Default size value.|<tt>Not set</tt>}}
+
{{Parameter row|def size|Default size value.|<tt>Not set</tt>}}
{{Parameter Row|def parent|Default parent value. If set it will be shown.|<tt>Not set</tt>}}
+
{{Parameter row|def parent|Default parent value. If set it will be shown.|<tt>Not set</tt>}}
{{Parameter Row|def mass|Default mass value. If set it will be shown.|<tt>Not set</tt>}}
+
{{Parameter row|def mass|Default mass value. If set it will be shown.|<tt>Not set</tt>}}
 
}}
 
}}
  

Revision as of 20:51, 26 November 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}}.