Template · infobox schema
Template:Infobox/star
Infobox schema for catalogue star pages: the fields, their groups, labels and units, as a JSON Schema.
This page holds the JSON Schema for infobox: type: star, used by catalogue star pages (the field list follows SCIENCE_CORPUS 3.4 D). 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/star",
"title": "Individual star",
"description": "Infobox for catalogue star pages. Fields follow SCIENCE_CORPUS 3.4 D.",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "star"
},
"image": {
"$ref": "#/$defs/fileTitle",
"description": "Lead image, a File: title."
},
"caption": {
"type": "string"
},
"image_caption": {
"type": "string"
},
"name": {
"type": "string"
},
"catalogue_ids": {
"$ref": "#/$defs/field"
},
"constellation": {
"$ref": "#/$defs/field"
},
"position_j2000": {
"$ref": "#/$defs/field"
},
"distance_pc": {
"$ref": "#/$defs/field"
},
"distance_ly": {
"$ref": "#/$defs/field"
},
"parallax_mas": {
"$ref": "#/$defs/field"
},
"apparent_magnitude_v": {
"$ref": "#/$defs/field"
},
"absolute_magnitude_v": {
"$ref": "#/$defs/field"
},
"spectral_type": {
"$ref": "#/$defs/field"
},
"stellar_class": {
"$ref": "#/$defs/field"
},
"effective_temperature": {
"$ref": "#/$defs/field"
},
"mass": {
"$ref": "#/$defs/field"
},
"radius": {
"$ref": "#/$defs/field"
},
"luminosity": {
"$ref": "#/$defs/field"
},
"metallicity_fe_h": {
"$ref": "#/$defs/field"
},
"age": {
"$ref": "#/$defs/field"
},
"multiplicity": {
"$ref": "#/$defs/field"
},
"variability": {
"$ref": "#/$defs/field"
},
"confirmed_planets": {
"$ref": "#/$defs/field"
},
"sim_planets": {
"$ref": "#/$defs/field"
},
"habitable_zone": {
"$ref": "#/$defs/field"
},
"galactic_xyz_pc": {
"$ref": "#/$defs/field"
},
"faction_territory": {
"$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 star",
"image_field": "image",
"caption_field": "caption",
"groups": [
{
"index": "01",
"title": "Identity",
"fields": [
"name",
"catalogue_ids",
"constellation",
"position_j2000",
"distance_pc",
"distance_ly",
"parallax_mas",
"apparent_magnitude_v",
"absolute_magnitude_v"
],
"provenance": "catalogue"
},
{
"index": "02",
"title": "Physical",
"fields": [
"spectral_type",
"stellar_class",
"effective_temperature",
"mass",
"radius",
"luminosity",
"metallicity_fe_h",
"age",
"multiplicity",
"variability"
],
"provenance": "catalogue"
},
{
"index": "03",
"title": "Planets",
"fields": [
"confirmed_planets",
"sim_planets",
"habitable_zone"
]
},
{
"index": "04",
"title": "Sim",
"fields": [
"galactic_xyz_pc",
"faction_territory",
"sim_source",
"physics_engine",
"science_doc",
"rendered_example",
"last_verified"
],
"provenance": "sim"
}
],
"fields": {
"name": {
"label": "Name"
},
"catalogue_ids": {
"label": "Catalogue ids"
},
"constellation": {
"label": "Constellation"
},
"position_j2000": {
"label": "Position (J2000)"
},
"distance_pc": {
"label": "Distance",
"unit": "pc"
},
"distance_ly": {
"label": "Distance",
"unit": "ly"
},
"parallax_mas": {
"label": "Parallax mas"
},
"apparent_magnitude_v": {
"label": "Apparent magnitude",
"unit": "V"
},
"absolute_magnitude_v": {
"label": "Absolute magnitude (V)",
"unit": "mag"
},
"spectral_type": {
"label": "Spectral type"
},
"stellar_class": {
"label": "Stellar class"
},
"effective_temperature": {
"label": "Effective temperature",
"unit": "K"
},
"mass": {
"label": "Mass"
},
"radius": {
"label": "Radius"
},
"luminosity": {
"label": "Luminosity",
"unit": "L☉"
},
"metallicity_fe_h": {
"label": "Metallicity fe h"
},
"age": {
"label": "Age",
"unit": "Gyr"
},
"multiplicity": {
"label": "Multiplicity"
},
"variability": {
"label": "Variability"
},
"confirmed_planets": {
"label": "Confirmed planets"
},
"sim_planets": {
"label": "Sim planets"
},
"habitable_zone": {
"label": "Habitable zone",
"unit": "AU"
},
"galactic_xyz_pc": {
"label": "Galactic xyz",
"unit": "pc"
},
"faction_territory": {
"label": "Faction territory"
},
"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"
}
}
}
}
| Group | Field | Label | Unit |
|---|---|---|---|
| 01 Identity | name | Name | |
| catalogue_ids | Catalogue ids | ||
| constellation | Constellation | ||
| position_j2000 | Position (J2000) | ||
| distance_pc | Distance | pc | |
| distance_ly | Distance | ly | |
| parallax_mas | Parallax mas | ||
| apparent_magnitude_v | Apparent magnitude | V | |
| absolute_magnitude_v | Absolute magnitude (V) | mag | |
| 02 Physical | spectral_type | Spectral type | |
| stellar_class | Stellar class | ||
| effective_temperature | Effective temperature | K | |
| mass | Mass | ||
| radius | Radius | ||
| luminosity | Luminosity | L☉ | |
| metallicity_fe_h | Metallicity fe h | ||
| age | Age | Gyr | |
| multiplicity | Multiplicity | ||
| variability | Variability | ||
| 03 Planets | confirmed_planets | Confirmed planets | |
| sim_planets | Sim planets | ||
| habitable_zone | Habitable zone | AU | |
| 04 Sim | galactic_xyz_pc | Galactic xyz | pc |
| faction_territory | Faction territory | ||
| sim_source | Sim source | ||
| physics_engine | Physics engine | ||
| science_doc | Science document | ||
| rendered_example | Rendered example | ||
| last_verified | Last verified |