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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!category name; +also show class/role if needed;)
m (+default parent;)
Line 22: Line 22:
 
{{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>.}}
{{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part|{{Parameter Row|parent|Parent directory of the part folder. Used for ''part.cfg'' file, see above.}}}}
+
{{#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|}}}}}}}
 
}}</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}}.
  
Line 32: Line 32:
 
* All other values to show only the more parameter|No}}
 
* All other values to show only the more parameter|No}}
 
{{Parameter Row|def size|Default size value.|<tt>Not set</tt>}}
 
{{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>}}
 
}}
 
}}
  

Revision as of 12:15, 13 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}}.