Template · infobox schema
Template:Infobox/white_dwarf
Infobox schema for white dwarf pages: the fields, their groups, labels and units, as a JSON Schema.
This page holds the JSON Schema for infobox: type: white_dwarf, used by white dwarf pages (the field list follows SCIENCE_CORPUS 3.4 F). 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/white_dwarf",
"title": "White dwarf",
"description": "Infobox for white dwarf pages. Fields follow SCIENCE_CORPUS 3.4 F.",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "white_dwarf"
},
"image": {
"$ref": "#/$defs/fileTitle",
"description": "Lead image, a File: title."
},
"caption": {
"type": "string"
},
"image_caption": {
"type": "string"
},
"spectral_classes": {
"$ref": "#/$defs/field"
},
"temperature_index": {
"$ref": "#/$defs/field"
},
"known_count": {
"$ref": "#/$defs/field"
},
"nearest_known": {
"$ref": "#/$defs/field"
},
"companions": {
"$ref": "#/$defs/field"
},
"teff_k": {
"$ref": "#/$defs/field"
},
"mass_msun": {
"$ref": "#/$defs/field"
},
"maximum_mass_msun": {
"$ref": "#/$defs/field"
},
"radius_rearth": {
"$ref": "#/$defs/field"
},
"radius_km": {
"$ref": "#/$defs/field"
},
"mean_density_kg_m3": {
"$ref": "#/$defs/field"
},
"surface_gravity_log_g_cgs": {
"$ref": "#/$defs/field"
},
"cooling_age_gyr": {
"$ref": "#/$defs/field"
},
"progenitor_mass_msun": {
"$ref": "#/$defs/field"
},
"core_composition": {
"$ref": "#/$defs/field"
},
"magnetic_field_mg": {
"$ref": "#/$defs/field"
},
"metal_pollution": {
"$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": "White dwarf",
"image_field": "image",
"caption_field": "caption",
"groups": [
{
"index": "01",
"title": "Identity",
"fields": [
"spectral_classes",
"temperature_index",
"known_count",
"nearest_known",
"companions"
],
"provenance": "catalogue"
},
{
"index": "02",
"title": "Physical",
"fields": [
"teff_k",
"mass_msun",
"maximum_mass_msun",
"radius_rearth",
"radius_km",
"mean_density_kg_m3",
"surface_gravity_log_g_cgs",
"cooling_age_gyr",
"progenitor_mass_msun",
"core_composition",
"magnetic_field_mg",
"metal_pollution"
]
},
{
"index": "03",
"title": "Sim",
"fields": [
"sim_source",
"physics_engine",
"science_doc",
"rendered_example",
"last_verified"
],
"provenance": "sim"
}
],
"fields": {
"spectral_classes": {
"label": "Spectral classes"
},
"temperature_index": {
"label": "Temperature index"
},
"known_count": {
"label": "Known count"
},
"nearest_known": {
"label": "Nearest known"
},
"companions": {
"label": "Companions"
},
"teff_k": {
"label": "Effective temperature",
"unit": "K"
},
"mass_msun": {
"label": "Mass",
"unit": "M☉"
},
"maximum_mass_msun": {
"label": "Maximum mass",
"unit": "M☉"
},
"radius_rearth": {
"label": "Radius",
"unit": "R⊕"
},
"radius_km": {
"label": "Radius",
"unit": "km"
},
"mean_density_kg_m3": {
"label": "Mean density",
"unit": "kg/m³"
},
"surface_gravity_log_g_cgs": {
"label": "Surface gravity",
"unit": "log g (cgs)"
},
"cooling_age_gyr": {
"label": "Cooling age",
"unit": "Gyr"
},
"progenitor_mass_msun": {
"label": "Progenitor mass",
"unit": "M☉"
},
"core_composition": {
"label": "Core composition"
},
"magnetic_field_mg": {
"label": "Magnetic field",
"unit": "MG"
},
"metal_pollution": {
"label": "Metal pollution"
},
"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 | spectral_classes | Spectral classes | |
| temperature_index | Temperature index | ||
| known_count | Known count | ||
| nearest_known | Nearest known | ||
| companions | Companions | ||
| 02 Physical | teff_k | Effective temperature | K |
| mass_msun | Mass | M☉ | |
| maximum_mass_msun | Maximum mass | M☉ | |
| radius_rearth | Radius | R⊕ | |
| radius_km | Radius | km | |
| mean_density_kg_m3 | Mean density | kg/m³ | |
| surface_gravity_log_g_cgs | Surface gravity | log g (cgs) | |
| cooling_age_gyr | Cooling age | Gyr | |
| progenitor_mass_msun | Progenitor mass | M☉ | |
| core_composition | Core composition | ||
| magnetic_field_mg | Magnetic field | MG | |
| metal_pollution | Metal pollution | ||
| 03 Sim | sim_source | Sim source | |
| physics_engine | Physics engine | ||
| science_doc | Science document | ||
| rendered_example | Rendered example | ||
| last_verified | Last verified |