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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Add dlc param)
m (Update)
Line 7: Line 7:
 
{{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]]}}
 
{{#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.}}
{{Parameter row|role|Role of the part. Overrides the type parameter.}}}}
+
{{Parameter row|role|Role of the part. Overrides the type parameter.|<nowiki>{{type}}</nowiki>}}}}
 
{{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}}
 
{{Parameter row|size3|Third radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden|1}}
 
{{Parameter row|size3|Third radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden|1}}
 
{{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}}
 +
{{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.cfg.}}
 
{{Parameter row|costs|Cost of the part, which is usually given in the part.cfg.}}
 
{{Parameter row|mass|Mass of the part, which is usually given in the part.cfg.|{{{def mass|}}}}}
 
{{Parameter row|mass|Mass of the part, which is usually given in the part.cfg.|{{{def mass|}}}}}

Revision as of 22:53, 19 December 2020

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
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. Not set/Hidden
manufacturer2 Yes Second manufacturer of the part. Not set/Hidden
costs No Cost of the part, which is usually given in the part.cfg.
mass No Mass of the part, which is usually given in the part.cfg.
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.cfg.
tolerance No Impact tolerance of the part, which is usually given in the part.cfg.
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.cfg.
since Yes Version the part first appeared in. It will be used in {{version}}. Unknown
dlc Yes Name of the dlc. Used for link to cfg-entry in wiki. Can be:
  • mh
  • bg
Not Set
filename No The filename (with extension) of the part.cfg
part No Name of the part folder. Used for link to cfg-entry in wiki. It will create a link to Parts/{{{parent}}}/{{{part}}}/part.cfg.

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

Parameters

Name Optional Description Default
additional Yes List additional parameters. Not set
def size Yes Default size value. Not set
def parent Yes Default parent value. If set it will be shown. Not set
def mass Yes Default mass value. If set it will be shown. Not set

Additional parameters

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