Template · infobox schema
Template:Infobox/faction
Infobox schema for faction pages (public-safe canon only): the fields, their groups, labels and units, as a JSON Schema.
This page holds the JSON Schema for infobox: type: faction, used by faction pages (public-safe canon only) (the field list follows SCIENCE_CORPUS 3.4 M). 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/faction",
"title": "Faction",
"description": "Infobox for faction pages (public-safe canon only). Fields follow SCIENCE_CORPUS 3.4 M.",
"type": "object",
"required": [
"type",
"name"
],
"properties": {
"type": {
"const": "faction"
},
"image": {
"$ref": "#/$defs/fileTitle",
"description": "Lead image, a File: title."
},
"caption": {
"type": "string"
},
"image_caption": {
"type": "string"
},
"name": {
"type": "string"
},
"internal_code": {
"$ref": "#/$defs/field"
},
"capital": {
"$ref": "#/$defs/field"
},
"founding_date": {
"$ref": "#/$defs/field"
},
"government": {
"$ref": "#/$defs/field"
},
"colour": {
"$ref": "#/$defs/field"
},
"position_relative_to_sol_ly": {
"$ref": "#/$defs/field"
},
"territory_size": {
"$ref": "#/$defs/field"
},
"worlds": {
"$ref": "#/$defs/field"
},
"military": {
"$ref": "#/$defs/field"
},
"relations": {
"$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": "Faction",
"image_field": "image",
"caption_field": "caption",
"groups": [
{
"index": "01",
"title": "Identity",
"fields": [
"name",
"internal_code",
"capital",
"founding_date",
"government",
"colour"
],
"provenance": "fiction"
},
{
"index": "02",
"title": "Territory",
"fields": [
"position_relative_to_sol_ly",
"territory_size",
"worlds"
],
"provenance": "fiction"
},
{
"index": "03",
"title": "Relations",
"fields": [
"military",
"relations"
],
"provenance": "fiction"
}
],
"fields": {
"name": {
"label": "Name"
},
"internal_code": {
"label": "Internal code"
},
"capital": {
"label": "Capital"
},
"founding_date": {
"label": "Founding date"
},
"government": {
"label": "Government"
},
"colour": {
"label": "Colour"
},
"position_relative_to_sol_ly": {
"label": "Position relative to sol",
"unit": "ly"
},
"territory_size": {
"label": "Territory size"
},
"worlds": {
"label": "Worlds"
},
"military": {
"label": "Military"
},
"relations": {
"label": "Relations"
}
}
}
}
| Group | Field | Label | Unit |
|---|---|---|---|
| 01 Identity | name | Name | |
| internal_code | Internal code | ||
| capital | Capital | ||
| founding_date | Founding date | ||
| government | Government | ||
| colour | Colour | ||
| 02 Territory | position_relative_to_sol_ly | Position relative to sol | ly |
| territory_size | Territory size | ||
| worlds | Worlds | ||
| 03 Relations | military | Military | |
| relations | Relations |