Template · infobox schema
Template:Infobox/star_class
Infobox schema for star class pages (Red dwarf, G-type main-sequence star, Supergiant): the fields, their groups, labels and units, as a JSON Schema.
This page holds the JSON Schema for infobox: type: star_class, used by star class pages (Red dwarf, G-type main-sequence star, Supergiant) (the field list follows SCIENCE_CORPUS 3.4 C). 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_class",
"title": "Star class",
"description": "Infobox for star class pages (Red dwarf, G-type main-sequence star, Supergiant). Fields follow SCIENCE_CORPUS 3.4 C.",
"type": "object",
"required": [
"type",
"name"
],
"properties": {
"type": {
"const": "star_class"
},
"image": {
"$ref": "#/$defs/fileTitle",
"description": "Lead image, a File: title."
},
"caption": {
"type": "string"
},
"image_caption": {
"type": "string"
},
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"stellar_class_key": {
"$ref": "#/$defs/field"
},
"spectral_types_covered": {
"$ref": "#/$defs/field"
},
"luminosity_class": {
"$ref": "#/$defs/field"
},
"science_status": {
"$ref": "#/$defs/status"
},
"effective_temperature": {
"$ref": "#/$defs/field"
},
"mass": {
"$ref": "#/$defs/field"
},
"radius": {
"$ref": "#/$defs/field"
},
"luminosity": {
"$ref": "#/$defs/field"
},
"main_sequence_lifetime": {
"$ref": "#/$defs/field"
},
"bv_colour": {
"$ref": "#/$defs/field"
},
"absolute_magnitude_v": {
"$ref": "#/$defs/field"
},
"perceived_colour": {
"$ref": "#/$defs/field"
},
"activity": {
"$ref": "#/$defs/field"
},
"share_of_stars": {
"$ref": "#/$defs/field"
},
"habitable_zone": {
"$ref": "#/$defs/field"
},
"planet_occurrence": {
"$ref": "#/$defs/field"
},
"subtypes": {
"$ref": "#/$defs/field"
},
"real_examples": {
"$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": "Star class",
"image_field": "image",
"caption_field": "caption",
"groups": [
{
"index": "01",
"title": "Identity",
"fields": [
"name",
"code",
"stellar_class_key",
"spectral_types_covered",
"luminosity_class",
"science_status"
]
},
{
"index": "02",
"title": "Physical",
"fields": [
"effective_temperature",
"mass",
"radius",
"luminosity",
"main_sequence_lifetime",
"bv_colour",
"absolute_magnitude_v",
"perceived_colour",
"activity"
]
},
{
"index": "03",
"title": "Population and planets",
"fields": [
"share_of_stars",
"habitable_zone",
"planet_occurrence",
"subtypes",
"real_examples"
]
},
{
"index": "04",
"title": "Sim",
"fields": [
"sim_source",
"physics_engine",
"science_doc",
"rendered_example",
"last_verified"
],
"provenance": "sim"
}
],
"fields": {
"name": {
"label": "Name"
},
"code": {
"label": "Code"
},
"stellar_class_key": {
"label": "Stellar class key"
},
"spectral_types_covered": {
"label": "Spectral types"
},
"luminosity_class": {
"label": "Luminosity class"
},
"science_status": {
"label": "Science status"
},
"effective_temperature": {
"label": "Effective temperature",
"unit": "K"
},
"mass": {
"label": "Mass"
},
"radius": {
"label": "Radius"
},
"luminosity": {
"label": "Luminosity",
"unit": "L☉"
},
"main_sequence_lifetime": {
"label": "Main-sequence lifetime",
"unit": "Gyr"
},
"bv_colour": {
"label": "B-V colour",
"unit": "mag"
},
"absolute_magnitude_v": {
"label": "Absolute magnitude (V)",
"unit": "mag"
},
"perceived_colour": {
"label": "Perceived colour"
},
"activity": {
"label": "Activity"
},
"share_of_stars": {
"label": "Share of stars"
},
"habitable_zone": {
"label": "Habitable zone",
"unit": "AU"
},
"planet_occurrence": {
"label": "Planet occurrence"
},
"subtypes": {
"label": "Subtypes"
},
"real_examples": {
"label": "Real examples"
},
"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 | |
| code | Code | ||
| stellar_class_key | Stellar class key | ||
| spectral_types_covered | Spectral types | ||
| luminosity_class | Luminosity class | ||
| science_status | Science status | ||
| 02 Physical | effective_temperature | Effective temperature | K |
| mass | Mass | ||
| radius | Radius | ||
| luminosity | Luminosity | L☉ | |
| main_sequence_lifetime | Main-sequence lifetime | Gyr | |
| bv_colour | B-V colour | mag | |
| absolute_magnitude_v | Absolute magnitude (V) | mag | |
| perceived_colour | Perceived colour | ||
| activity | Activity | ||
| 03 Population and planets | share_of_stars | Share of stars | |
| habitable_zone | Habitable zone | AU | |
| planet_occurrence | Planet occurrence | ||
| subtypes | Subtypes | ||
| real_examples | Real examples | ||
| 04 Sim | sim_source | Sim source | |
| physics_engine | Physics engine | ||
| science_doc | Science document | ||
| rendered_example | Rendered example | ||
| last_verified | Last verified |