Difference between revisions of "Template:Infobox/Part"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (More fields: Pluralize category for consitency)
PD (talk)
m (cut out thumbnail as we don't have that feature at this time. About to check some articles to see if that royally ***gers up some pages, if so I will revert)
Line 4: Line 4:
 
| colspan="2" style="text-align: center;" | ''{{{Role|??}}}''
 
| colspan="2" style="text-align: center;" | ''{{{Role|??}}}''
 
|-
 
|-
| colspan="2" style="text-align: center;" | [[File:{{{File|Image needed.jpg}}}|180px]]
+
| colspan="2" style="text-align: center;" | [[File:{{{File|Image needed.jpg}}}|<!-- cut out for now as we have no thumbnail feature: 180px-->]]
 
|-
 
|-
 
| Costs || {{{Costs|??}}}
 
| Costs || {{{Costs|??}}}

Revision as of 14:03, 16 January 2012

Infobox/Part
??
[[File:Image needed.jpg|]]
Costs  ??
Mass  ?? kg
since  ??
[[{{{cfg}}}|view part.cfg]]


Template

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

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
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
}}