Difference between revisions of "Template:Infobox/Part"
m (+ size, which I forgot. * use Infobox/Part/Line if appropriate.) |
m (- unnecessary newline. * all uses of Partbox to Infobox/Part. * minor stuff.) |
||
Line 9: | Line 9: | ||
|lines= | |lines= | ||
{{Infobox/Line|'''{{{role}}}''' {{Infobox/Part/Manufacturer Entry|{{Infobox/Part/Manufacturer|{{{manufacturer|SOTR}}}}}}}|style=text-align: center}} | {{Infobox/Line|'''{{{role}}}''' {{Infobox/Part/Manufacturer Entry|{{Infobox/Part/Manufacturer|{{{manufacturer|SOTR}}}}}}}|style=text-align: center}} | ||
− | |||
{{#if: {{{size|}}}|{{Infobox/Part/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|}}}|{{Infobox/Part/Line|[[Radial size{{if lang}}|{{lang|en=Radial size|de=Größe|ru=Размер|pl=Rozmiar}}]]|{{Radial Size|{{{size}}}}}{{#if: {{{size2|}}}|, {{Radial Size|{{{size2}}}}}}}}}}} | ||
{{Infobox/Part/Line|{{lang|en=Cost|de=Kosten|ru=Цена|pl=Cena}}|{{{costs}}} ¤}} | {{Infobox/Part/Line|{{lang|en=Cost|de=Kosten|ru=Цена|pl=Cena}}|{{{costs}}} ¤}} | ||
Line 19: | Line 18: | ||
{{{additional}}}}} | {{{additional}}}}} | ||
{{Infobox/Part/Line|{{lang|en=Since Version|de=Seit Version|pl=Od wersji|pt=Desde a versão}}|{{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{lang|en=Unknown|de=Unbekannt|pl=Nieznane|pt=Desconhecido}}}}}} | {{Infobox/Part/Line|{{lang|en=Since Version|de=Seit Version|pl=Od wersji|pt=Desde a versão}}|{{#if: {{{since|}}}|{{version|{{{since}}}|}}|{{lang|en=Unknown|de=Unbekannt|pl=Nieznane|pt=Desconhecido}}}}}} | ||
− | {{Infobox/Line|{{#if: {{{class|}}}|[[API:{{{class}}}|{{{class}}}]]|{{lang|en=Unknown API|de=Unbekanntes 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: | + | {{Infobox/Line|{{#if: {{{class|}}}|[[API:{{{class}}}|{{{class}}}]]|{{lang|en=Unknown API|de=Unbekanntes 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:Infobox/Part with unmoved part.cfg]]|[[Parts/{{{parent}}}/{{{part}}}/part.cfg|part.cfg]]}}{{#ifexist: Parts/{{{part}}}/part.cfg|[[Category:Infobox/Part with leftover part.cfg]]}}|[[Parts/{{{part}}}/part.cfg|part.cfg]][[Category:Infobox/Part with missing parameters]]}}|{{lang|en=Unknown cfg|de=Unbekannte cfg|pl=Nieznane cfg}}}}|style=text-align: center; font-size: smaller}} |
|notes={{{notes|}}} | |notes={{{notes|}}} | ||
}} | }} | ||
Line 25: | Line 24: | ||
</includeonly><noinclude>{{Infobox/Part | </includeonly><noinclude>{{Infobox/Part | ||
|name=TVR-1180C Mk1 Stack Tri-Coupler | |name=TVR-1180C Mk1 Stack Tri-Coupler | ||
+ | |file=Tvr-1180C mk1 stack tri-coupler.jpg | ||
|role=Adapter | |role=Adapter | ||
+ | |manufacturer=Found lying by the side of the road | ||
|size=small | |size=small | ||
− | |||
− | |||
|costs=680 | |costs=680 | ||
|mass=0.3 | |mass=0.3 | ||
Line 34: | Line 33: | ||
|temp=3400 | |temp=3400 | ||
|tolerance=12 | |tolerance=12 | ||
− | |||
|since=0.7.3 | |since=0.7.3 | ||
+ | |class=Part | ||
|part=stackTriCoupler | |part=stackTriCoupler | ||
}} | }} | ||
Line 45: | Line 44: | ||
{{Infobox/Part/Parameters}} | {{Infobox/Part/Parameters}} | ||
− | If a mandatory parameter is missing [[:Category: | + | If a mandatory parameter is missing [[:Category:Infobox/Part 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: | + | 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]]. |
=== More Parameter === | === More Parameter === | ||
Line 82: | Line 81: | ||
* More are following… | * More are following… | ||
− | These subtemplates are categorised in [[:Category: | + | These subtemplates are categorised in [[:Category:Infobox/Part subtemplates]]. |
== Template == | == Template == | ||
<pre>{{Infobox/Part | <pre>{{Infobox/Part | ||
|name= | |name= | ||
+ | |file= | ||
|role= | |role= | ||
− | | | + | |manufacturer= |
− | |||
|size= | |size= | ||
|size2= | |size2= | ||
Line 97: | Line 96: | ||
|temp= | |temp= | ||
|tolerance= | |tolerance= | ||
− | |||
|more= | |more= | ||
+ | |additional= | ||
|since= | |since= | ||
+ | |class= | ||
|part= | |part= | ||
|parent= | |parent= | ||
Line 108: | Line 108: | ||
<pre>{{Infobox/Part | <pre>{{Infobox/Part | ||
|name=TVR-1180C Mk1 Stack Tri-Coupler | |name=TVR-1180C Mk1 Stack Tri-Coupler | ||
+ | |file=Tvr-1180C mk1 stack tri-coupler.jpg | ||
|role=Adapter | |role=Adapter | ||
− | | | + | |manufacturer=Found lying by the side of the road |
− | |||
|size=small | |size=small | ||
|costs=680 | |costs=680 | ||
Line 117: | Line 117: | ||
|temp=3400 | |temp=3400 | ||
|tolerance=12 | |tolerance=12 | ||
− | |||
|since=0.7.3 | |since=0.7.3 | ||
+ | |class=Part | ||
|part=stackTriCoupler | |part=stackTriCoupler | ||
}}</pre> | }}</pre> | ||
Line 126: | Line 126: | ||
At the moment only English is supported by all templates. | At the moment only English is supported by all templates. | ||
− | * Deutsch (German): | + | * Deutsch (German): Infobox/Part complete, subtemplates partially |
− | * Polish (Polski): | + | * Polish (Polski): Infobox/Part mostly, subtemplates partially |
− | * Русский (Russian): | + | * Русский (Russian): Infobox/Part partially, subtemplates partially |
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 15:40, 28 June 2013
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.30 t |
Drag | 0.3 | |
Max. Temp. | 3400 K | |
Volume | ? | |
Impact Tolerance | 12 m/s | |
Research | Unknown | |
Unlock cost | 0 | |
Since version | 0.7.3 | |
Part configuration | stackTriCoupler |
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.
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.
More Parameter
To add additional fields the more {{{more}}} parameter should be used with {{Infobox/Part/Line}}.
Manufacturer
The template {{Infobox/Part/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: {{Infobox/Part/CommandPod}}
- Liquid fuel engines: {{Infobox/Part/LiquidFuelEngine}}
- Jet engines: {{Infobox/Part/JetEngine}}
- Solid Fuel Boosters: {{Infobox/Part/SolidFuelBooster}}
- 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}}
- SAS: {{Infobox/Part/SAS}}
- RCS thrusters: {{Infobox/Part/RCSModule}}
- Decouplers: {{Infobox/Part/Decoupler}}
- Rover wheels: {{Infobox/Part/RoverWheel}}
- Sensors: {{Infobox/Part/Sensor}}
- 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}}
- Antenna: {{Infobox/Part/Antenna}}
- Struts: {{Infobox/Part/Strut}}
- More are following…
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 |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