Difference between revisions of "Template:Infobox/Part"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Made it possible to translate the manufacturer.)
m (new roles)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox
 
<includeonly>{{Infobox
|name={{{name|}}}
+
|name={{Dict/part name|{{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}}}
 
|file={{{file|}}}
 
|file={{{file|}}}
|hovertext={{lang|en=Part image|fr=Image de la pièce|es=Imagen de la parte|de=Bild des Bauteils|hr=Slika dijela|ru=Изображение детали|ko=파트 이미지|pt=Imagem da peça|hu=Az alkatrész képe|ja=パーツ画像|it=Immagine della parte|tr=Parça resmi}}
+
|hovertext={{Infobox/Part/Dict|Image}}
 
|lines=
 
|lines=
{{Infobox/Line|1={{#if: {{Infobox/Part/roles|{{{type|}}}|{{{role|}}}}}|'''{{Infobox/Part/roles|{{{type|}}}|{{{role|}}}}}'''}} <span style="font-size:smaller; white-space:normal;">{{lang|en=by|fr=par|es=por|de=von|hr=proizveo|pl=wyk. przez|ru=от|pt=por|hu=gyártója|it=di|tr=Yapımcı:}} {{#if: {{{type|}}}{{{role|}}}|<br />}}{{Infobox/Part/Manufacturer entry|{{Infobox/Part/ManufacturerUntranslated|{{#if: {{{manufacturer|}}}|{{{manufacturer}}}|?}} }}|{{Infobox/Part/Manufacturer|{{#if: {{{manufacturer|}}}|{{{manufacturer}}}|?}}}}}}{{if||{{{manufacturer2|}}}| {{Dict|and}} {{Infobox/Part/Manufacturer entry|{{Infobox/Part/ManufacturerUntranslated|{{#if: {{{manufacturer2|}}}|{{{manufacturer2}}}|?}} }}|{{Infobox/Part/Manufacturer|{{#if: {{{manufacturer2|}}}|{{{manufacturer2}}}|?}}}}}}}}</span>|style=text-align: center}}{{if||{{{size|}}}|
+
{{Infobox/Line|1={{#if: {{Infobox/Part/roles|{{{type|}}}|{{{role|}}}}}|'''{{Infobox/Part/roles|{{{type|}}}|{{{role|}}}}}'''}} <span style="font-size:smaller; white-space:normal;">{{Dict|by}} {{#if: {{{type|}}}{{{role|}}}|<br/>}}{{Infobox/Part/Manufacturer entry|{{Infobox/Part/ManufacturerUntranslated|{{#if: {{{manufacturer|}}}|{{{manufacturer}}}|?}}}}|{{Infobox/Part/Manufacturer|{{#if: {{{manufacturer|}}}|{{{manufacturer}}}|?}}}}}}{{if||{{{manufacturer2|}}}| {{Dict|and}} {{Infobox/Part/Manufacturer entry|{{Infobox/Part/ManufacturerUntranslated|{{#if: {{{manufacturer2|}}}|{{{manufacturer2}}}|?}}}}|{{Infobox/Part/Manufacturer|{{#if: {{{manufacturer2|}}}|{{{manufacturer2}}}|?}}}}}}}}</span>|style=text-align: center}}{{if||{{{size|}}}|
{{Infobox/Part/Line|[[Radial size{{if lang}}|{{lang|en=Radial size|es=Tamaño radial|de=Größe|ru=Размер|hr=Promjer|pl=Rozmiar|fr=Taille|zh-cn=径向尺寸|ja=接続サイズ|ko=직경|pt=Tamanho|hu=Méret|it=Diametro radiale|tr=Yanal boyut}}]]|2=<span style="white-space:normal;">{{Radial Size|{{{size}}}}}{{#if: {{{size2|}}}|, {{Radial Size|{{{size2}}}}}}}{{#if: {{{size3|}}}|, {{Radial Size|{{{size3}}}}}}}</span>}}}}{{if||{{{height|}}}|
+
{{Infobox/Part/Line|[[Radial size{{if lang}}|{{Infobox/Part/Dict|Size}}]]|2=<span style="white-space:normal;">{{Radial Size|{{{size}}}}}{{#if: {{{size2|}}}|, {{Radial Size|{{{size2}}}}}}}{{#if: {{{size3|}}}|, {{Radial Size|{{{size3}}}}}}}</span>}}}}
{{Infobox/Line|Height|{{{height}}}&nbsp;{{lang|en=m|ru=м}}}}}}
 
 
{{Infobox/Line|{{Dict|Cost}}|{{Formatnum|{{{costs}}}|2}}&nbsp;{{Mark|fund}}|{{#if: {{{lf|}}}{{{ox|}}}{{{mp|}}}{{{sf|}}}{{{xg|}}}{{{ia|}}}|{{Formatnum|{{#expr: {{{costs}}}-(({{{lf|0}}})*0.8+({{#if: {{{ox|}}}|{{{ox}}}|{{#if: {{{lf|}}}|{{{lf}}}*11/9|0}}}})*0.18+({{{mp|0}}})*1.2+({{{sf|0}}})*0.6+({{{xg|0}}})*4+({{{ia|0}}})*0+({{{or|0}}})*0.02+({{{ab|0}}})*0.5)}}|2}}&nbsp;{{Mark|fund}}}}
 
{{Infobox/Line|{{Dict|Cost}}|{{Formatnum|{{{costs}}}|2}}&nbsp;{{Mark|fund}}|{{#if: {{{lf|}}}{{{ox|}}}{{{mp|}}}{{{sf|}}}{{{xg|}}}{{{ia|}}}|{{Formatnum|{{#expr: {{{costs}}}-(({{{lf|0}}})*0.8+({{#if: {{{ox|}}}|{{{ox}}}|{{#if: {{{lf|}}}|{{{lf}}}*11/9|0}}}})*0.18+({{{mp|0}}})*1.2+({{{sf|0}}})*0.6+({{{xg|0}}})*4+({{{ia|0}}})*0+({{{or|0}}})*0.02+({{{ab|0}}})*0.5)}}|2}}&nbsp;{{Mark|fund}}}}
|type1={{lang|en=total|fr=total|es=total|de=gesamte|ru=полная|hr=ukupna|pl=całkowita|pt=total|hu=teljes|ja=合計|ko=합계|it=totale|tr=toplam}}
+
|type1={{Infobox/Part/Dict|Total}}
|type2={{lang|en=dry|fr=vide|es=seco|de=leer|ru=сухая|hr=suha|pl=sucha|pt=vazio|hu=üres|ja=乾燥|ko=건조|it=a secco|tr=boş}}}}
+
|type2={{Infobox/Part/Dict|Dry}}}}
<!--{{Infobox/Line|{{lang|ru=Полная масса|hr=Ukupna masa|pl=Masa całkowita|fr=Masse totale|zh-cn=质量|ko=총 질량|pt=Massa total|hu=teljes tömeg|ja=合計質量}}|{{{mass}}}&nbsp;{{lang|en=t|ru=[[w:ru:Тонна|т]]}} {{{mass note|}}}}}-->
+
{{Infobox/Line|{{Infobox/Part/Dict|Mass}}|{{Formatnum|{{#expr: {{{mass}}}+({{{lf|0}}})*0.005+({{#if: {{{ox|}}}|{{{ox}}}|{{#if: {{{lf|}}}|{{{lf}}}*11/9|0}}}})*0.005+({{{mp|0}}})*0.004+({{{sf|0}}})*0.0075+({{{xg|0}}})*0.0001+({{{ia|0}}})*0.005+({{{or|0}}})*0.01+({{{ab|0}}})*0.001}}|2}}&nbsp;{{Dict|t}} {{{mass note|}}}{{#ifeq: {{lc:{{{physics insignificant}}}}}|y|{{#tag:ref|{{Infobox/Part/Dict|Massless}}|name="phyinsig"|group="{{{nref|N}}}"}}}}|{{#if: {{{lf|}}}{{{ox|}}}{{{mp|}}}{{{sf|}}}{{{xg|}}}{{{ia|}}}|{{Formatnum|{{{mass}}}|2}}&nbsp;{{Dict|t}}}}
{{Infobox/Line|{{lang|en=Mass|fr=Masse|es=Masa|de=Masse|ru=Масса|hr=Masa|pl=Masa|pt=Massa|hu=Tömeg|ja=質量|ko=총 질량ù|it=Massa|tr=Kütle}}|{{Formatnum|{{#expr: {{{mass}}}+({{{lf|0}}})*0.005+({{#if: {{{ox|}}}|{{{ox}}}|{{#if: {{{lf|}}}|{{{lf}}}*11/9|0}}}})*0.005+({{{mp|0}}})*0.004+({{{sf|0}}})*0.0075+({{{xg|0}}})*0.0001+({{{ia|0}}})*0.005+({{{or|0}}})*0.01+({{{ab|0}}})*0.001}}|2}}&nbsp;{{lang|en=t|ru=[[w:ru:Тонна|т]]}} {{{mass note|}}}{{#ifeq: {{lc:{{{physics insignificant}}}}}|y|{{#tag:ref|The mass and drag are from the part config, but the game handles it [[Massless part|massless/dragless]].|name="phyinsig"|group="{{{nref|N}}}"}}}}|{{#if: {{{lf|}}}{{{ox|}}}{{{mp|}}}{{{sf|}}}{{{xg|}}}{{{ia|}}}|{{Formatnum|{{{mass}}}|2}}&nbsp;{{lang|en=t|ru=т}}}}
+
|type1={{Infobox/Part/Dict|Total}}
|type1={{lang|en=total|fr=totale|es=total|de=gesamte|ru=полная|hr=ukupna|pl=całkowita|pt=total|hu=teljes|ja=合計|ko=합계it=totale|tr=toplam}}
+
|type2={{Infobox/Part/Dict|Dry}}}}
|type2={{lang|en=dry|fr=vide|es=seco|de=leer|ru=сухая|hr=suha|pl=sucha|pt=vazio|hu=üres|ja=乾燥|ko=건조|it=a secco|tr=boş}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Drag}}|{{{drag}}} {{{drag note|}}}{{#ifeq: {{lc:{{{physics insignificant}}}}}|y|{{#tag:ref|{{Infobox/Part/Dict|Massless}}|name="phyinsig"|group="{{{nref|N}}}"}}}}}}
{{Infobox/Line|{{lang|en=Drag|es=Resistencia|de=Luft&shy;wiederstand|ru=Аэродинамическое сопротивление|hr=Aerodinamični otpor|pl=Opór|fr=Traînée|zh-cn=阻力|ko=항력|pt=Arrasto atmosférico|hu=Légellen&shy;állás|ja=空気抵抗|it=Resistenza aerodinamica|tr=Aerodinamik sürtünme}}|{{{drag}}} {{{drag note|}}}{{#ifeq: {{lc:{{{physics insignificant}}}}}|y|{{#tag:ref|{{lang|en=The mass and drag are from the part config, but the game handles it [[Massless part|massless/dragless]].|ru=Масса и аэродинамическое сопротивление взяты из файла "part.cfg", но игра обрабатывает их как [[Massless part/ru|невесомые и без сопротивления]].|hu=A játék ezt [[Massless part/hu|fizikamentes]] alkatészként kezeli.|it=La massa e la resistenza vengono dalla configurazione della parte, ma il gioco la gestisce come [[Massless part|priva di massa/resistenza]].|tr=Kütle ve sürtünme değerleri parça dosyalarından alınmıştır, ancak oyun bu parçayı [[Massless part/tr|kütlesiz/sürtünmesiz]] gibi kullanır. |fr=La masse et la trainée proviennent du fichier de config de la pièce, mais le jeu la gère comme [[Massless part/fr|sans masse/sans frottements]]}}|name="phyinsig"|group="{{{nref|N}}}"}}}}|type1={{#ifeq: {{{drag type|}}}|s|{{lang|en=stowed|de=verstaut|pl=spakoawny|it=stivato|fr=rangée}}|{{{drag type|}}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Temp}}|{{{temp}}}&nbsp;{{Dict|K}}}}
{{Infobox/Line|{{lang|en=Max. Temp.|es=Tempuratura Máximo|de=Höchst&shy;temperatur|hr=Maksimalna temperatura|ru=Макс. температура|pl=Maks. Temp.|pt=Temperatura máxima|fr=Température maximale|zh-cn=最高承受温度|ja=耐熱温度|ko=최고저항온도|hu=Max. Höm.|it=Temp. Massima|tr=Azami sıcaklık}}|{{{temp}}}&nbsp;K}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Tolerance}}|{{{tolerance}}}&nbsp;{{Dict|m}}/{{Dict|s}}}}  
{{Infobox/Line|{{lang|en=Impact Tolerance|es=Resistencia de impacto|de=Einschlags&shy;toleranz|ru=Допустимое усилие|hr=Otpornost na udarac|pl=Wytrzymałość zderzenia|fr=Tolérance d'impact|zh-cn=冲击承受|ja=耐衝撃性|ko=충돌파괴최소속도|pt=Tolerância a impactos|hu=Ütésállóság|it=Tolleranza all'impatto|tr=Çarpışma toleransı}}|{{{tolerance}}}&nbsp;{{lang|en=m/s|ru=м/с}}}}  
+
{{Infobox/Line|{{Infobox/Part/Dict|Research}}|{{#if: {{{research|}}}|{{#if: {{Infobox/Part/ricon|{{{research}}}}}|[[{{Infobox/Part/ricon|{{{research}}}}}|24x24px|link={{{research}}}{{if lang}}]]&nbsp;}}[[{{{research}}}{{if lang}}|{{Dict/sci node|{{{research}}}}}]]|{{Dict|Unknown}}}}}}
{{Infobox/Line|{{lang|en=Research|fr=Niveau de recherche|es=Investigación|de=Forschung|ru=Исследования|hr=Istraživanje|pl=Badania|pt=Pesquisa|hu=Kutatás|ja=開発技術|it=Liv. Ricerca|tr=Araştırma}}|{{#if: {{{research|}}}|{{#if: {{Infobox/Part/ricon|{{{research}}}}}|[[{{Infobox/Part/ricon|{{{research}}}}}|24x24px|link={{{research}}}]]&nbsp;}}[[{{#if: {{{research page|}}}|{{{research page}}}|{{{research}}}}}|{{{research}}}]]|{{Dict|Unknown}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Unlock}}|{{Formatnum|{{{unlock cost}}}}}&nbsp;{{Mark|fund}}}}
{{Infobox/Line|{{lang|en=Unlock cost|pl=Koszt odblokowania|de=Freischalt&shy;kosten|hu=Nyitóár|ja=開発導入費|ru=Стоимость разработки|it=Costo per sblocco|tr=Kilit açma bedeli|fr=Coût pour débloquer}}|{{{unlock cost}}}&nbsp;{{Mark|fund}}}}
 
 
{{Infobox/Line|{{Dict|Since}}|{{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{Dict|Unknown}}}}}}
 
{{Infobox/Line|{{Dict|Since}}|{{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{Dict|Unknown}}}}}}
{{Infobox/Line|{{lang|en=Part configuration|fr=Nom de la pièce dans le code|es=Configuración de partes|de=Bauteilkonfiguration|ru=Конфигурация модуля|hr=Konfiguracija dijela|pl=Plik konfiguracyjny|pt=Configuração da parte|hu=Alkatrész&shy;fajta|ko=설정파일상 이름|it=Codice oggetto config.|tr=Parça değerleri}}|{{#if: {{{part|}}}<!--
+
{{Infobox/Line|{{Infobox/Part/Dict|Config}}|{{#if: {{{part|}}}<!--
-->|style="word-break:break-all;" {{!}} {{#ifeq: {{{dlc|}}}|y|[[MakingHistory/Parts/{{{part}}}/{{{filename|part.cfg}}}|{{{filename}}}]]|{{#if: {{{parent|}}}{{{type|}}}|[[Parts/{{#if: {{{parent|}}}|{{{parent}}}|{{#switch: {{lc:{{{type|}}}}}<!--
+
-->|style="word-break:break-all;" {{!}} {{#ifeq: {{{dlc|}}}|mh|[[MakingHistory/Parts/{{#if: {{{parent|}}}|{{{parent}}}/}}{{{part}}}/{{{filename|part.cfg}}}|{{{filename}}}]]|{{#ifeq: {{{dlc|}}}|bg|[[Serenity/Parts/{{#if: {{{parent|}}}|{{{parent}}}/}}{{{part}}}/{{{filename|part.cfg}}}|{{{filename}}}]]|{{#if: {{{parent|}}}{{{type|}}}|[[Parts/{{#if: {{{parent|}}}|{{{parent}}}|{{#switch: {{lc:{{{type|}}}}}<!--
 
   -->|lfe|mpe|srb|je|ie=Engine<!--
 
   -->|lfe|mpe|srb|je|ie=Engine<!--
 
   -->|lft|mpt|xgt=FuelTank<!--
 
   -->|lft|mpt|xgt=FuelTank<!--
 
   -->|cp|cm|pod|sas|rw=Command<!--
 
   -->|cp|cm|pod|sas|rw=Command<!--
   -->|exp|lab|sen|sto=Science<!--
+
   -->|ant2|sen2|gen2|pan2|sto2=Cargo<!--
 +
  -->|cyl|rot|ser|hin|pco|eng=Robotics<!--
 +
  -->|arm|exp|lab|sen|sto=Science<!--
 
   -->|ant|dec|sep|dp|chu|lad|lan|leg|lig|re|rcs|cb|sb=Utility<!--
 
   -->|ant|dec|sep|dp|chu|lad|lan|leg|lig|re|rcs|cb|sb=Utility<!--
   -->|nc|cs|win|let|int|hs|fr=Aero<!--
+
   -->|nc|cs|win|let|int|hs|fr|pro=Aero<!--
   -->|str|ada=Structural<!--
+
   -->|str|ada|grp=Structural<!--
 
   -->|bat|gen|pan=Electrical<!--
 
   -->|bat|gen|pan=Electrical<!--
 
   -->|rov|gea=Wheel<!--
 
   -->|rov|gea=Wheel<!--
Line 34: Line 34:
 
   -->|rad=Thermal<!--
 
   -->|rad=Thermal<!--
 
   -->|#default=<!--
 
   -->|#default=<!--
-->}}}}/{{{part}}}/{{{filename|part.cfg}}}|{{{part}}}]]|<abbr title="{{lang|en=Parameter missing|de=Parameter fehlt|tr=Parametre yok|fr=Paramètre manquant}}">{{{part}}}</abbr>[[Category:Infobox/Part with missing parameters]]}}}}|{{lang|en=Unknown cfg|es=Configuración desconocidon|de=Unbekannte cfg|pl=Nieznany cfg|hr=Nepoznata konfiguracija|fr=cfg inconnu|ru=cfg неизвестен|Cfg 파일 없음 |pt=Configuração desconhecida|hu=Ismeretlen|it=Config. sconosciuta|tr=Bilinmeyen cfg dosyası}}[[Category:Infobox/Part with missing parameters]]
+
-->}}}}/{{{part}}}/{{{filename|part.cfg}}}|{{{part}}}]]|<abbr title="Parameter missing">{{{part}}}</abbr>[[Category:Infobox/Part with missing parameters]]}}}}}}|{{Infobox/Part/Dict|Unknown}}[[Category:Infobox/Part with missing parameters]]
 
}}}}{{if||{{{more|}}}|
 
}}}}{{if||{{{more|}}}|
 
{{{more|}}}}}{{if||{{{additional|}}}|
 
{{{more|}}}}}{{if||{{{additional|}}}|
{{Infobox/Line|{{lang|en=Additional:|es=Adicional:|de=Weiteres:|pl=Dodatkowe:|hr=Dodatno:|pt=Adicional:|fr=Additionnel:|ru=Дополнительно:|ko=추가 설명:|hu=Kiegészítő|it=Aggiuntivo:|tr=Ek:}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Additional}}}}
 
{{{additional}}}}}
 
{{{additional}}}}}
 
|notes={{{notes|}}}{{#if: {{{nref|}}}{{#ifeq: {{lc:{{{physics insignificant}}}}}|y|1}}|{{#tag:references||group="{{{nref|N}}}"}}}}
 
|notes={{{notes|}}}{{#if: {{{nref|}}}{{#ifeq: {{lc:{{{physics insignificant}}}}}|y|1}}|{{#tag:references||group="{{{nref|N}}}"}}}}
}}<!-- {{#ifeq: {{SUBPAGENAME}}|Box||[[Category:Infoboxes outside of data templates]]}} this is not working, because this is getting transcluded to other pages, so every infobox page lands there. --></includeonly><noinclude>{{Infobox/Part
+
}}
 +
</includeonly><noinclude>
 +
{{Infobox/Part
 
|file=TVR-400L Stack Quad-Adapter.png
 
|file=TVR-400L Stack Quad-Adapter.png
 
|type=ada
 
|type=ada
|manufacturer=OMB
 
 
|size=large
 
|size=large
 
|size2=small
 
|size2=small
 
|size3=tiny
 
|size3=tiny
 +
|manufacturer=OMB
 
|costs=800
 
|costs=800
 
|mass=0.2
 
|mass=0.2
Line 52: Line 54:
 
|temp=3400
 
|temp=3400
 
|tolerance=12
 
|tolerance=12
 +
|research=Meta-Materials
 +
|unlock cost=1200
 
|since=0.21
 
|since=0.21
 
|part=adapterLargeSmallQuad
 
|part=adapterLargeSmallQuad
|research=Meta-Materials
 
 
|more={{Infobox/Part/adapter
 
|more={{Infobox/Part/adapter
 
|out=4
 
|out=4
 
}}
 
}}
 
}}
 
}}
 +
 
== Usage ==
 
== Usage ==
 
{{Data template|Box}}
 
{{Data template|Box}}
Line 74: Line 78:
  
 
=== Manufacturer ===
 
=== Manufacturer ===
The template {{Tl|Infobox/Part/Manufacturer}} is a template to quickly add a manufacturer.
+
To add a manufacturer, it has to be added to the template {{Tl|Infobox/Part/Manufacturer}} and to {{Tl|Infobox/Part/ManufacturerUntranslated}}.
  
 
== Types ==
 
== Types ==
 
For different types of parts this template allows to set the <tt>type</tt> parameter. The type will automatically set <tt>{{{role}}}</tt> and <tt>{{{parent}}}</tt> though they can be manually overwritten. The following values are supported:
 
For different types of parts this template allows to set the <tt>type</tt> parameter. The type will automatically set <tt>{{{role}}}</tt> and <tt>{{{parent}}}</tt> though they can be manually overwritten. The following values are supported:
{| class="wikitable"
+
 
! Type
+
{{Infobox/Part/Types}}
! Role
 
! Parent
 
! Subtemplate
 
|-
 
| lfe
 
| [[Liquid fuel engine]]
 
| rowspan="5" | Engine
 
| rowspan="2" | {{Tl|Infobox/Part/reaction engine}}
 
|-
 
| mpe
 
| [[Monopropellant engine]]
 
|-
 
| srb
 
| [[Solid rocket booster]]
 
| {{Tl|Infobox/Part/solid fuel engine}}
 
|-
 
| je
 
| [[Jet engine]]
 
| {{Tl|Infobox/Part/jet engine}}
 
|-
 
| ie
 
| [[Ion engine]]
 
| {{Tl|Infobox/Part/ion engine}}
 
|-
 
| lft
 
| [[Liquid fuel tank]]
 
| rowspan="3" | FuelTank
 
| rowspan="3" | {{Tl|Infobox/Part/tank}}
 
|-
 
| mpt
 
| [[Monopropellant tank]]
 
|-
 
| xgt
 
| [[Xenon gas tank]]
 
|-
 
| sas
 
| [[Stability Augmentation System]]
 
| rowspan="5" | Command
 
| {{Tl|Infobox/Part/SAS}}
 
|-
 
| rw
 
| [[Reaction wheel]]
 
| {{Tl|Infobox/Part/torque}}
 
|-
 
| cm
 
| [[Command module]]
 
| rowspan="3" | {{Tl|Infobox/Part/command module}}
 
|-
 
| cp
 
| [[Cockpit]]
 
|-
 
| pod
 
| [[Command pod]]
 
|-
 
| lab
 
| [[Laboratory]]
 
| rowspan="5" | Science
 
| {{Tl|Infobox/Part/laboratory}}
 
|-
 
| sto
 
| [[Experiment Storage]]
 
| (n/a)
 
|-
 
| tel
 
| [[Telescope]]
 
| rowspan="3" | {{Tl|Infobox/Part/sensor}}
 
|-
 
| exp
 
| rowspan="2" | [[Environmental sensor]]
 
|-
 
| sen
 
|-
 
| rcs (instead of <tt>re</tt>)
 
| rowspan="2" | [[Reaction Control System]]
 
| rowspan="14" | Utility
 
| rowspan="2" | {{Tl|Infobox/Part/reaction engine}}, {{Tl|Infobox/Part/thrust vectors}}
 
|-
 
| re ('''deprecated''')
 
|-
 
| ant
 
| [[Antenna]]
 
| {{Tl|Infobox/Part/antenna}}
 
|-
 
| int
 
| [[Air intake]]
 
| {{Tl|Infobox/Part/air intake}}
 
|-
 
| dec
 
| [[Decoupler]]
 
| rowspan="2" | {{Tl|Infobox/Part/separator}}
 
|-
 
| sep
 
| [[Separator]]
 
|-
 
| dp
 
| [[Docking port]]
 
| (n/a)
 
|-
 
| cb
 
| [[Cargo bay]]
 
| (n/a)
 
|-
 
| sb
 
| [[Service bay]]
 
| (n/a)
 
|-
 
| chu
 
| [[Parachute]]
 
| {{Tl|Infobox/Part/parachute}}
 
|-
 
| lad
 
| [[Ladder]]
 
| {{Tl|Infobox/Part/ladder}}
 
|-
 
| leg
 
| [[Landing leg]]
 
| (n/a)
 
|-
 
| lan ('''deprecated''')
 
| Landing gear and leg
 
| (n/a)
 
|-
 
| lig
 
| [[Electric light]]
 
| {{Tl|Infobox/Part/electric usage}}
 
|-
 
| gea
 
| [[Landing gear]]
 
| rowspan="2" | Wheel
 
| (n/a)
 
|-
 
| rov
 
| [[Rover]] wheel
 
| {{Tl|Infobox/Part/rover wheel}}
 
|-
 
| nc
 
| [[Nose cone]]
 
| rowspan="6" | Aero
 
| (n/a)
 
|-
 
| cs
 
| [[Control surface]]
 
| {{Tl|Infobox/Part/control surface}}
 
|-
 
| hs
 
| [[Heat shield]]
 
| {{Tl|Infobox/Part/heat shield}}
 
|-
 
| fr
 
| [[Fairing]]
 
| (n/a)
 
|-
 
| win
 
| [[Wing]]
 
| {{Tl|Infobox/Part/lifting surface}}
 
|-
 
| let
 
| [[Winglet]]
 
| {{Tl|Infobox/Part/winglet}}
 
|-
 
| bat
 
| [[Battery]]
 
| rowspan="3" | Electrical
 
| {{Tl|Infobox/Part/energy storage}}
 
|-
 
| gen
 
| [[Generator]]
 
| {{Tl|Infobox/Part/generator}}
 
|-
 
| pan
 
| [[Solar panel]]
 
| {{Tl|Infobox/Part/solar panel}}
 
|-
 
| fc
 
| [[Fuel cell]]
 
| rowspan="6" | Resources
 
| {{Tl|Infobox/Part/converter}}
 
|-
 
| sca
 
| [[Scanner]]
 
| (not yet)
 
|-
 
| ot
 
| [[Ore tank]]
 
| {{Tl|Infobox/Part/tank}}
 
|-
 
| dri (instead of <tt>rh</tt>)
 
| rowspan="2" | [[Resource harvester]]
 
| rowspan="2" | (not yet)
 
|-
 
| rh ('''deprecated''')
 
|-
 
| con
 
| [[Converter]]
 
| {{Tl|Infobox/Part/converter}}
 
|-
 
| str
 
| Strut
 
| rowspan="2" | Structural
 
| (n/a)
 
|-
 
| ada
 
| [[Adapter]]
 
| {{Tl|Infobox/Part/adapter}}
 
|-
 
| hab
 
| [[Habitation module]]
 
| ''None''
 
| {{Tl|Infobox/Part/crew}}
 
|-
 
| rad
 
| [[Radiator]]
 
| Thermal
 
| {{Tl|Infobox/Part/radiator}}
 
|}
 
  
 
If a part uses more than one type, for example the [[R.A.P.I.E.R. Engine]], the type parameter is usually omitted and each subtemplate should use a header from {{Tl|Infobox/Part/title}}.
 
If a part uses more than one type, for example the [[R.A.P.I.E.R. Engine]], the type parameter is usually omitted and each subtemplate should use a header from {{Tl|Infobox/Part/title}}.
Line 301: Line 90:
  
 
=== Roles ===
 
=== Roles ===
Prior to the module system “roles” where used, but have been abandoned because they are not flexible enough. Currently only {{Tl|Infobox/Part/Strut}} is the only role template still used.
+
Prior to the module system "roles" where used, but have been abandoned because they are not flexible enough. Currently only {{Tl|Infobox/Part/Strut}} is the only role template still used.
  
 
== Template ==
 
== Template ==
 
<pre>{{Infobox/Part
 
<pre>{{Infobox/Part
 
|name=
 
|name=
 +
|file=
 +
|type=
 
|role=
 
|role=
|type=
 
|file=
 
 
|size=
 
|size=
 
|size2=
 
|size2=
 
|size3=
 
|size3=
 +
|manufacturer=
 
|costs=
 
|costs=
 
|mass=
 
|mass=
Line 320: Line 110:
 
|xg=
 
|xg=
 
|ia=
 
|ia=
 +
|or=
 +
|ab=
 
|drag=
 
|drag=
|drag type=
 
 
|temp=
 
|temp=
 
|tolerance=
 
|tolerance=
|manufacturer=
 
|more=
 
 
|research=
 
|research=
|research page=
+
|unlock cost=
 
|since=
 
|since=
 +
|filename=
 
|part=
 
|part=
 
|parent=
 
|parent=
 +
|physics insignificant=
 
|notes=
 
|notes=
|physics insignificant=
 
 
|nref=
 
|nref=
 +
|more=
 
}}</pre>
 
}}</pre>
  
 
== Example ==
 
== Example ==
 
Example used on this page:
 
Example used on this page:
 +
 
<pre>{{Infobox/Part
 
<pre>{{Infobox/Part
 
|file=TVR-400L Stack Quad-Adapter.png
 
|file=TVR-400L Stack Quad-Adapter.png
 
|type=ada
 
|type=ada
|manufacturer=OMB
 
 
|size=large
 
|size=large
 
|size2=small
 
|size2=small
 
|size3=tiny
 
|size3=tiny
 +
|manufacturer=OMB
 
|costs=800
 
|costs=800
 
|mass=0.2
 
|mass=0.2
Line 350: Line 142:
 
|temp=3400
 
|temp=3400
 
|tolerance=12
 
|tolerance=12
 +
|research=Meta-Materials
 +
|unlock cost=1200
 
|since=0.21
 
|since=0.21
 
|part=adapterLargeSmallQuad
 
|part=adapterLargeSmallQuad
|research=Meta-Materials
 
 
|more={{Infobox/Part/adapter
 
|more={{Infobox/Part/adapter
 
|out=4
 
|out=4
Line 359: Line 152:
  
 
== Translation ==
 
== Translation ==
To translate this template or one of the subtemplates see also [[Kerbal_Space_Program_Wiki:Translation#Templates|this article]].
+
When using this template, most of it is translated automatically. To translate this template or one of the subtemplates, go to the {{Tl|Infobox/Part/Dict}} template.
  
At the moment only English is supported by all templates.
+
=== Manufacturer ===
* Deutsch (German): Infobox/Part complete, subtemplates partially
+
To add a translation for a manufacturer's name, add it to {{Tl|Infobox/Part/Manufacturer}} (use the {{Tl|lang}} template). '''Do not translate manufacturer names in the template {{Tl|Infobox/Part/ManufacturerUntranslated}}'''.
* Español (Spanish): Infobox/Part complete, subtemplates partially
 
* Polish (Polski): Infobox/Part mostly, subtemplates partially
 
* Русский (Russian): Infobox/Part partially, subtemplates partially
 
* Français (French): Infobox/Part mostly, subtemplates partially
 
* 한국어 (Korean) : Infobox/Part complete, subtemplates partially
 
* Português (Portuguese) : Infobox/Part complete, subtemplates partially
 
* Magyar (Hungarian) : Infobox/Part complete, subtemplates partially
 
* Italiano (Italian): Infobox/Part complete, subtemplates partially
 
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
[[Category:Translating templates]]</noinclude>
 
[[Category:Translating templates]]</noinclude>

Revision as of 11:05, 12 July 2019

Infobox
Part image
Adapter by
O.M.B. Demolition Enterprises

Radial size Large, Small, Tiny
Cost (total) 800.00 Funds
Mass (total) 0.20 t
Drag 0.3
Max. Temp. 3400 K
Volume  ?
Impact Tolerance 12 m/s
Research Meta-materials.png Meta-Materials
Unlock cost 1 200 Funds
Since version 0.21
Part configuration [[Parts/Structural/adapterLargeSmallQuad/{{{filename}}}|{{{filename}}}]]
Outgoing connectors 4

Usage

To avoid adding the information for each language this templates should be reused and with the suggested subpage name /Box. The Templates help page contains additional information how to implement reusing. All page which use template directly should add the {{Data template used}} note.

Parameters

Name Optional Description Default
name Yes Name of the part, which can be found in the localization file. Uses {{Dict/part name}} to translate names. {{BASEPAGENAME}}
file Yes Filename to image of the part. File:Image needed.svg
type No Type of the part. Automatically defines the role and parent parameter.
role Yes Role of the part. Overrides the type parameter. {{type}}
size Yes Radial size of the part (uses {{Radial Size}}). Not set/Hidden
size2 Yes Second radial size of the part (uses {{Radial Size}}). Not set/Hidden
size3 Yes Third radial size of the part (uses {{Radial Size}}). Not set/Hidden
manufacturer Yes Manufacturer of the part. If set linked to the category of this name (see also Category:Manufacturers). Automatically uses {{Infobox/Part/Manufacturer}} and {{Infobox/Part/Manufacturer entry}} on it. Not set/Hidden
manufacturer2 Yes Second manufacturer of the part. Not set/Hidden
costs No Cost of the part, which is usually given in the part.cfg.
mass No Mass of the part, which is usually given in the part.cfg.
lf Yes Amount of Liquid Fuel on that part in units. Only used for wet mass/dry costs calculation. 0
ox Yes Amount of Oxidizer on that part in units. Only used for wet mass/dry costs calculation. 0
mp Yes Amount of Monopropellant on that part in units. Only used wet mass/dry costs calculation. 0
sf Yes Amount of Solid Fuel on that part in units. Only used for wet mass/dry costs calculation. 0
xg Yes Amount of Xenon Gas on that part in units. Only used for wet mass/dry costs calculation. 0
ia Yes Amount of Intake Air on that part in units. Only used for wet mass/dry costs calculation. 0
or Yes Amount of Ore on that part in units. Only used for wet mass/dry costs calculation. 0
ab Yes Amount of Ablator on that part in units. Only used for wet mass/dry costs calculation. 0
drag No Drag of the part. By different values, add minimum_drag first and then maximum_drag
temp No Temperature resistance of the part, which is usually given in the part.cfg.
tolerance No Impact tolerance of the part, which is usually given in the part.cfg.
volume Yes Volume of the part for cargo storage, which is usually given in the part.cfg in the ModuleCargoPart module. If the volume is -1, it is considered as a construction part which cannot be stored (N/A). Unknown volume (?)
research Yes Research node required for this part. Uses {{Dict/sci node}} to translate names. Unknown
unlock cost No Cost to unlock the part, which is usually given in the part.cfg.
since Yes Version the part first appeared in. It will be used in {{version}}. Unknown
dlc Yes Name of the dlc. Used for link to cfg-entry in wiki. Can be:
  • mh
  • bg
Not Set
filename No The filename (with extension) of the part.cfg
part No Name of the part folder. Used for link to cfg-entry in wiki. It will create a link to Parts/{{{parent}}}/{{{part}}}/part.cfg.
parent No Parent directory of the part folder. Used for part.cfg file, see above. Overrides the type parameter.
physics insignificant Yes Mark the mass and drag automatically with a note that they are insignificant (so called massless parts). This will use {{{nref}}}, so if it isn't set, will set it automatically to "N". Other notes can use that group then too. Must be set to "Y" or "y" to show insignificance. Not set/Hidden
notes Yes Additional notes below the part information. Not set/Hidden
nref Yes Automatically add references of the group with that name (usually N). Modules might have a nref parameter which needs to be set to the same value. Not set/Hidden
more Yes More module-specific information (see More parameter). Not set

If a mandatory parameter is missing Category:Infobox/Part with missing parameters will be added.

Configuration file

With the new folder structure since version 0.20 the part config file must be placed at Parts/{{{parent}}}/{{{part}}}/{{{filename}}}. The {{Part config}} template should be used in the part configuration pages. For some parts the actual parent differs from the type. For those cases parent overrides the type-based parent definition. One example is the Vernor Engine, because it's a RCS engine but it's definition is in Engine although the other two RCS engines are in Utility.

More parameter

To add additional fields the {{{more}}} parameter should be used with {{Infobox/Part/Line}} or {{Infobox/Line}}. It is preferred to use one of the modules.

Manufacturer

To add a manufacturer, it has to be added to the template {{Infobox/Part/Manufacturer}} and to {{Infobox/Part/ManufacturerUntranslated}}.

Types

For different types of parts this template allows to set the type parameter. The type will automatically set {{{role}}} and {{{parent}}} though they can be manually overwritten. The following values are supported:

Type Role Parent Subtemplate
cs Control surface Aero {{Infobox/Part/control surface}}
fan Fan shroud (n/a)
fr Fairing (n/a)
hs Heat shield {{Infobox/Part/heat shield}}
int Air intake {{Infobox/Part/air intake}}
let Winglet {{Infobox/Part/winglet}}
nc Nose cone (n/a)
win Wing {{Infobox/Part/lifting surface}}
car Cargo module Cargo {{Infobox/Part/inventory}}
cit Cargo item (n/a)
cm Command module Command {{Infobox/Part/command module}}
cp Cockpit
pod Command pod
rw Reaction wheel {{Infobox/Part/torque}}
sas Stability Augmentation System {{Infobox/Part/SAS}}
ft Fuel transfer CompoundParts (n/a)
str Strut (n/a)
air Airlock Coupling (n/a)
dec Decoupler {{Infobox/Part/separator}}
sep Separator
epl Engine plate (n/a)
ant2 Deployed Science DeployedScience {{Infobox/Part/antenna}}
gen2 {{Infobox/Part/power generator}}
pan2
sen2 {{Infobox/Part/power usage}}, {{Infobox/Part/deployed science}}
bat Battery Electrical {{Infobox/Part/energy storage}}
gen Generator {{Infobox/Part/generator}}
pan Solar panel {{Infobox/Part/solar panel}}
lfe Liquid fuel engine Engine {{Infobox/Part/reaction engine}}
mpe Monopropellant engine
srb Solid rocket booster {{Infobox/Part/solid fuel engine}}
je Jet engine {{Infobox/Part/jet engine}}
ie Ion engine {{Infobox/Part/ion engine}}
dra Drain valve FuelTank (n/a)
lft Liquid fuel tank {{Infobox/Part/tank}}
mpt Monopropellant tank
xgt Xenon gas tank
tel Telescope Misc (n/a)
pro Propeller Propellers (n/a)
con Converter Resources {{Infobox/Part/converter}}
dri Resource harvester (n/a)
fc Fuel cell {{Infobox/Part/converter}}
ot Ore tank {{Infobox/Part/tank}}
sca Scanner (n/a)
cyl Cylinder Robotics (n/a)
eng Engine (n/a)
hin Hinge (n/a)
pco Robotic controller (n/a)
rot Rotor (n/a)
ser Servo (n/a)
arm Scanning arm Science {{Infobox/Part/scanner arm}}
lab Laboratory {{Infobox/Part/laboratory}}
sen Environmental sensor {{Infobox/Part/sensor}}
sto Experiment Storage (n/a)
ada Adapter Structural {{Infobox/Part/adapter}}
grp Grip pad (n/a)
ste Structural element (n/a)
rad Radiator Thermal {{Infobox/Part/radiator}}
ant Antenna Utility {{Infobox/Part/antenna}}
cb Cargo bay (n/a)
chu Parachute {{Infobox/Part/parachute}}
claw Advanced Grabbing Unit (n/a)
dp Docking port (n/a)
fla Flag (n/a)
hab Habitation module {{Infobox/Part/crew}}
lad Ladder {{Infobox/Part/ladder}}
leg Landing leg (n/a)
les Launch Escape System (n/a)
lig Electric light {{Infobox/Part/electric usage}}
rcs Reaction Control System {{Infobox/Part/reaction engine}}, {{Infobox/Part/thrust vectors}}
sb Service bay (n/a)
gea Landing gear Wheel (n/a)
rov Rover wheel {{Infobox/Part/rover wheel}}


If a part uses more than one type, for example the R.A.P.I.E.R. Engine, the type parameter is usually omitted and each subtemplate should use a header from {{Infobox/Part/title}}.

Additionally test subjects can use {{Infobox/Part/test subject}}.

Roles

Prior to the module system "roles" where used, but have been abandoned because they are not flexible enough. Currently only {{Infobox/Part/Strut}} is the only role template still used.

Template

{{Infobox/Part
|name=
|file=
|type=
|role=
|size=
|size2=
|size3=
|manufacturer=
|costs=
|mass=
|lf=
|ox=
|mp=
|sf=
|xg=
|ia=
|or=
|ab=
|drag=
|temp=
|tolerance=
|research=
|unlock cost=
|since=
|filename=
|part=
|parent=
|physics insignificant=
|notes=
|nref=
|more=
}}

Example

Example used on this page:

{{Infobox/Part
|file=TVR-400L Stack Quad-Adapter.png
|type=ada
|size=large
|size2=small
|size3=tiny
|manufacturer=OMB
|costs=800
|mass=0.2
|drag=0.3
|temp=3400
|tolerance=12
|research=Meta-Materials
|unlock cost=1200
|since=0.21
|part=adapterLargeSmallQuad
|more={{Infobox/Part/adapter
|out=4
}}
}}

Translation

When using this template, most of it is translated automatically. To translate this template or one of the subtemplates, go to the {{Infobox/Part/Dict}} template.

Manufacturer

To add a translation for a manufacturer's name, add it to {{Infobox/Part/Manufacturer}} (use the {{lang}} template). Do not translate manufacturer names in the template {{Infobox/Part/ManufacturerUntranslated}}.