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 "JSON" to "wikitext": Data:Example will give context to the information stored in Data: pages, with subpages for different examples such as Data:Example/engines)
Tag: content model change
(Changing the Example page to give context to the function and layout of Data: pages)
Tag: 2017 source edit
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 [[Data:Example/blank|blank]] example that lists every usable data set.
    "name": "T3-ST \"Default\"",
 
    "file": "T3-ST_Default.png",
== Example subpages ==
    "caption": "Example Methalox Engine",
* [[Data:Example/engine|Engine]]
    "mass": "0.500",
* [[Data:Example/command module|Command module]]
    "size": "SM",
* [[Data:Example/science experiment|Science experiment]]
    "max_temp": "1000",
    "imp_tol": "10",
    "stores_research": false,
    "resources": false,
    "manufacturer": "Community Conglomerate",
    "modules": {
        "engine": {
            "max_thrust": {
                "atm": "42.0",
                "vac": "88.0"
            },
            "min_thrust": {
                "atm": "0.0",
                "vac": "0.0"
            },
            "isp": {
                "atm": "223",
                "vac": "628"
            },
            "propellants": {
                "units": "t/s",
                "methane": "0.010",
                "oxidizer": "0.040"
            },
            "flags": "Stops under 10%"
        },
        "gimbal": {
            "pitch": "2",
            "yaw": "2"
        },
        "generator": {
            "outputs": {
                "units": "/s",
                "electric charge": "2.000"
            },
            "always_active": true,
            "engine_alternator": true
        }
    }
}

Revision as of 17:53, 13 October 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.

Example subpages

MediaWiki Appliance - Powered by TurnKey Linux