Difference between revisions of "Template:Infobox/Part/Parameters"
From Kerbal Space Program Wiki
< Template:Infobox | Part
m (*new name;) |
m (!category name; +also show class/role if needed;) |
||
Line 5: | Line 5: | ||
! colspan="3" {{!}} Parameters of {{Tl|Infobox/Part}}}} | ! colspan="3" {{!}} Parameters of {{Tl|Infobox/Part}}}} | ||
{{Parameter Row|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}} | {{Parameter Row|name|Name of part.|<nowiki>{{BASEPAGENAME}}</nowiki>}} | ||
− | {{#ifeq: {{FULLPAGENAME}}|Template:Infobox/Part| | + | {{#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}} | ||
{{Parameter Row|class|The Part module the part uses|Unknown}}}} | {{Parameter Row|class|The Part module the part uses|Unknown}}}} | ||
Line 18: | Line 18: | ||
{{Parameter Row|temp|Temperature resistance of the part}} | {{Parameter Row|temp|Temperature resistance of the part}} | ||
{{Parameter Row|tolerance|Impact tolerance of the part}} | {{Parameter Row|tolerance|Impact tolerance of the part}} | ||
− | {{Parameter Row|manufacturer|Manufacturer of the part. If set linked to the category of this name (see also [[:Category: | + | {{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}} on it.|Not set/Hidden}} |
{{#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 }}[[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 }}[[Template:Infobox/Part#More_Parameter|More Parameter]]).|Not set}}}} | ||
{{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}} | ||
Line 28: | Line 28: | ||
{{Parameter Table|name=text|parameters= | {{Parameter Table|name=text|parameters= | ||
{{Parameter Row|additional|List additional parameters.|Not set}} | {{Parameter Row|additional|List additional parameters.|Not set}} | ||
− | {{Parameter Row|more| | + | {{Parameter Row|more|Show <tt>{{{more}}}</tt>, <tt>{{{class}}}</tt> and <tt>{{{role}}}</tt> parameter. Either: |
+ | * <tt>all</tt> to show all three | ||
+ | * 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>}} | ||
}} | }} |
Revision as of 11:41, 13 July 2013
Creates 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}}.