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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!cat name;)
m (*new name;)
Line 4: Line 4:
 
{{!}}-
 
{{!}}-
 
! colspan="3" {{!}} Parameters of {{Tl|Infobox/Part}}}}
 
! colspan="3" {{!}} Parameters of {{Tl|Infobox/Part}}}}
{{ParameterRow|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
+
{{Parameter Row|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}}
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
{{ParameterRow|role|Role of the part}}
+
{{Parameter Row|role|Role of the part}}
{{ParameterRow|class|The Part module the part uses|Unknown}}}}
+
{{Parameter Row|class|The Part module the part uses|Unknown}}}}
{{ParameterRow|file|Filename to image of the part.|[[:File:Image-needed.png]]}}
+
{{Parameter Row|file|Filename to image of the part.|[[:File:Image-needed.png]]}}
{{ParameterRow|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}}}}
{{ParameterRow|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}}
{{ParameterRow|costs|Costs of the part}}
+
{{Parameter Row|costs|Costs of the part}}
{{ParameterRow|mass|Mass of the part}}
+
{{Parameter Row|mass|Mass of the part}}
{{ParameterRow|drag|Drag of the part}}
+
{{Parameter Row|drag|Drag of the part}}
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
 
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|
{{ParameterRow|drag type|Drag type of the part}}}}
+
{{Parameter Row|drag type|Drag type of the part}}}}
{{ParameterRow|temp|Temperature resistance of the part}}
+
{{Parameter Row|temp|Temperature resistance of the part}}
{{ParameterRow|tolerance|Impact tolerance of the part}}
+
{{Parameter Row|tolerance|Impact tolerance of the part}}
{{ParameterRow|manufacturer|Manufacturer of the part. If set linked to the category of this name (see also [[:Category:Manufacturer]]). Automatically uses {{Tl|Infobox/Part/Manufacturer}} on it.|Not set/Hidden}}
+
{{Parameter Row|manufacturer|Manufacturer of the part. If set linked to the category of this name (see also [[:Category:Manufacturer]]). Automatically uses {{Tl|Infobox/Part/Manufacturer}} on it.|Not set/Hidden}}
{{#if: {{{more|}}}{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|1}}|{{ParameterRow|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}}}}
+
{{#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}}}}
{{ParameterRow|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}}
{{ParameterRow|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>.}}
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|{{ParameterRow|parent|Parent directory of the part folder. Used for ''part.cfg'' file, see above.}}}}
+
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|{{Parameter Row|parent|Parent directory of the part folder. Used for ''part.cfg'' file, see above.}}}}
 
}}</includeonly><noinclude>Creates a parameters table for the templates of {{Tl|Infobox/Part}}.
 
}}</includeonly><noinclude>Creates a parameters table for the templates of {{Tl|Infobox/Part}}.
  
 
== Parameters ==
 
== Parameters ==
 
{{Parameter Table|name=text|parameters=
 
{{Parameter Table|name=text|parameters=
{{ParameterRow|additional|List additional parameters.|Not set}}
+
{{Parameter Row|additional|List additional parameters.|Not set}}
{{ParameterRow|more|Allow <tt>{{{More}}}</tt> parameter.|No}}
+
{{Parameter Row|more|Allow <tt>{{{More}}}</tt> parameter.|No}}
{{ParameterRow|def size|Default size value.|<tt>Not set</tt>}}
+
{{Parameter Row|def size|Default size value.|<tt>Not set</tt>}}
 
}}
 
}}
  
 
== Additional parameters ==
 
== Additional parameters ==
To add additional parameters add a row for each parameter using {{Tl|ParameterRow}}.
+
To add additional parameters add a row for each parameter using {{Tl|Parameter Row}}.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 15:46, 12 July 2013

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

Parameters

Template:Parameter Table

Additional parameters

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