Difference between revisions of "Template:Infobox/Part"
m (+some German translations for the titles (and prepared others to be translatable); *changed antenna from complete template to module;) |
|||
Line 5: | Line 5: | ||
|lines= | |lines= | ||
{{Infobox/Line|1={{#if: {{{type|}}}{{{role|}}}|{{#switch: {{{type|}}} | {{Infobox/Line|1={{#if: {{{type|}}}{{{role|}}}|{{#switch: {{{type|}}} | ||
− | |lfe=''' | + | |lfe='''{{if lang link|Liquid fuel engine|de=Flüssigstoff­triebwerk}}''' |
− | |srb=''' | + | |srb='''{{if lang link|Solid rocket booster|de=Feststoffrakete}}''' |
− | |je=''' | + | |je='''{{if lang link|Jet engine|de=Düsentriebwerk}}''' |
− | |cp=''' | + | |cp='''{{if lang link|Cockpit}}''' |
− | |cm=''' | + | |cm='''{{if lang link|Command module}}''' |
− | |pod=''' | + | |pod='''{{if lang link|Command pod}}''' |
|exp | |exp | ||
− | |sen=''' | + | |sen='''{{if lang link|Environmental sensor|de=Umweltsensor}}''' |
− | |lab=''' | + | |lab='''{{if lang link|Laboratory|de=Laboratorium}}''' |
− | |nc=''' | + | |nc='''{{if lang link|Nose cone|de=Raketenspitze}}''' |
− | |ada=''' | + | |ada='''{{if lang link|Adapter}}''' |
|str='''Strut''' | |str='''Strut''' | ||
+ | |ant='''{{if lang link|Antenna|de=Antenne}}''' | ||
|#default={{#if: {{{role|}}}|'''{{{role|}}}'''}} | |#default={{#if: {{{role|}}}|'''{{{role|}}}'''}} | ||
}}}} <span style="font-size:smaller; white-space:normal;">{{lang|en=by|de=von|hr=proizveo|pl=wyk. przez|ru=от|pt=por}} {{#if: {{{type|}}}{{{role|}}}|<br />}}{{Infobox/Part/Manufacturer entry|{{Infobox/Part/Manufacturer|{{#if: {{{manufacturer|}}}|{{{manufacturer}}}|?}}}}}}{{if||{{{manufacturer2|}}}| {{lang|en=and|de=und|hr=i|pt=e}} {{Infobox/Part/Manufacturer entry|{{Infobox/Part/Manufacturer|{{{manufacturer2}}}}}}}}}</span>|style=text-align: center}}{{if||{{{size|}}}| | }}}} <span style="font-size:smaller; white-space:normal;">{{lang|en=by|de=von|hr=proizveo|pl=wyk. przez|ru=от|pt=por}} {{#if: {{{type|}}}{{{role|}}}|<br />}}{{Infobox/Part/Manufacturer entry|{{Infobox/Part/Manufacturer|{{#if: {{{manufacturer|}}}|{{{manufacturer}}}|?}}}}}}{{if||{{{manufacturer2|}}}| {{lang|en=and|de=und|hr=i|pt=e}} {{Infobox/Part/Manufacturer entry|{{Infobox/Part/Manufacturer|{{{manufacturer2}}}}}}}}}</span>|style=text-align: center}}{{if||{{{size|}}}| | ||
Line 35: | Line 36: | ||
-->|cp|cm|pod=Command<!-- | -->|cp|cm|pod=Command<!-- | ||
-->|exp|lab=Science<!-- | -->|exp|lab=Science<!-- | ||
− | -->|sen|ada=Utility<!-- | + | -->|sen|ada|ant=Utility<!-- |
-->|nc=Aero<!-- | -->|nc=Aero<!-- | ||
-->|str=Structural<!-- | -->|str=Structural<!-- | ||
Line 122: | Line 123: | ||
|- | |- | ||
| sen | | sen | ||
− | | Utility | + | | rowspan="3" | Utility |
+ | |- | ||
+ | | ada | ||
+ | | [[Adapter]] | ||
+ | | (not yet) | ||
+ | |- | ||
+ | | ant | ||
+ | | [[Antenna]] | ||
+ | | {{Tl|Infobox/Part/antenna}} | ||
|- | |- | ||
| nc | | nc | ||
Line 128: | Line 137: | ||
| Aero | | Aero | ||
| (n/a) | | (n/a) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| str | | str | ||
Line 177: | Line 181: | ||
* [[Parts#Ladders|Ladder]]: {{Tl|Infobox/Part/Ladder}} | * [[Parts#Ladders|Ladder]]: {{Tl|Infobox/Part/Ladder}} | ||
* [[Parts#Landing_Gear|Landing Gear]]: {{Tl|Infobox/Part/LandingStrut}} | * [[Parts#Landing_Gear|Landing Gear]]: {{Tl|Infobox/Part/LandingStrut}} | ||
− | |||
These subtemplates are categorised in [[:Category:Infobox/Part subtemplates]]. | These subtemplates are categorised in [[:Category:Infobox/Part subtemplates]]. |
Revision as of 14:28, 5 February 2014
TVR-1180C Mk1 Stack Tri-Coupler | ||
Adapter by Found lying by the side of the road | ||
Radial size | Small | |
Cost | (total) | 680.00 |
Mass | (total) | 0.300 t |
Drag | 0.3 | |
Max. Temp. | 3400 K | |
Impact Tolerance | 12 m/s | |
Research | Unknown | |
Unlock cost | 0 | |
Since version | 0.7.3 | |
Part configuration | [[Parts/Utility/stackTriCoupler/{{{filename}}}|{{{filename}}}]] |
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 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 |
size4 | Yes | Fourth 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. | ? |
manufacturer2 | Yes | Second manufacturer of the part. | Not set/Hidden |
costs | No | Cost of the part, which is usually given in the part configuration. | |
mass | No | Mass of the part, which is usually given in the part configuration. | |
lf | Yes | Max amount of Liquid Fuel on the part in units. Only used for wet mass/dry costs calculation. | 0 |
ox | Yes | Max amount of Oxidizer on the part in units. Only used for wet mass/dry costs calculation. | 0 |
sf | Yes | Max amount of Solid Fuel on the part in units. Only used for wet mass/dry costs calculation. | 0 |
mp | Yes | Max amount of Monopropellant on the part in units. Only used wet mass/dry costs calculation. | 0 |
xg | Yes | Max amount of Xenon Gas on the part in units. Only used for wet mass/dry costs calculation. | 0 |
ia | Yes | Max amount of Intake Air on the part in units. Only used for wet mass/dry costs calculation. | 0 |
eva | Yes | Max amount of EVA Propellant on the part in units. Only used for wet mass/dry costs calculation. | 0 |
or | Yes | Max amount of Ore on the part in units. Only used for wet mass/dry costs calculation. | 0 |
ab | Yes | Max amount of Ablator on the part in units. Only used for wet mass/dry costs calculation. | 0 |
capacity | Yes | Total amount of crew capacity on the part. Only used for wet mass/dry costs calculation. | 0 |
crew | Yes | Amount of crew the part starts with. Only used for wet/dry mass calculation. | 0 |
motorOutput | Yes | Maximum output of the motor on the part. Only used for wet mass/dry costs calculation. | 0 |
motorCost | Yes | The extra cost the motor adds to the part. Only used for wet costs calculation. | 0 |
motorMass | Yes | The extra mass the motor adds to the part. Only used for wet mass calculation. | 0 |
maxShots | Yes | Maximum amount of firework shots on the part. Only used for wet mass calculation. | 0 |
shellMass | Yes | The extra mass every firework shell adds to the part. Only used for wet/dry mass calculation. | 0 |
variantCost | Yes | The extra cost the default variant adds to the part. Only used for wet costs calculation. | 0 |
variantMass | Yes | The extra mass the default variant adds to the part. Only used for wet mass 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 configuration. | |
tolerance | No | Impact tolerance of the part, which is usually given in the part configuration. | |
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 configuration. | |
since | Yes | Version the part first appeared in. It will be used in {{version}}. | Unknown |
dlc | Yes | Name of the dlc. Used for linking to the cfg-entry on the wiki. Can be:
|
Not Set |
physics insignificant | Yes | Mark the mass and drag automatically with a note that they are insignificant (so called massless parts). Must be set to "y" to show insignificance. This will use {{{nref}}}, so if it isn't set, will set it automatically to "1". | Not set/Hidden |
applyKerbalMass | Yes | Whether the part applies extra mass of a Kerbal on the part. Must be set to "n" to exclude the added mass. Only used for wet/dry mass calculation. | y |
filename | No | The filename (with extension) of the part configuration. | |
part | Yes | Name of the part folder. Used for linking to the cfg-entry on the wiki. It will create a link to Parts/{{{parent}}}/{{{part}}}/{{{filename}}}. | Unknown cfg |
parent | Yes | Parent directory of the part folder. Used for linking to the cfg-entry on the wiki. | Not set/Hidden |
more | Yes | More module-specific information (see More parameter). | Not set |
notes | Yes | Additional notes below the part information. | Not set/Hidden |
nref | Yes | Automatically adds references below the part information. | Not set/Hidden |
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:
Type | Role | Parent | Subtemplate |
---|---|---|---|
lfe | Liquid fuel engine | Engine | (not yet) |
srb | Solid rocket booster | (not yet) | |
je | Jet engine | {{Infobox/Part/jet engine}} | |
cm | Command module | Command | {{Infobox/Part/command module}} |
cp | Cockpit | ||
pod | Command pod | ||
lab | Laboratory | Science | (not yet) |
exp | Environmental sensor | {{Infobox/Part/sensor}} | |
sen | Utility | ||
ada | Adapter | (not yet) | |
ant | Antenna | {{Infobox/Part/antenna}} | |
nc | Nose cone | Aero | (n/a) |
str | Strut | Structural | (n/a) |
Roles
- Note: This template is transitioning from roles to modules. Use a module if possible and only roles if there aren't any modules yet.
For different roles with special additional parameters one of the following templates should be used. This system is in process of redesigning and will be replaced by modules and types.
Command
- SAS: {{Infobox/Part/SAS}}
- Reaction wheel: {{Infobox/Part/ReactionWheel}}
Engines
- Liquid fuel engines: {{Infobox/Part/Engine/Liquid}}
- Solid Fuel Boosters: {{Infobox/Part/Engine/Solid}}
- Ion engines: {{Infobox/Part/Engine/Ion}}
- RCS thrusters: {{Infobox/Part/Engine/RCS}}
Fuel tanks
- Liquid Fuel Tank: {{Infobox/Part/FuelTank/Liquid}}
- Jet Fuel Tank: {{Infobox/Part/FuelTank/Jet}}
- Xenon Tank: {{Infobox/Part/FuelTank/Xenon}}
- RCS Fuel Tanks: {{Infobox/Part/FuelTank/RCS}}
Structural
- Struts: {{Infobox/Part/Strut}}
- Adapters: {{Infobox/Part/Adapter}}
Other
- (Some of those should be sorted into sections)
- Decouplers: {{Infobox/Part/Decoupler}}
- Rover wheels: {{Infobox/Part/RoverWheel}}
- Solar panel: {{Infobox/Part/SolarPanel}}
- Battery: {{Infobox/Part/Battery}}
- Wing: {{Infobox/Part/Wing}}
- Docking Port: {{Infobox/Part/DockingPort}}
- Parachute: {{Infobox/Part/Parachute}}
- Control surface: {{Infobox/Part/ControlSurface}}
- Ladder: {{Infobox/Part/Ladder}}
- Landing Gear: {{Infobox/Part/LandingStrut}}
These subtemplates are categorised in Category:Infobox/Part subtemplates.
Template
{{Infobox/Part |name= |file= |role= |manufacturer= |size= |size2= |costs= |mass= |drag= |temp= |tolerance= |more= |additional= |since= |class= |part= |parent= }}
Example
Example used on this page:
{{Infobox/Part |name=TVR-1180C Mk1 Stack Tri-Coupler |file=Tvr-1180C mk1 stack tri-coupler.jpg |role=Adapter |parent=Utility |manufacturer=Found lying by the side of the road |size=small |costs=680 |mass=0.3 |drag=0.3 |temp=3400 |tolerance=12 |since=0.7.3 |class=Part |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): 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