Difference between revisions of "Template:Infobox/Part"
m (! leftover cfg cat.) |
(- deprecated stuff. + some improvemements.) |
||
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;" | + | | colspan="3" style="background: #ccc; padding: .5em; text-align: center; font-size: large; font-weight: bold;" | {{{name|{{BASEPAGENAME}}}}} |
|- | |- | ||
− | | colspan="3" | [[File | + | | colspan="3" | [[File:{{{file|Image-needed.png}}}|200px|{{lang|en=Part image|de=Bild des Teils}}]] |
|- | |- | ||
− | | colspan="3" style="text-align: center;" | '''{{{role| | + | | colspan="3" style="text-align: center;" | '''{{{role|Part}}}''' {{Partbox/Manufacturer Entry|{{Partbox/Manufacturer|{{{manufacturer|SOTR}}}}}}} |
{{#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}}}}}}}}}}} | {{#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|de=Kosten|ru=Цена|pl=Cena}} | | colspan="2" | {{lang|en=Cost|de=Kosten|ru=Цена|pl=Cena}} | ||
− | | {{{costs | + | | {{{costs}}} ¤ |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Total Mass|de=Masse|ru=Масса|pl=Masa całkowita}} | | colspan="2" | {{lang|en=Total Mass|de=Masse|ru=Масса|pl=Masa całkowita}} | ||
− | | {{{mass | + | | {{{mass}}} t {{{mass note|}}} |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Drag|de=Luft­wiederstand|ru=Лобовое сопротивление|pl=Opór}} | | colspan="2" | {{lang|en=Drag|de=Luft­wiederstand|ru=Лобовое сопротивление|pl=Opór}} | ||
− | | {{{drag | + | | {{{drag}}} {{{drag note|}}} |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Max Temp.|de=Max. Temp.|ru=максимальная температура|pl=Maks. Temp.|pt=Temperatura máxima}} | | colspan="2" | {{lang|en=Max Temp.|de=Max. Temp.|ru=максимальная температура|pl=Maks. Temp.|pt=Temperatura máxima}} | ||
− | | {{{temp | + | | {{{temp}}} K |
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Impact Tolerance|de=Einschlags­toleranz|ru=целостность конструкции|pl=Wytrzymałość zderzenia}} | | colspan="2" | {{lang|en=Impact Tolerance|de=Einschlags­toleranz|ru=целостность конструкции|pl=Wytrzymałość zderzenia}} | ||
− | | {{{tolerance | + | | {{{tolerance}}} m/s |
− | {{{more| | + | {{{more|}}}{{#if: {{{additional|}}}| |
{{!}}- | {{!}}- | ||
{{!}} colspan="3" {{!}} {{lang|en=Additional:|de=Weiteres:|pl=Dodatkowe:|pt=Adicional:}} | {{!}} colspan="3" {{!}} {{lang|en=Additional:|de=Weiteres:|pl=Dodatkowe:|pt=Adicional:}} | ||
Line 28: | Line 28: | ||
|- valign="top" | |- valign="top" | ||
| colspan="2" | {{lang|en=Since Version|de=Seit Version|pl=Od wersji|pt=Desde a versão}} | | colspan="2" | {{lang|en=Since Version|de=Seit Version|pl=Od wersji|pt=Desde a versão}} | ||
− | | {{#if: {{{since| | + | | {{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{lang|en=Unknown|pl=Nieznane|pt=Desconhecido}}}} |
|- | |- | ||
− | | colspan="3" style="text-align: center;" | <small>{{#if: {{{class| | + | | colspan="3" style="text-align: center;" | <small>{{#if: {{{class|}}}|[[API:{{{class}}}|{{{class}}}]]|{{lang|en=Unknown API|pl=Nieznane API}}}} · {{#if: {{{part|}}}|{{#if: {{{parent|}}}|{{Booland|{{#ifexist: Parts/{{{parent}}}/{{{part}}}/part.cfg||1}}|{{#ifexist: Parts/{{{part}}}/part.cfg|1}}|[[Parts/{{{part}}}/part.cfg|part.cfg]][[Category:Partbox with unmoved part.cfg]]|[[Parts/{{{parent}}}/{{{part}}}/part.cfg|part.cfg]]{{#ifexist: Parts/{{{part}}}/part.cfg|[[Category:Partbox with leftover part.cfg]]}}}}|[[Parts/{{{part}}}/part.cfg|part.cfg]][[Category:Partbox with missing parameters]]}}|{{lang|en=Unknown cfg|pl=Nieznane cfg}}}} |
{{#if: {{{notes|}}}|{{!}}- | {{#if: {{{notes|}}}|{{!}}- | ||
{{!}} colspan="3" style="font-size:smaller;" {{!}} | {{!}} colspan="3" style="font-size:smaller;" {{!}} | ||
Line 36: | Line 36: | ||
{{{notes}}} | {{{notes}}} | ||
}} | }} | ||
− | | | + | |}</includeonly><noinclude>{{Template:Partbox |
|name=TVR-1180C Mk1 Stack Tri-Coupler | |name=TVR-1180C Mk1 Stack Tri-Coupler | ||
|role=Adapter | |role=Adapter | ||
Line 58: | Line 58: | ||
{{Template:Partbox/Parameters}} | {{Template:Partbox/Parameters}} | ||
− | + | If a mandatory parameter is missing [[:Category:Partbox with missing parameters]] will be added. | |
− | With the new folder structure since {{version|0.20}} the ''part.cfg'' should be placed at ''Parts/{{{parent}}}/{{{part}}}/part.cfg''. If the configuration file wasn't moved yet the [[:Category:Partbox with unmoved part.cfg]] is added. | + | With the new folder structure since {{version|0.20}} the ''part.cfg'' should be placed at ''Parts/{{{parent}}}/{{{part}}}/part.cfg''. If the configuration file wasn't moved yet the [[:Category:Partbox with unmoved part.cfg]] is added. If both a new and an old part.cfg exist the page is added to [[:Category:Partbox with leftover part.cfg]]. |
=== More Parameter === | === More Parameter === | ||
− | To add additional fields the more {{{ | + | To add additional fields the more {{{more}}} parameter should be used with {{Tl|Partbox/Line}}. |
=== Manufacturer === | === Manufacturer === | ||
Line 95: | Line 95: | ||
* More are following… | * More are following… | ||
− | + | These subtemplates are categorised in [[:Category:Partbox Templates]]. | |
== Template == | == Template == | ||
Line 114: | Line 114: | ||
|since= | |since= | ||
|part= | |part= | ||
+ | |parent= | ||
}}</pre> | }}</pre> | ||
Revision as of 21:41, 24 June 2013
Contents
Usage
Parameters
If a mandatory parameter is missing Category:Partbox with missing parameters will be added.
With the new folder structure since version 0.20 the part.cfg should be placed at Parts/{{{parent}}}/{{{part}}}/part.cfg. If the configuration file wasn't moved yet the Category:Partbox with unmoved part.cfg is added. If both a new and an old part.cfg exist the page is added to Category:Partbox with leftover part.cfg.
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/SolidFuelBooster}}
- Liquid Fuel Tank: {{Partbox/FuelTank/Liquid}}
- Jet Fuel Tank: {{Partbox/FuelTank/Jet}}
- Xenon Tank: {{Partbox/FuelTank/Xenon}}
- RCS Fuel Tanks: {{Partbox/FuelTank/RCS}}
- SAS: {{Partbox/SAS}}
- RCS thrusters: {{Partbox/RCSModule}}
- Decouplers: {{Partbox/Decoupler}}
- Rover wheels: {{Partbox/RoverWheel}}
- Sensors: {{Partbox/Sensor}}
- Solar panel: {{Partbox/SolarPanel}}
- Battery: {{Partbox/Battery}}
- Wing: {{Partbox/Wing}}
- Docking Port: {{Partbox/DockingPort}}
- Parachute: {{Partbox/Parachute}}
- Control surface: {{Partbox/ControlSurface}}
- Ladder: {{Partbox/Ladder}}
- Landing Gear: {{Partbox/LandingStrut}}
- Antenna: {{Partbox/Antenna}}
- Struts: {{Partbox/Strut}}
- More are following…
These subtemplates are categorised in Category:Partbox Templates.
Template
{{Partbox |name= |role= |class= |file= |size= |size2= |costs= |mass= |drag= |temp= |tolerance= |manufacturer= |more= |since= |part= |parent= }}
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