Difference between revisions of "Template:Infobox/Part"
From Kerbal Space Program Wiki
m (→Roles: +Battery;) |
(+wing partbox; !support uppercase Since;) |
||
Line 25: | Line 25: | ||
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Since Version|pl=Od wersji}} | | colspan="2" | {{lang|en=Since Version|pl=Od wersji}} | ||
− | | {{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{lang|en=Unknown}}}} | + | | {{#if: {{{since|{{{Since|}}}}}}|{{version|{{{since|{{{Since}}}}}}|}}|{{lang|en=Unknown}}}} |
|- | |- | ||
| colspan="3" style="text-align: center;" | <small>{{#if: {{{class|{{{Class|}}}}}}|[[API:{{{class|{{{Class}}}}}}|{{{class|{{{Class}}}}}}]]|Unknown API}} · {{#if: {{{part|}}}|[[Parts/{{{part}}}/part.cfg|part.cfg]]|{{#if: {{{cfg|}}}|[[{{{cfg}}}|part.cfg]]|Unknown cfg}}}} | | colspan="3" style="text-align: center;" | <small>{{#if: {{{class|{{{Class|}}}}}}|[[API:{{{class|{{{Class}}}}}}|{{{class|{{{Class}}}}}}]]|Unknown API}} · {{#if: {{{part|}}}|[[Parts/{{{part}}}/part.cfg|part.cfg]]|{{#if: {{{cfg|}}}|[[{{{cfg}}}|part.cfg]]|Unknown cfg}}}} | ||
Line 67: | Line 67: | ||
* [[Parts#Electricity|Solar panel]]: {{Tl|Partbox/SolarPanel}} | * [[Parts#Electricity|Solar panel]]: {{Tl|Partbox/SolarPanel}} | ||
* [[Parts#Electricity|Battery]]: {{Tl|Partbox/Battery}} | * [[Parts#Electricity|Battery]]: {{Tl|Partbox/Battery}} | ||
+ | * [[Parts#Wings_and_Wing_Parts|Wing]]: {{Tl|Partbox/Wing}} | ||
* More are following… | * More are following… | ||
Revision as of 10:14, 14 April 2013
Parameters
For compatibility it supports the {{{cfg}}} parameter but should be replaced by the {{{part}}} parameter. This template also supports uppercase parameter (Mass instead of mass) but because they should be removed, new usages should use the lower case parameter. If an article/template uses the uppercase parameter it will be added to Category:Partbox usage with uppercase.
More Parameter
To add additional fields the more {{{More}}} parameter should be used with {{Partbox/Line}}.
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}}
- Sensors: {{Partbox/Sensors}}
- Solar panel: {{Partbox/SolarPanel}}
- Battery: {{Partbox/Battery}}
- Wing: {{Partbox/Wing}}
- More are following…
Those templates don't support the {{{cfg}}} parameter! Also they don't support uppercase parameters.
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 }}