Difference between revisions of "Template:Infobox/Part"
m (*rcs engines are now in utility;) |
m (+drag type = "s"; -all old roles; +new modules;) |
||
Line 14: | Line 14: | ||
|type1={{lang|en=total|es=total|de=gesamte|ru=полная|hr=ukupna|pl=całkowita|pt=total|hu=teljes}} | |type1={{lang|en=total|es=total|de=gesamte|ru=полная|hr=ukupna|pl=całkowita|pt=total|hu=teljes}} | ||
|type2={{lang|en=dry|es=seco|de=leer|ru=сухая|hr=suha|pl=sucha|pt=vazio|hu=üres}}}} | |type2={{lang|en=dry|es=seco|de=leer|ru=сухая|hr=suha|pl=sucha|pt=vazio|hu=üres}}}} | ||
− | {{Infobox/Line|{{lang|en=Drag|es=Resistencia|de=Luft­wiederstand|ru=Лобовое сопротивление|hr=Aerodinamični otpor|pl=Opór|fr=Traînée|zh-cn=阻力|ko=항력|pt=Arrasto atmosférico|hu=légellenállás}}|{{{drag}}} {{{drag note|}}}{{#ifeq: {{lc:{{{physics insignificant}}}}}|y|{{#tag:ref|The mass and drag are from the part.cfg, but the game handles it [[Massless part|massless/dragless]].|name="phyinsig"|group="{{{nref|N}}}"}}}}|type1={{{drag type|}}}}} | + | {{Infobox/Line|{{lang|en=Drag|es=Resistencia|de=Luft­wiederstand|ru=Лобовое сопротивление|hr=Aerodinamični otpor|pl=Opór|fr=Traînée|zh-cn=阻力|ko=항력|pt=Arrasto atmosférico|hu=légellenállás}}|{{{drag}}} {{{drag note|}}}{{#ifeq: {{lc:{{{physics insignificant}}}}}|y|{{#tag:ref|The mass and drag are from the part.cfg, but the game handles it [[Massless part|massless/dragless]].|name="phyinsig"|group="{{{nref|N}}}"}}}}|type1={{#ifeq: {{{drag type|}}}|s|{{lang|en=stowed|de=verstaut|pl=spakoawny}}|{{{drag type|}}}}}}} |
{{Infobox/Line|{{lang|en=Max. Temp.|es=Tempuratura Máximo|de=Höchst­temperatur|hr=Maksimalna temperatura|ru=Макс. температура|pl=Maks. Temp.|pt=Temperatura máxima|fr=Température maximale|zh-cn=最高承受温度|ko=최고저항온도|hu=Max. Höm.}}|{{{temp}}} K}} | {{Infobox/Line|{{lang|en=Max. Temp.|es=Tempuratura Máximo|de=Höchst­temperatur|hr=Maksimalna temperatura|ru=Макс. температура|pl=Maks. Temp.|pt=Temperatura máxima|fr=Température maximale|zh-cn=最高承受温度|ko=최고저항온도|hu=Max. Höm.}}|{{{temp}}} K}} | ||
{{Infobox/Line|{{lang|en=Impact Tolerance|es=Resistencia de impacto|de=Einschlags­toleranz|ru=Допустимое ускорение|hr=Otpornost na udarac|pl=Wytrzymałość zderzenia|fr=Tolérance d'impact|zh-cn=冲击承受|ko=충돌파괴최소속도|pt=Tolerância a impactos|hu=Ütésállóság}}|{{{tolerance}}} m/s}} | {{Infobox/Line|{{lang|en=Impact Tolerance|es=Resistencia de impacto|de=Einschlags­toleranz|ru=Допустимое ускорение|hr=Otpornost na udarac|pl=Wytrzymałość zderzenia|fr=Tolérance d'impact|zh-cn=冲击承受|ko=충돌파괴최소속도|pt=Tolerância a impactos|hu=Ütésállóság}}|{{{tolerance}}} m/s}} | ||
Line 176: | Line 176: | ||
| chu | | chu | ||
| [[Parachute]] | | [[Parachute]] | ||
− | | | + | | {{Tl|Infobox/Part/parachute}} |
|- | |- | ||
| lad | | lad | ||
| [[Ladder]] | | [[Ladder]] | ||
− | | | + | | {{Tl|Infobox/Part/ladder}} |
|- | |- | ||
| lan | | lan | ||
| Landing gear | | Landing gear | ||
− | | ( | + | | (n/a) |
|- | |- | ||
| lig | | lig | ||
| [[Electric light]] | | [[Electric light]] | ||
− | | | + | | {{Tl|Infobox/Part/electric usage}} |
|- | |- | ||
| nc | | nc | ||
Line 212: | Line 212: | ||
| {{Tl|Infobox/Part/energy storage}} | | {{Tl|Infobox/Part/energy storage}} | ||
|- | |- | ||
− | | | + | | gen |
| Generator | | Generator | ||
| (not yet) | | (not yet) | ||
Line 228: | Line 228: | ||
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}}. | ||
− | == 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. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Template == | == Template == |
Revision as of 18:18, 29 July 2014
Infobox | ||
Adapter by O.M.B. Demolition Enterprises | ||
Radial size | Large, Small | |
Cost | (total) | 800.00 |
Mass | (total) | 0.20 t |
Drag | 0.3 | |
Max. Temp. | 3400 K | |
Volume | ? | |
Impact Tolerance | 12 m/s | |
Research | Meta-Materials | |
Unlock cost | 0 | |
Since version | 0.21 | |
Part configuration | [[Parts/Structural/adapterLargeSmallQuad/{{{filename}}}|{{{filename}}}]] | |
Outgoing connectors | 4 |
Contents
Usage
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:
|
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.cfg should be placed at Parts/{{{parent}}}/{{{part}}}/part.cfg. If the configuration file wasn't moved yet the Category:Infobox/Part with unmoved part.cfg is added. If both a new and an old part.cfg exist the page is added to Category:Infobox/Part with leftover part.cfg. The {{Part config}} template should be used in the part configuration pages.
The infobox links to the new location, if the parent parameter is determined and there is no old file. It will link to the old location, if there is still an article and not a new one. The suggested handling would be, to move the old page and then updated that. This way it is possible to get old versions definitions of the part in the history. As only sysops can move articles, only updating the text is usually the best way: At some point this page might be get moved.
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
The template {{Infobox/Part/Manufacturer}} is a template to quickly add a manufacturer.
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:
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}}.
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= |role= |type= |file= |size= |size2= |costs= |mass= |lf= |ox= |mp= |sf= |xg= |ia= |drag= |drag type= |temp= |tolerance= |manufacturer= |more= |research= |research page= |since= |part= |parent= |notes= |physics insignificant= |nref= }}
Example
Example used on this page:
{{Infobox/Part |file=TVR-400L Stack Quad-Adapter.png |type=ada |manufacturer=OMB |size=large |size2=small |costs=800 |mass=0.2 |drag=0.3 |temp=3400 |tolerance=12 |since=0.21 |part=adapterLargeSmallQuad |research=Meta-Materials |more={{Infobox/Part/adapter |out=4 }} }}
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): Infobox/Part complete, subtemplates partially
- 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