Difference between revisions of "Template:Infobox/Part"
From Kerbal Space Program Wiki
m (→More Parameter: *update to Partbox/Line;) |
(+update to lower case parameters; *use Partbox/Line;) |
||
Line 1: | Line 1: | ||
<includeonly>{| style="padding: 0.5em; font-size: 90%; background: #f6f6f6; border: 1px solid #ccc; float: right; width: 200px; margin-left: 1em" | <includeonly>{| style="padding: 0.5em; font-size: 90%; background: #f6f6f6; border: 1px solid #ccc; float: right; width: 200px; margin-left: 1em" | ||
|- | |- | ||
− | | colspan="3" style="background: #ccc; padding: .5em; text-align: center; font-size: large; font-weight: bold;" | {{#if: {{{Name|}}}|{{{Name}}}|{{BASEPAGENAME}}}} | + | | colspan="3" style="background: #ccc; padding: .5em; text-align: center; font-size: large; font-weight: bold;" | {{#if: {{{name|}}}|{{{name}}}|{{#if: {{{Name|}}}|{{{Name}}}|{{BASEPAGENAME}}}}}} |
|- | |- | ||
− | | colspan="3" | [[File:{{#if: {{{File|}}}|{{{File}}}|Image-needed.png}}|200px|Part image]] | + | | colspan="3" | [[File:{{#if: {{{file|}}}|{{{file}}}|{{#if: {{{File|}}}|{{{File}}}|Image-needed.png}}}}|200px|Part image]] |
|- | |- | ||
− | | colspan="3" style="text-align: center;" | '''{{{Role}}}''' <span style="font-size:smaller;">{{#if: {{{Manufacturer|}}}|by <span style="white-space:nowrap;">''{{{Manufacturer}}}''</span>}}</span> | + | | colspan="3" style="text-align: center;" | '''{{{role|{{{Role}}}}}}''' <span style="font-size:smaller;">{{#if: {{{manufacturer|{{{Manufacturer|}}}}}}|by <span style="white-space:nowrap;">''{{{manufacturer|{{{Manufacturer}}}}}}''</span>}}</span> |
− | {{#if: {{{size|}}}|{{ | + | {{#if: {{{size|}}}|{{Partbox/Line|[[Radial size{{if lang}}|{{lang|en=Radial size|ru=Размер|pl=Rozmiar}}]]|{{Radial Size|{{{size}}}}}{{#if: {{{size2|}}}|, {{Radial Size|{{{size2}}}}}}}}}}} |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Cost|ru=Цена|pl=Cena}} | | colspan="2" | {{lang|en=Cost|ru=Цена|pl=Cena}} | ||
− | | {{{Costs}}} | + | | {{{costs|{{{Costs}}}}}} ¤ |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Total Mass|ru=Масса|pl=Masa całkowita}} | | colspan="2" | {{lang|en=Total Mass|ru=Масса|pl=Masa całkowita}} | ||
− | | {{{Mass}}} t | + | | {{{mass|{{{Mass}}}}}} t |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Drag|ru=Лобовое сопротивление|pl=Opór}} | | colspan="2" | {{lang|en=Drag|ru=Лобовое сопротивление|pl=Opór}} | ||
− | | {{{Drag}}} | + | | {{{drag|{{{Drag}}}}}} |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Max Temp.|ru=максимальная температура|pl=Maks. Temp.}} | | colspan="2" | {{lang|en=Max Temp.|ru=максимальная температура|pl=Maks. Temp.}} | ||
− | | {{{Temp}}} K | + | | {{{temp|{{{Temp}}}}}} K |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Impact Tolerance|ru=целостность конструкции|pl=Tolerancja}} | | colspan="2" | {{lang|en=Impact Tolerance|ru=целостность конструкции|pl=Tolerancja}} | ||
− | | {{{Tolerance}}} m/s | + | | {{{tolerance|{{{Tolerance}}}}}} m/s |
− | {{{More|}}} | + | {{{more|{{{More|}}}}}} |
|- 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|}}}|{{version|{{{since}}}|}}|{{lang|en=Unknown}}}} | ||
|- | |- | ||
− | | colspan="3" style="text-align: center;" | <small>{{#if: {{{Class|}}}|[[API:{{{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}}}} |
|}</includeonly><noinclude>{{Box|notice.svg|'''This article is currently undergoing a major expansion or revamping.''' While the transition is in progress there could be inconsistencies.|#aaaaff|}}{{Template:Partbox | |}</includeonly><noinclude>{{Box|notice.svg|'''This article is currently undergoing a major expansion or revamping.''' While the transition is in progress there could be inconsistencies.|#aaaaff|}}{{Template:Partbox | ||
|Name=TVR-1180C Mk1 Stack Tri-Coupler | |Name=TVR-1180C Mk1 Stack Tri-Coupler | ||
Line 71: | Line 71: | ||
== Template == | == Template == | ||
<pre>{{Partbox | <pre>{{Partbox | ||
− | | | + | |name= |
− | | | + | |role= |
− | | | + | |class= |
− | | | + | |file= |
|size= | |size= | ||
|size2= | |size2= | ||
− | | | + | |costs= |
− | | | + | |mass= |
− | | | + | |drag= |
− | | | + | |temp= |
− | | | + | |tolerance= |
− | | | + | |manufacturer= |
− | | | + | |more= |
|since= | |since= | ||
|part= | |part= |
Revision as of 14:25, 13 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 {{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}}
- 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 }}