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

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>{| class="wikitable mw-datatable" ! Name ! Optional ! Description {{#ifeq: {{FULLPAGENAME}}|Template:Partbox|| {{{additional|}}} {{!}}- ! colspan="3" {{!}} Parame...")
 
m (*update to lower case parameters;)
Line 7: Line 7:
 
{{!}}-
 
{{!}}-
 
! colspan="3" {{!}} Parameters of {{Tl|Partbox}}}}
 
! colspan="3" {{!}} Parameters of {{Tl|Partbox}}}}
{{ParameterRow|Name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
+
{{ParameterRow|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
 
{{#ifeq: {{FULLPAGENAME}}|Template:Partbox|
 
{{#ifeq: {{FULLPAGENAME}}|Template:Partbox|
{{ParameterRow|Role|Role of the part}}
+
{{ParameterRow|role|Role of the part}}
{{ParameterRow|Class|The Part module the part uses|Unknown}}}}
+
{{ParameterRow|class|The Part module the part uses|Unknown}}}}
{{ParameterRow|File|Filename to image of the part.|[[:File:Image-needed.png]]}}
+
{{ParameterRow|file|Filename to image of the part.|[[:File:Image-needed.png]]}}
 
{{ParameterRow|size|Radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden}}
 
{{ParameterRow|size|Radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden}}
 
{{ParameterRow|size2|Second radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden|1}}
 
{{ParameterRow|size2|Second radial size of the part (uses {{Tl|Radial Size}}).|Not set/Hidden|1}}
{{ParameterRow|Costs|Costs of the part}}
+
{{ParameterRow|costs|Costs of the part}}
{{ParameterRow|Mass|Mass of the part}}
+
{{ParameterRow|mass|Mass of the part}}
{{ParameterRow|Drag|Drag of the part}}
+
{{ParameterRow|drag|Drag of the part}}
{{ParameterRow|Temp|Temperature resistance of the part}}
+
{{ParameterRow|temp|Temperature resistance of the part}}
{{ParameterRow|Tolerance|Impact tolerance of the part}}
+
{{ParameterRow|tolerance|Impact tolerance of the part}}
{{ParameterRow|Manufacturer|Manufacturer of the part.|Not set/Hidden}}
+
{{ParameterRow|manufacturer|Manufacturer of the part.|Not set/Hidden}}
{{#if: {{{more|}}}{{#ifeq: {{FULLPAGENAME}}|Template:Partbox|1}}|{{ParameterRow|More|More module-specific information (see {{#ifeq: {{FULLPAGENAME}}|Template:Partbox||{{Tl|Partbox}} section }}[[Template:Partbox#More_Parameter|More Parameter]]).|Not set}}}}
+
{{#if: {{{more|}}}{{#ifeq: {{FULLPAGENAME}}|Template:Partbox|1}}|{{ParameterRow|more|More module-specific information (see {{#ifeq: {{FULLPAGENAME}}|Template:Partbox||{{Tl|Partbox}} section }}[[Template:Partbox#More_Parameter|More Parameter]]).|Not set}}}}
 
{{ParameterRow|since|Version the part first appeared in. It will be used in {{Tl|version}}.|Unknown}}
 
{{ParameterRow|since|Version the part first appeared in. It will be used in {{Tl|version}}.|Unknown}}
 
{{ParameterRow|part|Link to cfg-entry in wiki. It will create a link to <tt><nowiki>Parts/{{{part}}}/parts.cfg</nowiki></tt>.}}
 
{{ParameterRow|part|Link to cfg-entry in wiki. It will create a link to <tt><nowiki>Parts/{{{part}}}/parts.cfg</nowiki></tt>.}}

Revision as of 14:44, 13 April 2013

Creates a parameters table for the templates of {{Partbox}}.

Parameters

Name Optional Description
additional Yes List additional parameters. Default: Not set
more Yes Allow {{{More}}} parameter. Default: No

Additional parameters

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