Template:Infobox/Craft/doc
|
|
This is a documentation subpage for Template:Infobox/Craft. It contains usage information, categories and other content that is not part of the original template page. |
| Example Space Craft
| ||
| Vessel type | Plane | |
| Parts | 45 | |
| Stages | 3 | |
| Mass | 13 t | |
| Height | 6 m | |
| Width | 5 m | |
| Length | 12 m | |
| Construction facility | SPH | |
| Crew | 2 | |
| Main engines thrust | 150 kN | |
| Delta-v (ΔV) | 850 m/s | |
| Liquid fuel | 100 | |
| Oxidizer | 160 | |
| Monopropellant | 20 | |
| Solid fuel | 50 | |
| Xenon gas | 30 | |
| Intake air | 45 | |
| Electric capacity | 50 ⚡ | |
| Cost | 600 | |
| Since version | 1.10 | |
| From | ? | |
Shows an infobox for all in-game crafts (including stock, training, scenarios, and ESA missions) which was published either in the base KSP or in one of the paid add-ons Making History or Breaking Ground. This template is similar to the templates for information boxes of details and celestial bodies.
Further in the text, all in-game crafts will be named as "crafts" for short.
It is advisable to place this information box on the pages with the description of the crafts.
Usage
The infobox should be placed at the beginning of the craft page as code
{{:name_of_craft/Box}}The ":" symbol is required, since ready-made infoboxes are stored in the main namespace.
Craft articles that include the infobox will be added to the appropriate categories, depending on where the craft is from and the language in which the page is written:
- Stock crafts - Category:Stock craft,
- DLC crafts - Category:Making History Craft or Category:Breaking Ground Craft
- Scenarios crafts - Category:Scenarios Craft,
- Training crafts - Category:Training Craft,
- ESA missions crafts - Category:ESA missions Craft
For example, Aeris 3A/Box infobox will be added in Category:Stock craft on the English-language page, in Category:Stock craft/ru on the Russian-language page, in Category:Stock craft/zh-cn on the Chinese language page. Acapello/Box infobox will be added in Category:Making History Craft on the English-language page, in Category:Making History Craft/ru on the Russian-language page, in Category:Making History Craft/zh-cn on the Chinese language page.
Parameters
To work with this template, you must specify the appropriate parameters.
| Name | Optional | Description | Default |
|---|---|---|---|
| name | Yes | Name of the craft, which can be found in the localization file. Uses {{Dict/stock craft}} to translate names. | {{BASEPAGENAME}} |
| type | No | Type of the craft, which can be found in Map view (and the Tracking Station), which represented with special icon. In infobox, the type of craft is displayed with a special icon and an inscription under the picture of the craft. Variants: base, debris, lander, relay, plane, probe, rover, ship, station. | |
| file | Yes | Filename to image of the craft For example:Aeris 3A.png. | File:Image needed.svg |
| parts | No | Number of parts. | |
| stages | No | Number of stages. | |
| mass | No | Mass of the craft (t). | |
| height | No | Height of the craft (m). | |
| width | No | Width of the craft (m). | |
| length | No | Length of the craft (m). | |
| construction facility | Yes | The abbreviation of one of the construction facilities (VAB or SPH), into which the craft's configuration file is loaded by default. For stock craft only. The parameter can be specified in either uppercase or lowercase letters. | Not set/Hidden |
| crew | Yes | Crew capacity for manned crafts. | Not set/Hidden |
| main engines thrust | Yes | Total thrust of the main engines (kH). | Not set/Hidden |
| delta-v | Yes | Ship's delta-v (m/s) with fully filled fuel tanks, ore containers, full crew. | Not set/Hidden |
| lf | Yes | Max amount of Liquid Fuel on the craft in units. | Not set/Hidden |
| ox | Yes | Max amount of Oxidizer on the craft in units. Attention! If the ctaft uses only liquid fuel and does not use an oxidizer, then this parameter will need to be set 0, otherwise the {{Infobox/Part/tank}} module used in the template will automatically calculate the value of the oxidizer based on the specified value of the liquid fuel and indicate it in the infobox. |
Not set/Hidden |
| sf | Yes | Max amount of Solid Fuel on the craft in units. | Not set/Hidden |
| mp | Yes | Max amount of Monopropellant on the craft in units. | Not set/Hidden |
| xg | Yes | Max amount of Xenon Gas on the craft in units. | Not set/Hidden |
| ia | Yes | Max amount of Intake Air on the on the craft in units. | Not set/Hidden |
| or | Yes | Max amount of Ore on the craft in units. | Not set/Hidden |
| electricity-stored | Yes | Max amount of electricity on the craft in units. | Not set/Hidden |
| cost | No | Cost of the craft with fully filled fuel tanks (except ore containers). | |
| since | Yes | Version the craft first appeared in. It will be used in {{version}}. | Unknown |
| from | No | Where's the craft from. Used for categorize. Can be:
st (Base game) |
Template
{{Infobox/Craft
|name=
|file=
|type=
|parts=
|stages=
|mass=
|height=
|width=
|length=
|construction facility=
|crew=
|main engines thrust=
|delta-v=
|lf=
|ox=
|mp=
|sf=
|xg=
|ia=
|or=
|electricity-stored=
|cost=
|since=
|from=
}}
Example
Example used on this page:
{{Infobox/Craft
|name=Example Space Craft
|file=Aeris 3A.png
|type=plane
|parts=45
|stages=3
|mass=12.54
|height=5.8
|width=4.5
|length=11.6
|construction facility=sph
|crew=2
|main engines thrust=150
|delta-v=850
|lf=100
|ox=160
|mp=20
|sf=50
|xg=30
|ia=45
|or=15
|electricity-stored=50
|cost=600
|since=1.0
|from=N/A
}}
Translation
When using this template, most of it is translated automatically. To translate this template, go to the {{Infobox/Craft/Dict}} and {{Dict/stock craft}} templates.
