Template:Infobox ship: Difference between revisions

From RPG Continuum Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
| rows =
| rows =
{{Infobox header|Production information}}
{{Infobox header|Production information}}
{{Infobox row|Manufacturer|{{{manufacturer|}}}}}
{{#if:{{{manufacturer|}}}|{{Infobox row|Manufacturer|{{{manufacturer}}}}}}}
{{Infobox row|Classification|{{{classification|}}}}}
{{#if:{{{classification|}}}|{{Infobox row|Classification|{{{classification}}}}}}}
{{Infobox row|Role|{{{role|}}}}}
{{#if:{{{role|}}}|{{Infobox row|Role|{{{role}}}}}}}
 
{{Infobox header|Technical specifications}}
{{Infobox header|Technical specifications}}
{{Infobox row|Length|{{{length|}}}}}
{{#if:{{{length|}}}|{{Infobox row|Length|{{{length}}}}}}}
{{Infobox row|Crew|{{{crew|}}}}}
{{#if:{{{acceleration_g|}}}{{{acceleration_mglt|}}}|{{Infobox row|Maximum acceleration|<ul class="rpgc-infobox-list">{{#if:{{{acceleration_g|}}}|<li>{{{acceleration_g}}}</li>}}{{#if:{{{acceleration_mglt|}}}|<li>{{{acceleration_mglt}}}</li>}}</ul>}}}}
{{Infobox row|Passengers|{{{passengers|}}}}}
{{#if:{{{max_atmospheric_speed|}}}|{{Infobox row|Maximum atmospheric speed|{{{max_atmospheric_speed}}}}}}}
{{Infobox row|Cargo capacity|{{{cargo|}}}}}
{{#if:{{{engines|}}}|{{Infobox row|Engine unit(s)|{{{engines}}}}}}}
{{Infobox row|Consumables|{{{consumables|}}}}}
{{#if:{{{hyperdrive|}}}{{{backup_hyperdrive|}}}|{{Infobox row|Hyperdrive rating|<ul class="rpgc-infobox-list">{{#if:{{{hyperdrive|}}}|<li>{{{hyperdrive}}}</li>}}{{#if:{{{backup_hyperdrive|}}}|<li>Backup: {{{backup_hyperdrive}}}</li>}}</ul>}}}}
 
{{#if:{{{shielding|}}}|{{Infobox row|Shielding|{{{shielding}}}}}}}
{{Infobox header|Propulsion and systems}}
{{#if:{{{hull|}}}|{{Infobox row|Hull|{{{hull}}}}}}}
{{Infobox row|Hyperdrive|{{{hyperdrive|}}}}}
{{#if:{{{countermeasures|}}}|{{Infobox row|Countermeasures|{{{countermeasures}}}}}}}
{{Infobox row|Backup hyperdrive|{{{backup_hyperdrive|}}}}}
{{#if:{{{other_systems|}}}|{{Infobox row|Other systems|{{{other_systems}}}}}}}
{{Infobox row|Atmospheric propulsion|{{{atmospheric_propulsion|}}}}}
{{Infobox header|Capacity}}
{{Infobox row|Auxiliary lift|{{{auxiliary_lift|}}}}}
{{#if:{{{crew|}}}|{{Infobox row|Crew|{{{crew}}}}}}}
 
{{#if:{{{passengers|}}}|{{Infobox row|Passengers|{{{passengers}}}}}}}
{{Infobox header|Armament and protection}}
{{#if:{{{cargo|}}}|{{Infobox row|Cargo capacity|{{{cargo}}}}}}}
{{Infobox row|Shielding|{{{shielding|}}}}}
{{#if:{{{consumables|}}}|{{Infobox row|Consumables|{{{consumables}}}}}}}
{{Infobox row|Armor|{{{armor|}}}}}
{{Infobox header|Armament}}
{{Infobox row|Armament|{{{armament|}}}}}
{{#if:{{{armament|}}}|{{Infobox row|Armament|{{{armament}}}}}}}
 
{{{extra_rows|}}}
{{{extra_rows|}}}
}}
}}
<noinclude>
<templatedata>
{
  "description": "Infobox for spacecraft, shuttles, landing craft, starfighters, transports, and similar vessels.",
  "params": {
    "name": {
      "label": "Name",
      "description": "Name of the vessel or class displayed at the top of the infobox.",
      "type": "string",
      "suggested": true
    },
    "image": {
      "label": "Image",
      "description": "Uploaded image filename, without the File: prefix.",
      "example": "Aster.png",
      "type": "wiki-file-name",
      "suggested": true
    },
    "caption": {
      "label": "Image caption",
      "description": "Caption displayed beneath the infobox image.",
      "type": "string"
    },
    "manufacturer": {
      "label": "Manufacturer",
      "description": "Builder or manufacturer of the vessel.",
      "type": "content",
      "suggested": true
    },
    "classification": {
      "label": "Classification",
      "description": "General vessel type or classification.",
      "example": "Aerodyne shuttle / light landing craft",
      "type": "string",
      "suggested": true
    },
    "role": {
      "label": "Role",
      "description": "Primary operational roles of the vessel.",
      "type": "content",
      "suggested": true
    },
    "length": {
      "label": "Length",
      "description": "Overall length of the vessel.",
      "example": "24 meters",
      "type": "string"
    },
    "acceleration_g": {
      "label": "Maximum acceleration (G)",
      "description": "Maximum acceleration expressed in standard gravities.",
      "example": "3,700 G",
      "type": "string"
    },
    "acceleration_mglt": {
      "label": "Maximum acceleration (MGLT)",
      "description": "Maximum acceleration or speed rating expressed in MGLT.",
      "example": "16 MGLT/s",
      "type": "string"
    },
    "max_atmospheric_speed": {
      "label": "Maximum atmospheric speed",
      "description": "Maximum speed in atmosphere.",
      "example": "1,050 km/h",
      "type": "string"
    },
    "engines": {
      "label": "Engine unit(s)",
      "description": "Primary propulsion engines or engine units.",
      "type": "content"
    },
    "hyperdrive": {
      "label": "Hyperdrive rating",
      "description": "Primary hyperdrive class or rating.",
      "example": "Class 1.5",
      "type": "string"
    },
    "backup_hyperdrive": {
      "label": "Backup hyperdrive",
      "description": "Backup hyperdrive class or rating.",
      "example": "Class 8",
      "type": "string"
    },
    "shielding": {
      "label": "Shielding",
      "description": "Deflector shields or other defensive shielding.",
      "type": "content"
    },
    "hull": {
      "label": "Hull",
      "description": "Hull construction, armor, or structural protection.",
      "type": "content"
    },
    "countermeasures": {
      "label": "Countermeasures",
      "description": "Defensive countermeasures such as chaff, flares, jammers, or decoys.",
      "type": "content"
    },
    "other_systems": {
      "label": "Other systems",
      "description": "Additional notable systems not covered by other fields.",
      "type": "content"
    },
    "crew": {
      "label": "Crew",
      "description": "Normal crew complement.",
      "type": "content",
      "suggested": true
    },
    "passengers": {
      "label": "Passengers",
      "description": "Passenger or troop capacity.",
      "type": "content"
    },
    "cargo": {
      "label": "Cargo capacity",
      "description": "Normal cargo capacity.",
      "type": "content"
    },
    "consumables": {
      "label": "Consumables",
      "description": "Typical duration of carried consumables and supplies.",
      "example": "Approximately 2 weeks",
      "type": "string"
    },
    "armament": {
      "label": "Armament",
      "description": "Installed weapons and weapons systems.",
      "type": "content"
    },
    "extra_rows": {
      "label": "Additional infobox rows",
      "description": "Optional custom rows using Infobox row or Infobox header templates.",
      "type": "content"
    }
  },
  "paramOrder": [
    "name",
    "image",
    "caption",
    "manufacturer",
    "classification",
    "role",
    "length",
    "acceleration_g",
    "acceleration_mglt",
    "max_atmospheric_speed",
    "engines",
    "hyperdrive",
    "backup_hyperdrive",
    "shielding",
    "hull",
    "countermeasures",
    "other_systems",
    "crew",
    "passengers",
    "cargo",
    "consumables",
    "armament",
    "extra_rows"
  ]
}
</templatedata>
</noinclude>

Revision as of 10:33, 4 October 2026

Infobox ship


Production information


Technical specifications





Capacity



Armament