Jump to content

Template:ShipInfobox: Difference between revisions

From Elite Dangerous Wiki
Converting to portable infobox format
Changed label displayed for data source "fighterhangar" from "Fighter Hangar" to "Fighter Bay" per request.
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox theme="portInfobox">
<infobox theme="portInfobox">
<title><default>{{PAGENAME}}</default></title>
<title><default>{{PAGENAME}}</default></title>
<image source="image"><default>Placeholder.png</default></image>
<image source="image"><default>Placeholder Ship.png</default></image>
<group>
<group>
    <header>Overview</header>
    <header>Overview</header>
Line 11: Line 11:
         <format>{{{cost}}} CR</format>
         <format>{{{cost}}} CR</format>
     </data>
     </data>
     <data source="cost">
    <data source="arx">
        <label>ARX</label>
        <format>{{{arx}}} ARX</format>
    </data> 
     <data source="insurance">
         <label>Insurance</label>
         <label>Insurance</label>
         <format>{{formatnum: {{#expr: trunc({{formatnum: {{{cost|}}}|R}}*0.05)}} }} CR</format>
         <format>{{{insurance}}} CR</format>
         </data>
         </data>
     <data source="factionreq"><label>Faction</label><format>[[{{{factionreq}}}]]</format></data>
     <data source="factionreq"><label>Faction</label><format>[[{{{factionreq}}}]]</format></data>
Line 28: Line 32:
     <data source="seats"><label>Pilot Seats</label></data>
     <data source="seats"><label>Pilot Seats</label></data>
     <data source="multicrew"><label>Multicrew</label></data>
     <data source="multicrew"><label>Multicrew</label></data>
     <data source="fighterhangar"><label>Fighter Hangar</label></data>
     <data source="fighterhangar"><label>Fighter Bay</label></data>
     <data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data>
     <data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data>
     <data source="masslock"><label>Mass Lock Factor</label></data>
     <data source="masslock"><label>Mass Lock Factor</label></data>
Line 36: Line 40:
     <data source="heatcapacity"><label>Heat Capacity</label></data>
     <data source="heatcapacity"><label>Heat Capacity</label></data>
     <data source="fuelcapacity"><label>Fuel Capacity</label><format>{{{fuelcapacity}}} t</format></data>
     <data source="fuelcapacity"><label>Fuel Capacity</label><format>{{{fuelcapacity}}} t</format></data>
     <data source="manoeuvrability"><label>Manoeuvrability</label></data>
    <data source="scooptimised"><label>SCO Optimised</label></data>
     <data source="manoeuvrability"><label>Manoeuvr-<br/>ability</label></data>
     <data>
     <data>
         <label>Top Speed</label>
         <label>Top Speed</label>
Line 60: Line 65:
         <default>{{#if: {{{utility|}}} | {{{utility}}}× Utility {{plural: {{{utility}}} | Mount | Mounts}} <br/> }}{{#if: {{{small|}}} | {{{small}}}× Small {{plural: {{{small}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{medium|}}} | {{{medium}}}× Medium {{plural: {{{medium}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{large|}}} | {{{large}}}× Large {{plural: {{{large}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{huge|}}} | {{{huge}}}× Huge {{plural: {{{huge}}} | Hardpoint | Hardpoints}} <br/> }}</default>
         <default>{{#if: {{{utility|}}} | {{{utility}}}× Utility {{plural: {{{utility}}} | Mount | Mounts}} <br/> }}{{#if: {{{small|}}} | {{{small}}}× Small {{plural: {{{small}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{medium|}}} | {{{medium}}}× Medium {{plural: {{{medium}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{large|}}} | {{{large}}}× Large {{plural: {{{large}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{huge|}}} | {{{huge}}}× Huge {{plural: {{{huge}}} | Hardpoint | Hardpoints}} <br/> }}</default>
         </data>
         </data>
    <data source="reservedhp"><label>Reserved Hardpoints</label>
    </data>
     <data><label>Internal Compartments</label>
     <data><label>Internal Compartments</label>
         <default>{{#if: {{{size1|}}} | {{{size1}}}× Class 1 {{plural: {{{size1}}} | Compartment | Compartments}} <br/> }}{{#if: {{{size2|}}} | {{{size2}}}× Class 2 {{plural: {{{size2}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size3|}}} | {{{size3}}}× Class 3 {{plural: {{{size3}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size4|}}} | {{{size4}}}× Class 4 {{plural: {{{size4}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size5|}}} | {{{size5}}}× Class 5 {{plural: {{{size5}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size6|}}} | {{{size6}}}× Class 6 {{plural: {{{size6}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size7|}}} | {{{size7}}}× Class 7 {{plural: {{{size7}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size8|}}} | {{{size8}}}× Class 8 {{plural: {{{size8}}} | Compartment | Compartments }} <br/> }}</default>
         <default>{{#if: {{{size1|}}} | {{{size1}}}× Class 1 {{plural: {{{size1}}} | Compartment | Compartments}} <br/> }}{{#if: {{{size2|}}} | {{{size2}}}× Class 2 {{plural: {{{size2}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size3|}}} | {{{size3}}}× Class 3 {{plural: {{{size3}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size4|}}} | {{{size4}}}× Class 4 {{plural: {{{size4}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size5|}}} | {{{size5}}}× Class 5 {{plural: {{{size5}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size6|}}} | {{{size6}}}× Class 6 {{plural: {{{size6}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size7|}}} | {{{size7}}}× Class 7 {{plural: {{{size7}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size8|}}} | {{{size8}}}× Class 8 {{plural: {{{size8}}} | Compartment | Compartments }} <br/> }}</default>
Line 74: Line 81:
| type            =  
| type            =  
| cost            =  
| cost            =  
| arx              =
| insurance        =
| factionreq      =  
| factionreq      =  
| factionrank      =  
| factionrank      =  
Line 89: Line 98:
| heatcapacity    =  
| heatcapacity    =  
| fuelcapacity    =  
| fuelcapacity    =  
| scooptimised    =
| manoeuvrability  =  
| manoeuvrability  =  
| topspeed        =  
| topspeed        =  
Line 103: Line 113:
| large            =  
| large            =  
| huge            =  
| huge            =  
| reservedhp      =
| size1            =  
| size1            =  
| size2            =  
| size2            =  

Latest revision as of 02:42, 18 February 2026

Example usage:

{{ShipInfobox
| image            = 
| manufacturer     = 
| yearsproduced    = 
| type             = 
| cost             = 
| arx              =
| insurance        = 
| factionreq       = 
| factionrank      = 
| expansionreq     = 
| landingpad       = 
| dimensions       = 
| seats            = 
| multicrew        = 
| fighterhangar    = 
| hullmass         = 
| masslock         = 
| armour           = 
| armourhardness   = 
| shields          = 
| heatcapacity     = 
| fuelcapacity     = 
| scooptimised     = 
| manoeuvrability  = 
| topspeed         = 
| maxtopspeed      = 
| boostspeed       = 
| maxboostspeed    = 
| jumprange        = 
| maxjumprange     = 
| cargocapacity    = 
| maxcargocapacity = 
| utility          = 
| small            = 
| medium           = 
| large            = 
| huge             = 
| reservedhp       = 
| size1            = 
| size2            = 
| size3            = 
| size4            = 
| size5            = 
| size6            = 
| size7            = 
| size8            = 
| reservedic       = 
}}