Difference between revisions of "Template:Infobox/Part/Parameters"
From Kerbal Space Program Wiki
< Template:Infobox | Part
(+show the wet mass parameters;) |
m (+add definition for type parameter;) |
||
Line 1: | Line 1: | ||
− | + | {{Parameter Table|name=text|style=hover|parameters= | |
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|| | {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|| | ||
{{{additional|}}} | {{{additional|}}} | ||
Line 6: | Line 6: | ||
{{Parameter Row|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}} | {{Parameter Row|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}} | ||
{{#if: {{#ifeq: {{{more|}}}|all|1}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}| | {{#if: {{#ifeq: {{{more|}}}|all|1}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}| | ||
− | {{Parameter Row|role|Role of the part}} | + | {{Parameter Row|role|Role of the part. Overrides the type parameter.}}}} |
− | {{Parameter Row| | + | {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part| |
+ | {{Parameter Row|type|[[#Types|Type]] of the part. Automatically defines the role and parent parameter.}}}} | ||
{{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 31: | Line 32: | ||
{{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.|{{{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| |
+ | {{Parameter Row|notes|Additional notes below the part information.}} | ||
+ | {{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.}}}} | ||
+ | }}<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 == |
Revision as of 19:46, 28 March 2014
Template:Parameter TableCreates a parameters table for the templates of {{Infobox/Part}}.
Parameters
Additional parameters
To add additional parameters add a row for each parameter using {{Parameter Row}}.