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

Kerbal Space Program 2 Wiki:Manual of Style/Data

From Kerbal Space Program 2 Wiki
Revision as of 18:52, 8 October 2024 by KiwiShark (talk | contribs) (Added some important notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The following are guidelines for various aspects of writing data pages in the Data: namespace, established by consensus among KSP 2 Wiki editors. Please discuss them on the talk page if you have ideas or questions. Editors should also be familiar with the main Manual of Style.

Function[edit source]

Data pages contain JSON-formatted information on particular entities. The Page content model in the Basic information section of the page's Page information display must be set to JSON, which is enabled by default for the Data: namespace.

Naming conventions[edit source]

Data articles are to be titled explicitly per their respective subject, e.g. Data:IX-6315 "Dawn", Data:PPD-20 "Wayfarer", Data:Kerbin, Data:Laythe, et cetera.

Layout[edit source]

Parts[edit source]

The proper JSON-formatted layout can be found at Data:Example. Take note of the following:

  • Comments are not supported by JSON formatting. A dummy _comment parameter can be added if necessary but should not contain any information that would need to be passed or handled outside of the data page.
  • Any numerical parameters are only to be given numerical values. Units are handled separately. For mass, max_temp, and imp_tol the units are implicitly t, K, and m/s, respectively. Units for values in part type and part module parameters are implicitly handled as present in-game unless a units param exists which is then used instead.
  • All parameters are to be implemented as strings except for where a boolean is appropriate. Numerical data should be implemented as a string, not as a number, since the data page is used for primarily presenting text and not performing calculations.
MediaWiki Appliance - Powered by TurnKey Linux