Skip to content
Pax Abyssi

Template · infobox schema

Template:Infobox/planet

Infobox schema for real or generated body pages: the fields, their groups, labels and units, as a JSON Schema.

This page holds the JSON Schema for infobox: type: planet, used by real or generated body pages (the field list follows SCIENCE_CORPUS 3.4 B). Every page whose frontmatter names this type is validated against it on save: a schema error blocks a save by a new account or an API client and warns a trusted editor.

Values are flexible so that writers can record what the sources allow. A field may be plain text or a number, a quantity object {value, unit, min, max, error, source, note}, or a by-status mapping {observed, model, sim} when the measured, inferred and generated values differ. Fields not listed here are allowed and shown under "Other" in the infobox. The x-pax block carries display metadata: the groups in order, each group's default provenance tag, and the label and unit for every field.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://paxabyssi.com/wiki/Template:Infobox/planet",
  "title": "Individual planet or moon",
  "description": "Infobox for real or generated body pages. Fields follow SCIENCE_CORPUS 3.4 B.",
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "const": "planet"
    },
    "image": {
      "$ref": "#/$defs/fileTitle",
      "description": "Lead image, a File: title."
    },
    "caption": {
      "type": "string"
    },
    "image_caption": {
      "type": "string"
    },
    "designation": {
      "type": "string"
    },
    "aliases": {
      "$ref": "#/$defs/field"
    },
    "host_star": {
      "$ref": "#/$defs/field"
    },
    "class": {
      "type": "string"
    },
    "subtype": {
      "$ref": "#/$defs/field"
    },
    "discovery": {
      "$ref": "#/$defs/field"
    },
    "semi_major_axis_au": {
      "$ref": "#/$defs/field"
    },
    "eccentricity": {
      "$ref": "#/$defs/field"
    },
    "inclination_deg": {
      "$ref": "#/$defs/field"
    },
    "period_days": {
      "$ref": "#/$defs/field"
    },
    "rotation_period_h": {
      "$ref": "#/$defs/field"
    },
    "obliquity_deg": {
      "$ref": "#/$defs/field"
    },
    "tidally_locked": {
      "$ref": "#/$defs/field"
    },
    "resonance": {
      "$ref": "#/$defs/field"
    },
    "mass_earth": {
      "$ref": "#/$defs/field"
    },
    "radius_earth": {
      "$ref": "#/$defs/field"
    },
    "density_g_cm3": {
      "$ref": "#/$defs/field"
    },
    "surface_gravity_m_s2": {
      "$ref": "#/$defs/field"
    },
    "escape_velocity_km_s": {
      "$ref": "#/$defs/field"
    },
    "equilibrium_temperature_k": {
      "$ref": "#/$defs/field"
    },
    "surface_temperature_k": {
      "$ref": "#/$defs/field"
    },
    "bond_albedo": {
      "$ref": "#/$defs/field"
    },
    "geometric_albedo": {
      "$ref": "#/$defs/field"
    },
    "surface_pressure_bar": {
      "$ref": "#/$defs/field"
    },
    "composition": {
      "$ref": "#/$defs/field"
    },
    "scale_height_km": {
      "$ref": "#/$defs/field"
    },
    "magnetosphere": {
      "$ref": "#/$defs/field"
    },
    "moons": {
      "$ref": "#/$defs/field"
    },
    "rings": {
      "$ref": "#/$defs/field"
    },
    "habitable_zone_position": {
      "$ref": "#/$defs/field"
    },
    "cvi": {
      "$ref": "#/$defs/field"
    },
    "hvi": {
      "$ref": "#/$defs/field"
    },
    "life_tier": {
      "$ref": "#/$defs/field"
    },
    "resources": {
      "$ref": "#/$defs/field"
    },
    "lore": {
      "$ref": "#/$defs/field"
    },
    "provenance": {
      "$ref": "#/$defs/field"
    },
    "sim_source": {
      "$ref": "#/$defs/field"
    },
    "physics_engine": {
      "$ref": "#/$defs/field"
    },
    "science_doc": {
      "$ref": "#/$defs/field"
    },
    "rendered_example": {
      "$ref": "#/$defs/field"
    },
    "last_verified": {
      "$ref": "#/$defs/field"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "quantity": {
      "type": "object",
      "description": "A number or range with its unit and provenance.",
      "properties": {
        "value": {
          "type": [
            "number",
            "string",
            "null"
          ]
        },
        "unit": {
          "type": "string"
        },
        "min": {
          "type": [
            "number",
            "string"
          ]
        },
        "max": {
          "type": [
            "number",
            "string"
          ]
        },
        "error": {
          "type": [
            "number",
            "string"
          ]
        },
        "uncertainty": {
          "type": [
            "number",
            "string"
          ]
        },
        "source": {
          "type": "string",
          "description": "observed | model | sim | catalogue | fiction, or a citation."
        },
        "note": {
          "type": "string"
        },
        "as_of": {
          "type": [
            "string",
            "number"
          ]
        }
      },
      "additionalProperties": true
    },
    "byStatus": {
      "type": "object",
      "description": "The same quantity as measured (observed), inferred (model) and generated (sim).",
      "properties": {
        "observed": {
          "$ref": "#/$defs/cell"
        },
        "model": {
          "$ref": "#/$defs/cell"
        },
        "sim": {
          "$ref": "#/$defs/cell"
        },
        "note": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "cell": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array"
        },
        {
          "$ref": "#/$defs/quantity"
        }
      ]
    },
    "field": {
      "anyOf": [
        {
          "$ref": "#/$defs/cell"
        },
        {
          "$ref": "#/$defs/byStatus"
        },
        {
          "type": "object"
        }
      ]
    },
    "fileTitle": {
      "type": "string",
      "pattern": "^File:"
    },
    "status": {
      "description": "One or more of observed, model, sim, speculative, fiction; or a sentence saying which parts carry which label.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    }
  },
  "x-pax": {
    "label": "Individual planet or moon",
    "image_field": "image",
    "caption_field": "caption",
    "groups": [
      {
        "index": "01",
        "title": "Identity",
        "fields": [
          "designation",
          "aliases",
          "host_star",
          "class",
          "subtype",
          "discovery"
        ]
      },
      {
        "index": "02",
        "title": "Orbit",
        "fields": [
          "semi_major_axis_au",
          "eccentricity",
          "inclination_deg",
          "period_days",
          "rotation_period_h",
          "obliquity_deg",
          "tidally_locked",
          "resonance"
        ]
      },
      {
        "index": "03",
        "title": "Physical",
        "fields": [
          "mass_earth",
          "radius_earth",
          "density_g_cm3",
          "surface_gravity_m_s2",
          "escape_velocity_km_s",
          "equilibrium_temperature_k",
          "surface_temperature_k",
          "bond_albedo",
          "geometric_albedo"
        ]
      },
      {
        "index": "04",
        "title": "Atmosphere",
        "fields": [
          "surface_pressure_bar",
          "composition",
          "scale_height_km",
          "magnetosphere"
        ]
      },
      {
        "index": "05",
        "title": "System",
        "fields": [
          "moons",
          "rings"
        ]
      },
      {
        "index": "06",
        "title": "Habitability",
        "fields": [
          "habitable_zone_position",
          "cvi",
          "hvi",
          "life_tier",
          "resources"
        ],
        "provenance": "sim"
      },
      {
        "index": "07",
        "title": "Sim",
        "fields": [
          "lore",
          "provenance",
          "sim_source",
          "physics_engine",
          "science_doc",
          "rendered_example",
          "last_verified"
        ],
        "provenance": "sim"
      }
    ],
    "fields": {
      "designation": {
        "label": "Designation"
      },
      "aliases": {
        "label": "Aliases"
      },
      "host_star": {
        "label": "Host star"
      },
      "class": {
        "label": "Class"
      },
      "subtype": {
        "label": "Subtype"
      },
      "discovery": {
        "label": "Discovery"
      },
      "semi_major_axis_au": {
        "label": "Semi major axis",
        "unit": "AU"
      },
      "eccentricity": {
        "label": "Eccentricity"
      },
      "inclination_deg": {
        "label": "Inclination",
        "unit": "°"
      },
      "period_days": {
        "label": "Period days"
      },
      "rotation_period_h": {
        "label": "Rotation period h"
      },
      "obliquity_deg": {
        "label": "Obliquity",
        "unit": "°"
      },
      "tidally_locked": {
        "label": "Tidally locked"
      },
      "resonance": {
        "label": "Resonance"
      },
      "mass_earth": {
        "label": "Mass",
        "unit": "M⊕"
      },
      "radius_earth": {
        "label": "Radius",
        "unit": "R⊕"
      },
      "density_g_cm3": {
        "label": "Bulk density",
        "unit": "g/cm³"
      },
      "surface_gravity_m_s2": {
        "label": "Surface gravity",
        "unit": "m/s²"
      },
      "escape_velocity_km_s": {
        "label": "Escape velocity",
        "unit": "km/s"
      },
      "equilibrium_temperature_k": {
        "label": "Equilibrium temperature",
        "unit": "K"
      },
      "surface_temperature_k": {
        "label": "Surface temperature",
        "unit": "K"
      },
      "bond_albedo": {
        "label": "Bond albedo"
      },
      "geometric_albedo": {
        "label": "Geometric albedo"
      },
      "surface_pressure_bar": {
        "label": "Surface pressure",
        "unit": "bar"
      },
      "composition": {
        "label": "Composition"
      },
      "scale_height_km": {
        "label": "Scale height",
        "unit": "km"
      },
      "magnetosphere": {
        "label": "Magnetosphere"
      },
      "moons": {
        "label": "Moons"
      },
      "rings": {
        "label": "Rings"
      },
      "habitable_zone_position": {
        "label": "Habitable zone position"
      },
      "cvi": {
        "label": "Cvi"
      },
      "hvi": {
        "label": "Hvi"
      },
      "life_tier": {
        "label": "Life tier"
      },
      "resources": {
        "label": "Resources"
      },
      "lore": {
        "label": "Lore"
      },
      "provenance": {
        "label": "Provenance"
      },
      "sim_source": {
        "label": "Sim source"
      },
      "physics_engine": {
        "label": "Physics engine"
      },
      "science_doc": {
        "label": "Science document"
      },
      "rendered_example": {
        "label": "Rendered example"
      },
      "last_verified": {
        "label": "Last verified"
      }
    }
  }
}
Fields41 fields
Fields
GroupFieldLabelUnit
01 IdentitydesignationDesignation
aliasesAliases
host_starHost star
classClass
subtypeSubtype
discoveryDiscovery
02 Orbitsemi_major_axis_auSemi major axisAU
eccentricityEccentricity
inclination_degInclination°
period_daysPeriod days
rotation_period_hRotation period h
obliquity_degObliquity°
tidally_lockedTidally locked
resonanceResonance
03 Physicalmass_earthMassM⊕
radius_earthRadiusR⊕
density_g_cm3Bulk densityg/cm³
surface_gravity_m_s2Surface gravitym/s²
escape_velocity_km_sEscape velocitykm/s
equilibrium_temperature_kEquilibrium temperatureK
surface_temperature_kSurface temperatureK
bond_albedoBond albedo
geometric_albedoGeometric albedo
04 Atmospheresurface_pressure_barSurface pressurebar
compositionComposition
scale_height_kmScale heightkm
magnetosphereMagnetosphere
05 SystemmoonsMoons
ringsRings
06 Habitabilityhabitable_zone_positionHabitable zone position
cviCvi
hviHvi
life_tierLife tier
resourcesResources
07 SimloreLore
provenanceProvenance
sim_sourceSim source
physics_enginePhysics engine
science_docScience document
rendered_exampleRendered example
last_verifiedLast verified