Jump to content

Template:ShipInfobox: Difference between revisions

From Elite Dangerous Wiki
Changed infobox to newer version containing modules
Changed label displayed for data source "fighterhangar" from "Fighter Hangar" to "Fighter Bay" per request.
 
(45 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<onlyinclude>
<infobox theme="portInfobox">
{{#infoboxbuilder:
<title><default>{{PAGENAME}}</default></title>
| 0:Theme = eInfobox | 0:CustomModule = Module:ShipInfobox
<image source="image"><default>Placeholder Ship.png</default></image>
| 1:Type  = Title | 1:Label = NULL | 1:Value = {{PAGENAME}}
<group>
| 2:Type  = MainImage | 2:Label = NULL| 2:Value = [[File:{{{image|Placeholder.png}}}|306px]]
    <header>Overview</header>
| 3:Type  = Header | 3:Label = NULL | 3:ValueMethod = Factionreq
    <data source="manufacturer"><label>Manufacturer</label><format>[[{{{manufacturer}}}]]</format></data>
| 3:Requirement = {{{factionreq|}}} | 3:Rank = {{{factionrank|}}} | 3:Value = NULL
    <data source="yearsproduced"><label>Years Produced</label></data>
| 4:Type = Line | 4:Label = Manufacturer
    <data source="type"><label>Type</label></data>
| 4:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|---}}
    <data source="cost">
| 5:Type = Line | 5:Label = Cost
        <label>Cost</label>
| 5:ValueMethod = FormatCost | 5:Unit = CR | 5:Value = {{{cost|---}}}
        <format>{{{cost}}} CR</format>
| 6:Type = Line | 6:Label = Insurance
    </data>
| 6:ValueMethod = Insurance | 6:Cost = {{{cost|}}} | 6:Value = NULL
    <data source="arx">
| 7:Type = Line | 7:Label = Top Speed
        <label>ARX</label>
| 7:ValueMethod = Quantify | 7:Unit = m/s | 7:Value = {{{topspeed|---}}}
        <format>{{{arx}}} ARX</format>
| 8:Type = Line | 8:Label = Boost Speed
    </data> 
| 8:ValueMethod = Quantify | 8:Unit = m/s | 8:Value = {{{boostspeed|---}}}
    <data source="insurance">
| 9:Type = Line | 9:Label = Manoeuvrability | 9:Value = {{{manoeuvrability|---}}}
        <label>Insurance</label>
| 10:Type = Line | 10:Label = Shields | 10:Value = {{{shields|---}}}
        <format>{{{insurance}}} CR</format>
| 11:Type = Line | 11:Label = Armour | 11:Value = {{{armour|---}}}
        </data>
| 12:Type = Line | 12:Label = Hull Mass
    <data source="factionreq"><label>Faction</label><format>[[{{{factionreq}}}]]</format></data>
| 12:ValueMethod = Quantify | 12:Unit = T | 12:Value = {{{hullmass|---}}}
    <data source="factionrank">
| 13:Type = Line | 13:Label = Cargo Capacity
        <label>Faction Rank</label>
| 13:ValueMethod = Quantify | 13:Unit = T | 13:Value = {{{cargocapacity|---}}}
        <format>{{#if: {{{factionreq|}}} | {{{factionrank}}} }}</format>
| 14:Type = Line | 14:Label = Fuel Capacity
    </data>
| 14:ValueMethod = Quantify | 14:Unit = T | 14:Value = {{{fuelcapacity|---}}}
    <data source="expansionreq"><label>Expansion</label></data>
| 15:Type = Line | 15:Label = Unladen Jump Range
    </group>
| 15:ValueMethod = Quantify | 15:Unit = LY | 15:Default = x
<group>
| 15:Value = {{{jumprange|x}}}
    <header>Specifications</header>
| 16:Type = Line | 16:Label = Landing Pad Size | 16:Value = {{{landingpad|---}}}
    <data source="landingpad"><label>Landing Pad Size</label></data>
| 17:Type = Line | 17:Label = Hardpoints | 17:ValueMethod = Hardpoints  
    <data source="dimensions"><label>Dimensions</label></data>
| 17:Utility = {{{utility|}}} | 17:S = {{{small|}}} | 17:M = {{{medium|}}}
    <data source="seats"><label>Pilot Seats</label></data>
| 17:L = {{{large|}}} | 17:H = {{{huge|}}} | 17:Value = NULL
    <data source="multicrew"><label>Multicrew</label></data>
| 18:Type = Line | 18:Label = Internals
    <data source="fighterhangar"><label>Fighter Bay</label></data>
| 18:ValueMethod = Internals | 18:S1 = {{{size1|}}} | 18:S2 = {{{size2|}}} | 18:S3 = {{{size3|}}} | 18:S4 = {{{size4|}}} | 18:S5 = {{{size5|}}} | 18:S6 = {{{size6|}}} | 18:S7 = {{{size7|}}} | 18:S8 = {{{size8|}}} | 18:Reserved = {{{reservedic|}}} | 18:Value = NULL
    <data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data>
| 19:Type = Footer | 19:Label = NULL
    <data source="masslock"><label>Mass Lock Factor</label></data>
| 19:Value = *Information represents the default version of the ship.
    <data source="armour"><label>Armour</label></data>
}}</onlyinclude>
    <data source="armourhardness"><label>Armour Hardness</label></data>
<noinclude>
    <data source="shields"><label>Shields</label><format>{{{shields}}} MJ</format></data>
<pre style="width: 300px">
    <data source="heatcapacity"><label>Heat Capacity</label></data>
    <data source="fuelcapacity"><label>Fuel Capacity</label><format>{{{fuelcapacity}}} t</format></data>
    <data source="scooptimised"><label>SCO Optimised</label></data>
    <data source="manoeuvrability"><label>Manoeuvr-<br/>ability</label></data>
    <data>
        <label>Top Speed</label>
        <default>{{#if: {{{topspeed|}}} | {{{topspeed}}} m/s <abbr title="Default value of an unmodified ship">(''default'')</abbr> <br/> }}{{#if: {{{maxtopspeed|}}} | {{{maxtopspeed}}} m/s <abbr title="Maximum possible value before Engineering">(''upgraded'')</abbr> <br/> }}</default>
    </data>
    <data>
        <label>Boost Speed</label>
        <default>{{#if: {{{boostspeed|}}} | {{{boostspeed}}} m/s <abbr title="Default value of an unmodified ship">(''default'')</abbr> <br/> }}{{#if: {{{maxboostspeed|}}} | {{{maxboostspeed}}} m/s <abbr title="Maximum possible value before Engineering">(''upgraded'')</abbr> <br/> }}</default>
    </data>
    <data>
        <label>Unladen Jump Range</label>
        <default>{{#if: {{{jumprange|}}} | {{{jumprange}}} ly <abbr title="Default value of an unmodified ship">(''default'')</abbr> <br/> }}{{#if: {{{maxjumprange|}}} | {{{maxjumprange}}} ly <abbr title="Maximum possible value before Engineering and Guardian FSD Booster">(''upgraded'')</abbr> <br/> }}</default>
    </data>
    <data>
        <label>Cargo Capacity</label>
        <default>{{#if: {{{cargocapacity|}}} | {{{cargocapacity}}} t <abbr title="Default value of an unmodified ship">(''default'')</abbr> <br/> }}{{#if: {{{maxcargocapacity|}}} | {{{maxcargocapacity}}} t <abbr title="Maximum possible value">(''max'')</abbr> <br/> }}</default>
    </data>
    </group>
    <group>
        <header>Outfitting</header>
    <data>
        <label>Hardpoints</label>
        <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 source="reservedhp"><label>Reserved Hardpoints</label>
    </data>
    <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>
    </data>
    <data source="reservedic"><label>Reserved Compartments</label>
    </data>
    </group>
</infobox><includeonly>{{#if: {{NAMESPACE}} || [[Category:Ships]]}}</includeonly><noinclude>
Example usage:<pre>
{{ShipInfobox
{{ShipInfobox
| image               =  
| image           =  
| manufacturer        =  
| manufacturer     =
| cost                =  
| yearsproduced    =
| topspeed           =  
| type            =
| boostspeed         =  
| cost            =
| manoeuvrability     =  
| arx              =
| shields            =  
| insurance       =  
| armour              =  
| factionreq      =
| hullmass            =  
| factionrank      =
| cargocapacity       =  
| expansionreq    =
| fuelcapacity       =  
| landingpad      =
| jumprange          =  
| dimensions      =  
| landingpad          =  
| seats           =  
| utility             =  
| multicrew        =
| small               =  
| fighterhangar    =
| medium             =  
| hullmass        =
| large               =  
| masslock        =
| huge               =  
| armour          =
| size1               =  
| armourhardness  =
| size2               =  
| shields         =  
| size3               =  
| heatcapacity    =
| size4               =  
| fuelcapacity    =
| size5               =  
| scooptimised     =  
| size6               =  
| manoeuvrability  =  
| size7               =  
| topspeed        =  
| size8               =  
| maxtopspeed      =  
| boostspeed       =  
| maxboostspeed    =
| jumprange       =  
| maxjumprange    =
| cargocapacity    =  
| maxcargocapacity =  
| utility         =  
| small           =  
| medium           =  
| large           =  
| huge             =
| reservedhp      =  
| size1           =  
| size2           =  
| size3           =  
| size4           =  
| size5           =  
| size6           =  
| size7           =  
| size8           =
| reservedic      =  
}}
}}
</pre>
</pre>[[Category:Infobox templates|{{PAGENAME}}]]
 
Add the following text for faction requirements:
<pre style="width: 300px">
| factionreq          =
| factionrank        =
</pre>
 
Add the following text for reserved Internal Compartments.  Please follow the format used by the other Internal Compartments (as shown below):
<pre style="width: 300px">
| reservedic          =
</pre>
 
:;Format: #x Size ? Module
 
:;Example: 1x Size 6 Cargo Rack
</noinclude>
</noinclude>

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       = 
}}