Difference between revisions of "Template:Infobox/Part"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Revert bolded names (inconsistent with Planetbox template; widens text and causes line breaks); leave "since" lowercased, since that's what the vast majority of parts pages use.)
m (valign top)
Line 5: Line 5:
 
|-
 
|-
 
| colspan="2" style="text-align: center;" | [[File:{{{File|Image-needed.png}}}|180px|Part image]]
 
| colspan="2" style="text-align: center;" | [[File:{{{File|Image-needed.png}}}|180px|Part image]]
|-
+
|-valign="top"
 
| Cost || {{{Costs|??}}}
 
| Cost || {{{Costs|??}}}
|-
+
|-valign="top"
 
| Manufacturer || {{{Manufacturer|??}}}
 
| Manufacturer || {{{Manufacturer|??}}}
|-
+
|-valign="top"
 
| Total Mass || {{{Mass|??}}} kg
 
| Total Mass || {{{Mass|??}}} kg
|-
+
|-valign="top"
 
| Drag || {{{Drag|??}}}  
 
| Drag || {{{Drag|??}}}  
|-
+
|-valign="top"
 
| Max Temp. || {{{Temp|??}}}  
 
| Max Temp. || {{{Temp|??}}}  
|-
+
|-valign="top"
 
| Impact Tolerance || {{{Tolerance|??}}}  
 
| Impact Tolerance || {{{Tolerance|??}}}  
 
{{{More|}}}
 
{{{More|}}}
|-
+
|-valign="top"
 
| Since Version || {{{Since|??}}}
 
| Since Version || {{{Since|??}}}
 
|-
 
|-

Revision as of 03:31, 15 October 2012

Infobox/Part
?? (??)
Part image
Cost  ??
Manufacturer  ??
Total Mass  ?? kg
Drag  ??
Max Temp.  ??
Impact Tolerance  ??
Since Version  ??
[[{{{cfg}}}|view part.cfg]]


Template

{{Partbox
|Name=
|Role=
|File=
|Costs=
|Manufacturer=
|Mass=
|More=
|since=
|cfg=
|Class=
}}

Usage

This templates takes the following arguments:

Argument Explanation Example mandatory?
Name Name of the part. Defaults to {{PAGENAME}} FL-T500 Fuel Tank no
Role Role the part fulfills Fuel Tank yes
Class The Part Module the part uses FuelTank yes
File Name of the file to be displayed FL-T500 Fuel Tank.jpg yes
Costs Costs of the part 550 yes
Mass Mass of the part 2.5 yes
More More module-specific information (see below) no
since Version the part first appeared in 0.7.3 yes
cfg Link to cfg-entry in wiki Parts/FuelTank/parts.cfg yes

More fields

Many fields are module-specific. As it is difficult to use pipes | in templates, the template {{PB-more}} is used. Refer to this example:

{{Partbox
|Name=FL-T500 Fuel Tank
|Role=Fuel Tank
|File=FL-T500 Fuel Tank.jpg
|Costs=550
|Mass=25
|More=
{{PB-more|Dry Mass|0.3 kg}}
{{PB-more|Fuel|500}}
|cfg=Parts/FuelTank/parts.cfg
|Class=FuelTank
}}