Difference between revisions of "Template:Infobox/Part"
m (→Manufacturer: !fixed link;) |
(+translation info;) |
||
Line 5: | Line 5: | ||
| colspan="3" | [[File:{{#if: {{{file|}}}|{{{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|{{{Role}}}}}}''' <span style="font-size:smaller;">{{#if: {{{manufacturer|{{{Manufacturer|}}}}}}|by <span style="white-space:nowrap;">''{{{manufacturer|{{{Manufacturer}}}}}}''</span>}}</span> | + | | colspan="3" style="text-align: center;" | '''{{{role|{{{Role}}}}}}''' <span style="font-size:smaller;">{{#if: {{{manufacturer|{{{Manufacturer|}}}}}}|{{lang|en=by|de=von}} <span style="white-space:nowrap;">''{{{manufacturer|{{{Manufacturer}}}}}}''</span>}}</span> |
− | {{#if: {{{size|}}}|{{Partbox/Line|[[Radial size{{if lang}}|{{lang|en=Radial size|ru=Размер|pl=Rozmiar}}]]|{{Radial Size|{{{size}}}}}{{#if: {{{size2|}}}|, {{Radial Size|{{{size2}}}}}}}}}}} | + | {{#if: {{{size|}}}|{{Partbox/Line|[[Radial size{{if lang}}|{{lang|en=Radial size|de=Größe|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|de=Kosten|ru=Цена|pl=Cena}} |
| {{{costs|{{{Costs}}}}}} ¤ | | {{{costs|{{{Costs}}}}}} ¤ | ||
|- valign="top" | |- valign="top" | ||
− | | colspan="2" | {{lang|en=Total Mass|ru=Масса|pl=Masa całkowita}} | + | | colspan="2" | {{lang|en=Total Mass|de=Masse|ru=Масса|pl=Masa całkowita}} |
| {{{mass|{{{Mass}}}}}} t | | {{{mass|{{{Mass}}}}}} t | ||
|- valign="top" | |- valign="top" | ||
− | | colspan="2" | {{lang|en=Drag|ru=Лобовое сопротивление|pl=Opór}} | + | | colspan="2" | {{lang|en=Drag|de=Luft­wiederstand|ru=Лобовое сопротивление|pl=Opór}} |
| {{{drag|{{{Drag}}}}}} | | {{{drag|{{{Drag}}}}}} | ||
|- valign="top" | |- valign="top" | ||
− | | colspan="2" | {{lang|en=Max Temp.|ru=максимальная температура|pl=Maks. Temp.}} | + | | colspan="2" | {{lang|en=Max Temp.|de=Max. Temp.|ru=максимальная температура|pl=Maks. Temp.}} |
| {{{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|de=Einschlags­toleranz|ru=целостность конструкции|pl=Tolerancja}} |
| {{{tolerance|{{{Tolerance}}}}}} m/s | | {{{tolerance|{{{Tolerance}}}}}} m/s | ||
{{{more|{{{More|}}}}}} | {{{more|{{{More|}}}}}} | ||
|- valign="top" | |- valign="top" | ||
− | | colspan="2" | {{lang|en=Since Version|pl=Od wersji}} | + | | colspan="2" | {{lang|en=Since Version|de=Seit Version|pl=Od wersji}} |
| {{#if: {{{since|{{{Since|}}}}}}|{{version|{{{since|{{{Since}}}}}}|}}|{{lang|en=Unknown}}}} | | {{#if: {{{since|{{{Since|}}}}}}|{{version|{{{since|{{{Since}}}}}}|}}|{{lang|en=Unknown}}}} | ||
|- | |- | ||
Line 113: | Line 113: | ||
|part=stackTriCoupler | |part=stackTriCoupler | ||
}}</pre> | }}</pre> | ||
+ | |||
+ | == Translation == | ||
+ | To translate this template or one of the subtemplates see also [[Kerbal_Space_Program_Wiki:Translation#Templates|this article]]. | ||
+ | |||
+ | At the moment only English is supported by all templates. | ||
+ | * Deutsch (German): Partbox complete, Subtemplates partially | ||
+ | * Polish (Polski): Partbox mostly, Subtemplates partially | ||
+ | * Русский (Russian): Partbox partially, Subtemplates partially | ||
[[Category:Templates|Partbox]] | [[Category:Templates|Partbox]] | ||
+ | [[Category:Translating templates|Partbox]] | ||
</noinclude> | </noinclude> |
Revision as of 17:09, 18 April 2013
Contents
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}}.
Manufacturer
The template {{Partbox/Manufacturer}} is a template to quickly add a manufacturer.
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}}
- Docking Port: {{Partbox/DockingPort}}
- Parachute: {{Partbox/Parachute}}
- 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 }}
Translation
To translate this template or one of the subtemplates see also this article.
At the moment only English is supported by all templates.
- Deutsch (German): Partbox complete, Subtemplates partially
- Polish (Polski): Partbox mostly, Subtemplates partially
- Русский (Russian): Partbox partially, Subtemplates partially