Difference between revisions of "Template:Infobox/Part"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+ API in example)
m
Line 17: Line 17:
 
| {{{drag|{{{Drag}}}}}} {{{drag note|}}}
 
| {{{drag|{{{Drag}}}}}} {{{drag note|}}}
 
|- valign="top"
 
|- valign="top"
| colspan="2" | {{lang|en=Max Temp.|de=Max. Temp.|ru=максимальная температура|pl=Maks. Temp.}}
+
| colspan="2" | {{lang|en=Max Temp.|de=Max. Temp.|ru=максимальная температура|pl=Maks. Temp.|pt=Temperatura máxima}}
 
| {{{temp|{{{Temp}}}}}} K
 
| {{{temp|{{{Temp}}}}}} K
 
|- valign="top"
 
|- valign="top"
Line 24: Line 24:
 
{{{more|{{{More|}}}}}}{{#if: {{{additional|}}}|
 
{{{more|{{{More|}}}}}}{{#if: {{{additional|}}}|
 
{{!}}-
 
{{!}}-
{{!}} colspan="3" {{!}} {{lang|en=Additional:|de=Weiteres:|pl=Dodatkowe:}}
+
{{!}} colspan="3" {{!}} {{lang|en=Additional:|de=Weiteres:|pl=Dodatkowe:|pt=Adicional:}}
 
{{{additional}}}}}
 
{{{additional}}}}}
 
|- valign="top"
 
|- valign="top"
| colspan="2" | {{lang|en=Since Version|de=Seit Version|pl=Od wersji}}
+
| colspan="2" | {{lang|en=Since Version|de=Seit Version|pl=Od wersji|pt=Desde a versão}}
| {{#if: {{{since|{{{Since|}}}}}}|{{version|{{{since|{{{Since}}}}}}|}}|{{lang|en=Unknown|pl=Nieznane}}}}
+
| {{#if: {{{since|{{{Since|}}}}}}|{{version|{{{since|{{{Since}}}}}}|}}|{{lang|en=Unknown|pl=Nieznane|pt=Desconhecido}}}}
 
|-
 
|-
 
| colspan="3" style="text-align: center;" | <small>{{#if: {{{class|{{{Class|}}}}}}|[[API:{{{class|{{{Class}}}}}}|{{{class|{{{Class}}}}}}]]|{{lang|en=Unknown API|pl=Nieznane API}}}}&nbsp;·&nbsp;{{#if: {{{part|}}}|[[Parts/{{{part}}}/part.cfg|part.cfg]]|{{#if: {{{cfg|}}}|[[{{{cfg}}}|part.cfg]]|{{lang|en=Unknown cfg|pl=Nieznane cfg}}}}}}
 
| colspan="3" style="text-align: center;" | <small>{{#if: {{{class|{{{Class|}}}}}}|[[API:{{{class|{{{Class}}}}}}|{{{class|{{{Class}}}}}}]]|{{lang|en=Unknown API|pl=Nieznane API}}}}&nbsp;·&nbsp;{{#if: {{{part|}}}|[[Parts/{{{part}}}/part.cfg|part.cfg]]|{{#if: {{{cfg|}}}|[[{{{cfg}}}|part.cfg]]|{{lang|en=Unknown cfg|pl=Nieznane cfg}}}}}}

Revision as of 16:28, 28 May 2013

Template:Partbox

Usage

Template:Data Template

Parameters

Template:Partbox/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:

Those templates don't support the {{{cfg}}} parameter! Also they don't support uppercase parameters. The subtemplates are categorised in Category:Partbox Templates.

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