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

From Kerbal Space Program Wiki
Jump to: navigation, search
(+show the wet mass parameters;)
m (fix typos)
 
(28 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{Parameter Table|name=text|style=hover|parameters=
+
{{Parameter table|name=text|style=hover|parameters=
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part||
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part||
 
{{{additional|}}}
 
{{{additional|}}}
 
{{!}}-
 
{{!}}-
! colspan="3" {{!}} Parameters of {{Tl|Infobox/Part}}}}
+
! colspan="4" {{!}} Parameters of {{Tl|Infobox/Part}}}}
{{Parameter Row|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
+
{{Parameter row|name|Name of the part, which can be found in the localization file. Uses {{Tl|Dict/part name}} to translate names.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
{{#if: {{#ifeq: {{{more|}}}|all|1}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}|
+
{{Parameter row|file|Filename to image of the part.|[[:File:Image needed.svg]]}}
{{Parameter Row|role|Role of the part}}
 
{{Parameter Row|class|The Part module the part uses|Unknown}}}}
 
{{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|size2|Second radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden|1}}
 
{{Parameter Row|costs|Costs of the part}}
 
{{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 calculation.|<tt>0</tt>}}
+
{{Parameter row|type|[[#Types|Type]] of the part. Automatically defines the role parameter.}}
{{Parameter Row|ox|Amount of oxidizer on that part in units. Only used for wet mass calculation.|<tt>0</tt>}}
+
{{Parameter row|role|Role of the part. Overrides the type parameter.|<nowiki>{{type}}</nowiki>}}}}
{{Parameter Row|mp|Amount of monopropellant on that part in units. Only used wet dry mass calculation.|<tt>0</tt>}}
+
{{Parameter row|size|Radial size of the part (uses {{Tl|Radial size}}).|Not set/Hidden}}
{{Parameter Row|sf|Amount of solid fuel on that part in units. Only used for wet mass calculation.|<tt>0</tt>}}
+
{{Parameter row|size2|Second radial size of the part (uses {{Tl|Radial size}}).|Not set/Hidden|1}}
{{Parameter Row|xg|Amount of xenon gas on that part in units. Only used for wet mass calculation.|<tt>0</tt>}}
+
{{Parameter row|size3|Third radial size of the part (uses {{Tl|Radial size}}).|Not set/Hidden|1}}
{{Parameter Row|ia|Amount of intake air on that part in units. Only used for wet mass calculation.|<tt>0</tt>}}}}
+
{{Parameter row|size4|Fourth radial size of the part (uses {{Tl|Radial size}}).|Not set/Hidden|1}}
{{Parameter Row|drag|Drag 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.|<tt>?</tt>}}
 +
{{Parameter row|manufacturer2|Second manufacturer of the part.|Not set/Hidden|1}}
 +
{{Parameter row|costs|Cost of the part, which is usually given in the part configuration.}}
 +
{{Parameter row|mass|Mass of the part, which is usually given in the part configuration.}}
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
{{Parameter Row|drag type|Drag type of the part}}}}
+
{{Parameter row|lf|Max amount of Liquid Fuel on the part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|temp|Temperature resistance of the part}}
+
{{Parameter row|ox|Max amount of Oxidizer on the part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|tolerance|Impact tolerance of the part}}
+
{{Parameter row|sf|Max amount of Solid Fuel on the part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{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|mp|Max amount of Monopropellant on the part in units. Only used wet mass/dry costs calculation.|<tt>0</tt>}}
{{#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|xg|Max amount of Xenon Gas on the part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|research|Research node required for this part. Not all subtemplates support this parameter yet.|Unknown}}
+
{{Parameter row|ia|Max amount of Intake Air on the part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{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|eva|Max amount of EVA Propellant on the part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
{{Parameter Row|since|Version the part first appeared in. It will be used in {{Tl|version}}.|Unknown}}
+
{{Parameter row|or|Max amount of Ore on the part in units. Only used for wet mass/dry costs calculation.|<tt>0</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>.}}
+
{{Parameter row|ab|Max amount of Ablator on the part in units. Only used for wet mass/dry costs calculation.|<tt>0</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.|{{{def parent|}}}}}}}
+
{{Parameter row|capacity|Total amount of crew capacity on the part. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
}}</includeonly><noinclude>Creates a parameters table for the templates of {{Tl|Infobox/Part}}.
+
{{Parameter row|crew|Amount of crew the part starts with. Only used for wet/dry mass calculation.|<tt>0</tt>}}
 +
{{Parameter row|motorOutput|Maximum output of the motor on the part. Only used for wet mass/dry costs calculation.|<tt>0</tt>}}
 +
{{Parameter row|motorCost|The extra cost the motor adds to the part. Only used for wet costs calculation.|<tt>0</tt>}}
 +
{{Parameter row|motorMass|The extra mass the motor adds to the part. Only used for wet mass calculation.|<tt>0</tt>}}
 +
{{Parameter row|maxShots|Maximum amount of firework shots on the part. Only used for wet mass calculation.|<tt>0</tt>}}
 +
{{Parameter row|shellMass|The extra mass every firework shell adds to the part. Only used for wet/dry mass calculation.|<tt>0</tt>}}
 +
{{Parameter row|variantCost|The extra cost the default variant adds to the part. Only used for wet costs calculation.|<tt>0</tt>}}
 +
{{Parameter row|variantMass|The extra mass the default variant adds to the part. Only used for wet mass calculation.|<tt>0</tt>}}}}
 +
{{Parameter row|drag|Drag of the part. By different values, add <tt>minimum_drag</tt> first and then <tt>maximum_drag</tt>}}
 +
{{Parameter row|temp|Temperature resistance of the part, which is usually given in the part configuration.}}
 +
{{Parameter row|tolerance|Impact tolerance of the part, which is usually given in the part configuration.}}
 +
{{Parameter row|research|Research node required for this part. Uses {{Tl|Dict/sci node}} to translate names.|<tt>Unknown</tt>}}
 +
{{Parameter row|unlock cost|Cost to unlock the part, which is usually given in the part configuration.}}
 +
{{Parameter row|since|Version the part first appeared in. It will be used in {{Tl|version}}.|<tt>Unknown</tt>}}
 +
{{Parameter row|dlc|Name of the dlc. Used for linking to the cfg-entry on the wiki. Can be:
 +
* <tt>mh</tt> (Making History)
 +
* <tt>bg</tt> (Breaking Ground)|Not Set}}
 +
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 +
{{Parameter row|physics insignificant|Mark the mass and drag automatically with a note that they are insignificant (so called [[massless part]]s). Must be set to "y" to show insignificance. This will use <tt>{{{nref}}}</tt>, so if it isn't set, will set it automatically to "1".|Not set/Hidden}}
 +
{{Parameter row|applyKerbalMass|Whether the part applies extra mass of a Kerbal on the part. Must be set to "n" to exclude the added mass. Only used for wet/dry mass calculation.|<tt>y</tt>}}}}
 +
{{Parameter row|filename|The filename (with extension) of the part configuration.}}
 +
{{Parameter row|part|Name of the part folder. Used for linking to the cfg-entry on the wiki. It will create a link to <tt><nowiki>Parts/{{{parent}}}/{{{part}}}/{{{filename}}}</nowiki></tt>.|<tt>Unknown cfg</tt>}}
 +
{{Parameter row|parent|Parent directory of the part folder. Used for linking to the cfg-entry on the wiki.|Not set/Hidden}}
 +
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 +
{{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|notes|Additional notes below the part information.|Not set/Hidden}}
 +
{{Parameter row|nref|Automatically adds references below the part information.|Not set/Hidden}}}}
 +
}}<noinclude>
 +
<!--- Note to editors: 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:
 
* <tt>all</tt> to show all three
 
* All other values to show only the more parameter|No}}
 
{{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 mass|Default mass value. If set it will be shown.|<tt>Not set</tt>}}
 
 
}}
 
}}
  
 
== Additional parameters ==
 
== Additional parameters ==
To add additional parameters add a row for each parameter using {{Tl|Parameter Row}}.
+
To add additional parameters add a row for each parameter using {{Tl|Parameter row}}.
  
 
{{Subcategory|metatemplates}}</noinclude>
 
{{Subcategory|metatemplates}}</noinclude>

Latest revision as of 21:29, 20 October 2024

Name Optional Description Default
Parameters of {{Infobox/Part}}
name Yes Name of the part, which can be found in the localization file. Uses {{Dict/part name}} to translate names. {{BASEPAGENAME}}
file Yes Filename to image of the part. File:Image needed.svg
size Yes Radial size of the part (uses {{Radial size}}). Not set/Hidden
size2 Yes Second radial size of the part (uses {{Radial size}}). Not set/Hidden
size3 Yes Third radial size of the part (uses {{Radial size}}). Not set/Hidden
size4 Yes Fourth radial size of the part (uses {{Radial size}}). Not set/Hidden
manufacturer Yes Manufacturer of the part. If set, linked to the category of this name (see also Category:Manufacturers). Automatically uses {{Infobox/Part/Manufacturer}} and {{Infobox/Part/Manufacturer entry}} on it. ?
manufacturer2 Yes Second manufacturer of the part. Not set/Hidden
costs No Cost of the part, which is usually given in the part configuration.
mass No Mass of the part, which is usually given in the part configuration.
drag No Drag of the part. By different values, add minimum_drag first and then maximum_drag
temp No Temperature resistance of the part, which is usually given in the part configuration.
tolerance No Impact tolerance of the part, which is usually given in the part configuration.
research Yes Research node required for this part. Uses {{Dict/sci node}} to translate names. Unknown
unlock cost No Cost to unlock the part, which is usually given in the part configuration.
since Yes Version the part first appeared in. It will be used in {{version}}. Unknown
dlc Yes Name of the dlc. Used for linking to the cfg-entry on the wiki. Can be:
  • mh (Making History)
  • bg (Breaking Ground)
Not Set
filename No The filename (with extension) of the part configuration.
part Yes Name of the part folder. Used for linking to the cfg-entry on the wiki. It will create a link to Parts/{{{parent}}}/{{{part}}}/{{{filename}}}. Unknown cfg
parent Yes Parent directory of the part folder. Used for linking to the cfg-entry on the wiki. Not set/Hidden

Creates a parameters table for the templates of {{Infobox/Part}}.

Parameters

Name Optional Description Default
additional Yes List additional parameters. Not set

Additional parameters

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