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: Difference between revisions

From Kerbal Space Program 2 Wiki
(Start page for Data page MoS)
Tag: 2017 source edit
 
(Added layout for parts data)
Tag: 2017 source edit
Line 1: Line 1:
The following are guidelines for various aspects of writing data pages in NS:Data, 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 [[Kerbal Space Program 2 Wiki:Manual of Style|Manual of Style]].
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 [[Kerbal Space Program 2 Wiki:Manual of Style|Manual of Style]].


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


== Naming conventions ==
== Naming conventions ==
Line 8: Line 8:


== Layout ==
== Layout ==
=== Parts ===
The proper layout of part data is as follows:
* Name
* Caption
* Mass
* Size
* Maximum temperature
* Impact tolerance
* Stores research
* Resources
* Manufacturer
* Part type
** Part type params
* Part modules
** Part module elements
*** Part module element params
An JSON-formatted example can be found at [[Data:Example]].

Revision as of 18:33, 8 October 2024

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

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

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

Parts

The proper layout of part data is as follows:

  • Name
  • Caption
  • Mass
  • Size
  • Maximum temperature
  • Impact tolerance
  • Stores research
  • Resources
  • Manufacturer
  • Part type
    • Part type params
  • Part modules
    • Part module elements
      • Part module element params

An JSON-formatted example can be found at Data:Example.

MediaWiki Appliance - Powered by TurnKey Linux