Difference between revisions of "Template:Infobox/Part/Parameters"
From Kerbal Space Program Wiki
< Template:Infobox | Part
(+research (page);) |
m (added row of stacking capacity) |
||
(24 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Parameter table|name=text|style=hover|parameters= | |
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|| | {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|| | ||
{{{additional|}}} | {{{additional|}}} | ||
{{!}}- | {{!}}- | ||
− | ! colspan=" | + | ! colspan="4" {{!}} Parameters of {{Tl|Infobox/Part}}}} |
− | {{Parameter | + | {{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>}} |
− | + | {{Parameter row|file|Filename to image of the part.|[[:File:Image needed.svg]]}} | |
− | |||
− | |||
− | {{Parameter | ||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part| | {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part| | ||
− | {{Parameter | + | {{Parameter row|type|[[#Types|Type]] of the part. Automatically defines the role and parent parameter.}} |
− | {{Parameter | + | {{Parameter row|role|Role of the part. Overrides the type parameter.|<nowiki>{{type}}</nowiki>}}}} |
− | {{Parameter | + | {{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 | + | {{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 | + | {{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 | + | {{Parameter row|manufacturer2|Second manufacturer of the part.|Not set/Hidden|1}} |
− | {{Parameter | + | {{Parameter row|costs|Cost of the part, which is usually given in the part.cfg.}} |
− | {{Parameter | + | {{Parameter row|mass|Mass of the part, which is usually given in the part.cfg.|{{{def mass|}}}}} |
− | + | {{#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|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|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|ia|Amount of Intake Air on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}} | ||
+ | {{Parameter row|or|Amount of Ore on that part in units. Only used for wet mass/dry costs calculation.|<tt>0</tt>}} | ||
+ | {{Parameter row|ab|Amount of Ablator on that part in units. Only used for wet mass/dry costs 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.cfg.}} | ||
+ | {{Parameter row|tolerance|Impact tolerance of the part, which is usually given in the part.cfg.}} | ||
+ | {{Parameter row|volume|Volume of the part for cargo storage, which is usually given in the part.cfg in the ModuleCargoPart module. If the volume is -1, it is considered as a construction part which cannot be stored ("None").|Unknown volume (?)}} | ||
+ | {{Parameter row|stacking capacity|Value of part stacking capacity for cargo storage, which is usually given in the part.cfg in the ModuleCargoPart module. If the value is not defined, the row will not be displayed.|Not set/Hidden}} | ||
+ | {{Parameter row|research|Research node required for this part. Uses {{Tl|Dict/sci node}} to translate names.|Unknown}} | ||
+ | {{Parameter row|unlock cost|Cost to unlock the part, which is usually given in the part.cfg.}} | ||
+ | {{Parameter row|since|Version the part first appeared in. It will be used in {{Tl|version}}.|Unknown}} | ||
+ | {{Parameter row|dlc|Name of the dlc. Used for link to cfg-entry in wiki. Can be: | ||
+ | * <tt>mh</tt> | ||
+ | * <tt>bg</tt>|Not Set}} | ||
+ | {{Parameter row|filename|The filename (with extension) of the part.cfg}} | ||
+ | {{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>.}} | ||
+ | {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part| | ||
+ | {{Parameter row|parent|Parent directory of the part folder. Used for ''part.cfg'' file, see above. Overrides the type parameter.|{{{def parent|}}}}} | ||
+ | {{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|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.|Not set/Hidden}} | ||
+ | {{Parameter row|more|More module-specific information (see {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part||{{Tl|Infobox/Part}} section }}[[Template:Infobox/Part#More parameter|More parameter]]).|Not set}}}} | ||
+ | }}<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 | + | {{Parameter table|name=text|parameters= |
− | {{Parameter | + | {{Parameter row|additional|List additional parameters.|Not set}} |
− | {{Parameter | + | {{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>}} | |
− | |||
− | {{Parameter | ||
− | {{Parameter | ||
}} | }} | ||
== Additional parameters == | == Additional parameters == | ||
− | To add additional parameters add a row for each parameter using {{Tl|Parameter | + | To add additional parameters add a row for each parameter using {{Tl|Parameter row}}. |
− | + | {{Subcategory|metatemplates}}</noinclude> |
Revision as of 15:53, 8 July 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 |
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. | |
volume | Yes | Volume of the part for cargo storage, which is usually given in the part.cfg in the ModuleCargoPart module. If the volume is -1, it is considered as a construction part which cannot be stored ("None"). | Unknown volume (?) |
stacking capacity | Yes | Value of part stacking capacity for cargo storage, which is usually given in the part.cfg in the ModuleCargoPart module. If the value is not defined, the row will not be displayed. | Not set/Hidden |
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:
|
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}}.