Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Data:Example: Difference between revisions

From Kerbal Space Program 2 Wiki
(KiwiShark changed the content model of the page Data:Example from "wikitext" to "JSON": Data pages are JSON)
Tag: content model change
(added link to example parachute)
Tag: 2017 source edit
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{
Pages in the Data: namespace are reserved for storing JSON-formatted information on game entities such as parts and celestial bodies. They are accessed and implemented in articles via [[Template:Data]]. Subpages of this page provide populated examples of various parts as well as a blank example that lists every usable data set for an entity type.
    "name": "T3-ST \"Default\"",
 
    "caption": "Example Methalox Engine",
== Example subpages ==
    "mass": "0.500",
=== Parts ===
    "size": "SM",
* [[Data:Example/part|Blank part]]
    "max_temp": "1000",
* [[Data:Example/engine|Engine]]
    "imp_tol": "10",
* [[Data:Example/command module|Command module]]
    "stores_research": false,
* [[Data:Example/parachute|Parachute]]
    "resources": false,
* [[Data:Example/science experiment|Science experiment]]
    "manufacturer": "Community Conglomerate",
=== Celestial Bodies ===
    "engine": {
* [[Data:Example/body|Celestial body]]
        "fuel": "methalox",
 
        "thrust_atm": "42.0",
== Data sets ==
        "thrust_vac": "88.0",
A Data: page contains a wide variety of information relevant to its subject.
        "isp_atm": "223",
 
        "isp_vac": "628"
All Data: pages start with the '''Entity''' element which can be "part", "body", "node", et cetera. The following lists the data sets per entity type defined.
    },
=== Parts ===
    "modules": {
* '''Name''': The name of the part as it appears in-game.
        "engine": {
* '''Subtitle''': The subtitle of the part as it appears in-game.
            "max_thrust": {
* '''File''': The file name, including the extension, of the wiki thumbnail image for the part. Should not include apostrophe, spaces, or periods.
                "atm": "42.0",
* '''Category''': The part’s category, e.g. <code>fuel tank</code>, <code>engine</code>, or <code>utility</code>.
                "vac": "88.0"
* '''Family''': The part’s family, or subcategory, e.g. <code>methalox</code>, <code>stabilizer</code>, or <code>battery</code>.
            },
* '''Mass''': The mass of the part, in <code>kg</code>.
            "min_thrust": {
* '''Size''': The size of the part, using the two-character tag per [[Size]] labels e.g. <code>SM</code> or <code>LG</code>.
                "atm": "0.0",
* '''Max_temp:''' The highest temperature the part can withstand, in <code>K</code>.
                "vac": "0.0"
* '''Imp_tol''': The highest impact velocity the part can withstand, in <code>m/s</code>.
            },
* '''Stores_research''': If the part stores the results of science experiments, either <code>true</code> or <code>false</code>.
            "isp": {
* '''Resources''': What resource(s) can be contained by the part. Units are in <code>t</code>.
                "atm": "223",
* '''Manufacturer''': The in-game manufacturer of the part, e.g. <code>Kerbodyne</code>.
                "vac": "628"
* '''Modules''': Each part may have zero or more of the following part modules:
            },
** '''Command module'''
            "propellants": {
*** '''Crew_required''': Minimum number of Kerbals the part needs to function.
                "units": "t/s",
** '''Reaction wheel'''
                "methane": "0.010",
*** '''Torque''': How much pitch, roll, and yaw the part can induce, in <code>kN</code>.
                "oxidizer": "0.040"
*** '''Resources_required''': How much electric charge the part needs to use this module, in <code>/s</code>.
            },
 
            "flags": "Stops under 10%"
=== Celestial bodies ===
        },
        "gimbal": {
            "pitch": "2",
            "yaw": "2"
        },
        "generator": {
            "outputs": {
                "units": "/s",
                "electric charge": "2.000"
            },
            "always_active": true,
            "engine_alternator": true
        }
    }
}

Latest revision as of 00:39, 16 December 2024

Pages in the Data: namespace are reserved for storing JSON-formatted information on game entities such as parts and celestial bodies. They are accessed and implemented in articles via Template:Data. Subpages of this page provide populated examples of various parts as well as a blank example that lists every usable data set for an entity type.

Example subpages[edit source]

Parts[edit source]

Celestial Bodies[edit source]

Data sets[edit source]

A Data: page contains a wide variety of information relevant to its subject.

All Data: pages start with the Entity element which can be "part", "body", "node", et cetera. The following lists the data sets per entity type defined.

Parts[edit source]

  • Name: The name of the part as it appears in-game.
  • Subtitle: The subtitle of the part as it appears in-game.
  • File: The file name, including the extension, of the wiki thumbnail image for the part. Should not include apostrophe, spaces, or periods.
  • Category: The part’s category, e.g. fuel tank, engine, or utility.
  • Family: The part’s family, or subcategory, e.g. methalox, stabilizer, or battery.
  • Mass: The mass of the part, in kg.
  • Size: The size of the part, using the two-character tag per Size labels e.g. SM or LG.
  • Max_temp: The highest temperature the part can withstand, in K.
  • Imp_tol: The highest impact velocity the part can withstand, in m/s.
  • Stores_research: If the part stores the results of science experiments, either true or false.
  • Resources: What resource(s) can be contained by the part. Units are in t.
  • Manufacturer: The in-game manufacturer of the part, e.g. Kerbodyne.
  • Modules: Each part may have zero or more of the following part modules:
    • Command module
      • Crew_required: Minimum number of Kerbals the part needs to function.
    • Reaction wheel
      • Torque: How much pitch, roll, and yaw the part can induce, in kN.
      • Resources_required: How much electric charge the part needs to use this module, in /s.

Celestial bodies[edit source]

MediaWiki Appliance - Powered by TurnKey Linux