Difference between revisions of "Template:Infobox/Part"
From Kerbal Space Program Wiki
(*add new partbox system with multiple subtemplates;) |
m (+non break spaces between unit and value; +link to radial size;) |
||
Line 6: | Line 6: | ||
|- | |- | ||
| colspan="2" style="text-align: center;" | '''{{{Role}}}''' <span style="font-size:smaller;">{{#if: {{{Manufacturer|}}}|by <span style="white-space:nowrap;">''{{{Manufacturer}}}''</span>}}</span> | | colspan="2" style="text-align: center;" | '''{{{Role}}}''' <span style="font-size:smaller;">{{#if: {{{Manufacturer|}}}|by <span style="white-space:nowrap;">''{{{Manufacturer}}}''</span>}}</span> | ||
− | {{#if: {{{size|}}}|{{PB-more|{{lang|en=Radial size|ru=Размер|pl=Rozmiar}}|{{Radial Size|{{{size}}}}}{{#if: {{{size2|}}}|, {{Radial Size|{{{size2}}}}}}}}}}} | + | {{#if: {{{size|}}}|{{PB-more|[[Radial size{{if lang}}|{{lang|en=Radial size|ru=Размер|pl=Rozmiar}}]]|{{Radial Size|{{{size}}}}}{{#if: {{{size2|}}}|, {{Radial Size|{{{size2}}}}}}}}}}} |
|- valign="top" | |- valign="top" | ||
| {{lang|en=Cost|ru=Цена|pl=Cena}} | | {{lang|en=Cost|ru=Цена|pl=Cena}} | ||
Line 12: | Line 12: | ||
|- valign="top" | |- valign="top" | ||
| {{lang|en=Total Mass|ru=Масса|pl=Masa całkowita}} | | {{lang|en=Total Mass|ru=Масса|pl=Masa całkowita}} | ||
− | | {{{Mass}}} t | + | | {{{Mass}}} t |
|- valign="top" | |- valign="top" | ||
| {{lang|en=Drag|ru=Лобовое сопротивление|pl=Opór}} | | {{lang|en=Drag|ru=Лобовое сопротивление|pl=Opór}} | ||
Line 18: | Line 18: | ||
|- valign="top" | |- valign="top" | ||
| {{lang|en=Max Temp.|ru=максимальная температура|pl=Maks. Temp.}} | | {{lang|en=Max Temp.|ru=максимальная температура|pl=Maks. Temp.}} | ||
− | | {{{Temp}}} | + | | {{{Temp}}} K |
|- valign="top" | |- valign="top" | ||
| {{lang|en=Impact Tolerance|ru=целостность конструкции|pl=Tolerancja}} | | {{lang|en=Impact Tolerance|ru=целостность конструкции|pl=Tolerancja}} | ||
− | | {{{Tolerance}}} m/s | + | | {{{Tolerance}}} m/s |
{{{More|}}} | {{{More|}}} | ||
|- valign="top" | |- valign="top" |
Revision as of 18:32, 12 April 2013
Template:PartboxParameters
For compatibility it supports the {{{cfg}}} parameter but should be replaced by the {{{part}}} parameter.
More Parameter
To add additional fields the more {{{More}}} parameter should be used with {{PB-more}}.
Roles
For different roles with special additional parameters one of the following templates should be used:
- Command pods: {{Partbox/CommandPod}}
- Liquid fuel engines: {{Partbox/LiquidFuelEngine}}
- Jet engines: {{Partbox/JetEngine}}
- Solid Fuel Boosters: {{Partbox/SolidFuelBoosters}}
- Liquid Fuel Tanks and Jet Fuel Tanks: {{Partbox/FuelTanks}}
- RCS Fuel Tanks: {{Partbox/RCSFuelTank}}
- SAS: {{Partbox/SAS}}
- RCS thrusters: {{Partbox/RCSModule}}
- Decouplers: {{Partbox/Decoupler}}
- Rover wheels: {{Partbox/RoverWheels}}
- More are following…
Those templates don't support the {{{cfg}}} parameter!
Template
{{Partbox |Name= |Role= |Class= |File= |size= |size2= |Costs= |Mass= |Drag= |Temp= |Tolerance= |Manufacturer= |More= |since= |part= }}
Example
Example used on this page:
{{Template:Partbox |Name=TVR-1180C Mk1 Stack Tri-Coupler |Role=Adapter |Class= |File=Tvr-1180C_mk1_stack_tri-coupler.jpg |size=small |Costs=680 |Mass=0.3 |Drag=0.3 |Temp=3400 |Tolerance=12 |Manufacturer=Found lying by the side of the road |since=0.7.3 |part=stackTriCoupler }}