Jump to content

Template:ShipInfobox: Difference between revisions

From Elite Dangerous Wiki
Updated template as per sandbox proposal of Clockpuncher
Changed label displayed for data source "fighterhangar" from "Fighter Hangar" to "Fighter Bay" per request.
 
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<onlyinclude>
<infobox theme="portInfobox">
{{#infoboxbuilder:
<title><default>{{PAGENAME}}</default></title>
| 0:Theme = eInfobox
<image source="image"><default>Placeholder Ship.png</default></image>
| 0:CustomModule = Module:ShipInfobox
<group>
 
    <header>Overview</header>
| 1:Type = Title
    <data source="manufacturer"><label>Manufacturer</label><format>[[{{{manufacturer}}}]]</format></data>
| 1:Label = NULL
    <data source="yearsproduced"><label>Years Produced</label></data>
| 1:Value = {{PAGENAME}}
    <data source="type"><label>Type</label></data>
 
    <data source="cost">
| 2:Type = MainImage
        <label>Cost</label>
| 2:Label = NULL
        <format>{{{cost}}} CR</format>
| 2:Value = [[File:{{{image|Placeholder.png}}}|306px]]
    </data>
 
    <data source="arx">
| 3:Type = Header
        <label>ARX</label>
| 3:Label = NULL
        <format>{{{arx}}} ARX</format>
| 3:Value = Overview
    </data> 
 
    <data source="insurance">
| 4:Type = Line
        <label>Insurance</label>
| 4:Label = Manufacturer
        <format>{{{insurance}}} CR</format>
| 4:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|}}
        </data>
 
    <data source="factionreq"><label>Faction</label><format>[[{{{factionreq}}}]]</format></data>
| 5:Type = Line
    <data source="factionrank">
| 5:Label = Years Produced
        <label>Faction Rank</label>
| 5:Value = {{{yearsproduced|}}}
        <format>{{#if: {{{factionreq|}}} | {{{factionrank}}} }}</format>
 
    </data>
| 6:Type = Line
    <data source="expansionreq"><label>Expansion</label></data>
| 6:Label = Type
    </group>
| 6:Value = {{{type|}}}
<group>
 
    <header>Specifications</header>
| 7:Type = Line
    <data source="landingpad"><label>Landing Pad Size</label></data>
| 7:Label = Cost
    <data source="dimensions"><label>Dimensions</label></data>
| 7:ValueMethod = FormatCost
    <data source="seats"><label>Pilot Seats</label></data>
| 7:Unit = CR
    <data source="multicrew"><label>Multicrew</label></data>
| 7:Value = {{{cost|}}}
    <data source="fighterhangar"><label>Fighter Bay</label></data>
 
    <data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data>
| 8:Type = Line
    <data source="masslock"><label>Mass Lock Factor</label></data>
| 8:Label = Insurance
    <data source="armour"><label>Armour</label></data>
| 8:ValueMethod = Insurance
    <data source="armourhardness"><label>Armour Hardness</label></data>
| 8:Cost = {{{cost|}}}
    <data source="shields"><label>Shields</label><format>{{{shields}}} MJ</format></data>
| 8:Value = NULL
    <data source="heatcapacity"><label>Heat Capacity</label></data>
 
    <data source="fuelcapacity"><label>Fuel Capacity</label><format>{{{fuelcapacity}}} t</format></data>
| 9:Type  = Line
    <data source="scooptimised"><label>SCO Optimised</label></data>
| 9:Label = Faction
    <data source="manoeuvrability"><label>Manoeuvr-<br/>ability</label></data>
| 9:Value = {{{factionreq|}}}
    <data>
| 9:ValueMethod = Factionreq
        <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>
| 10:Type = Line
    </data>
| 10:Label = Faction Rank
    <data>
| 10:Value = {{{factionrank|}}}
        <label>Boost Speed</label>
| 10:Requirement = {{{factionreq|}}}
        <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>
| 11:Type  = Line
    <data>
| 11:Label = Expansion
        <label>Unladen Jump Range</label>
| 11:Value = {{{expansionreq|}}}
        <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>
| 12:Type = Header
    <data>
| 12:Label = NULL
        <label>Cargo Capacity</label>
| 12:Value = Default Specifications
        <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>
| 13:Type = Line
    </group>
| 13:Label = Landing Pad Size
    <group>
| 13:Value = {{{landingpad|}}}
        <header>Outfitting</header>
 
    <data>
| 14:Type = Line
        <label>Hardpoints</label>
| 14:Label = Dimensions
        <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>
| 14:Value = {{{dimensions|}}}
        </data>
 
    <data source="reservedhp"><label>Reserved Hardpoints</label>
| 15:Type = Line
    </data>
| 15:Label = Pilot Seats
    <data><label>Internal Compartments</label>
| 15:Value = {{{seats|}}}
        <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>
| 16:Type = Line
    <data source="reservedic"><label>Reserved Compartments</label>
| 16:Label = Multicrew
    </data>
| 16:Value = {{{multicrew|}}}
    </group>
 
</infobox><includeonly>{{#if: {{NAMESPACE}} || [[Category:Ships]]}}</includeonly><noinclude>
| 17:Type = Line
Example usage:<pre>
| 17:Label = Fighter Hangar
| 17:Value = {{{fighterhangar|}}}
 
| 18:Type = Line
| 18:Label = Hull Mass
| 18:ValueMethod = Quantify
| 18:Unit = t
| 18:Value = {{{hullmass|}}}
 
| 19:Type = Line
| 19:Label = Mass Lock Factor
| 19:Value = {{{masslock|}}}
 
| 20:Type = Line
| 20:Label = Armour
| 20:Value = {{{armour|}}}
 
| 21:Type = Line
| 21:Label = Armour Hardness
| 21:Value = {{{armourhardness|}}}
 
| 22:ValueMethod = FormatCost
| 22:Unit = MJ
| 22:Type = Line
| 22:Label = Shields
| 22:Value = {{{shields|}}}
 
| 23:Type = Line
| 23:Label = Manoeuvrability
| 23:Value = {{{manoeuvrability|}}}
 
| 24:Type = Line
| 24:Label = Top Speed
| 24:ValueMethod = Quantify
| 24:Unit = m/s
| 24:Value = {{{topspeed|}}}
 
| 25:Type = Line
| 25:Label = Boost Speed
| 25:ValueMethod = Quantify
| 25:Unit = m/s
| 25:Value = {{{boostspeed|}}}
 
| 26:Type = Line
| 26:Label = Unladen Jump Range
| 26:ValueMethod = Quantify
| 26:Unit = ly
| 26:Default = x
| 26:Value = {{{jumprange|}}}
 
| 27:Type = Line
| 27:Label = Cargo Capacity
| 27:ValueMethod = Quantify
| 27:Unit = t
| 27:Value = {{{cargocapacity|}}}
 
| 28:Type = Line
| 28:Label = Fuel Capacity
| 28:ValueMethod = Quantify
| 28:Unit = t
| 28:Value = {{{fuelcapacity|}}}
 
| 29:Type = Line
| 29:Label = Hardpoints
| 29:ValueMethod = Hardpoints
| 29:Utility = {{{utility|}}}
| 29:S = {{{small|}}}
| 29:M = {{{medium|}}}
| 29:L = {{{large|}}}
| 29:H = {{{huge|}}}
| 29:Value = NULL
 
| 30:Type = Line
| 30:Label = Internals
| 30:ValueMethod = Internals
| 30:S1 = {{{size1|}}}
| 30:S2 = {{{size2|}}}
| 30:S3 = {{{size3|}}}
| 30:S4 = {{{size4|}}}
| 30:S5 = {{{size5|}}}
| 30:S6 = {{{size6|}}}
| 30:S7 = {{{size7|}}}
| 30:S8 = {{{size8|}}}
| 30:Reserved = {{{reservedic|}}}
| 30:Value = NULL
 
| 31:Type = Header
| 31:Label = NULL
| 31:Value = Maximum Non-Engineered Specs
 
| 32:Type = Line
| 32:Label = Top Speed
| 32:ValueMethod = Quantify
| 32:Unit = m/s
| 32:Value = {{{maxtopspeed|}}}
 
| 33:Type = Line
| 33:Label = Boost Speed
| 33:ValueMethod = Quantify
| 33:Unit = m/s
| 33:Value = {{{maxboostspeed|}}}
 
| 34:Type = Line
| 34:Label = Unladen Jump Range
| 34:ValueMethod = Quantify
| 34:Unit = ly
| 34:Value = {{{maxjumprange|}}}
 
| 35:Type = Line
| 35:Label = Cargo Capacity
| 35:ValueMethod = MaxCargo
| 35:Unit = t
| 35:Cargo = {{{maxcargocapacity|}}}
| 35:S1 = {{{size1|}}}
| 35:S2 = {{{size2|}}}
| 35:S3 = {{{size3|}}}
| 35:S4 = {{{size4|}}}
| 35:S5 = {{{size5|}}}
| 35:S6 = {{{size6|}}}
| 35:S7 = {{{size7|}}}
| 35:S8 = {{{size8|}}}
| 35:Value = {{{maxcargocapacity|}}}{{{size1|}}}{{{size2|}}}{{{size3|}}}{{{size4|}}}{{{size5|}}}{{{size6|}}}{{{size7|}}}{{{size8|}}}
}}</onlyinclude>
<noinclude>
The blank version of this template is as follows:
<pre style="width: 300px">
{{ShipInfobox
{{ShipInfobox
| image               =  
| image           =  
| manufacturer       =  
| manufacturer     =  
| yearsproduced       =  
| yearsproduced   =  
| type               =  
| type             =  
| cost               =  
| cost             =
| factionreq         =  
| arx              =
| factionrank         =  
| insurance        =  
| expansionreq       =  
| factionreq       =  
| landingpad         =  
| factionrank     =  
| dimensions         =  
| expansionreq     =  
| seats               =  
| landingpad       =  
| multicrew           =  
| dimensions       =  
| fighterhangar       =  
| seats           =  
| hullmass           =  
| multicrew       =  
| masslock           =  
| fighterhangar   =  
| armour             =  
| hullmass         =  
| armourhardness     =  
| masslock         =  
| shields             =  
| armour           =  
| manoeuvrability     =  
| armourhardness   =  
| topspeed           =  
| shields         =
| boostspeed         =  
| heatcapacity    =
| jumprange           =  
| fuelcapacity    =
| cargocapacity       =  
| scooptimised    =  
| fuelcapacity        =  
| manoeuvrability =  
| utility             =  
| topspeed         =
| small               =  
| maxtopspeed      =  
| medium             =  
| boostspeed       =
| large               =  
| maxboostspeed    =  
| huge               =  
| jumprange       =
| size1               =  
| maxjumprange    =  
| size2               =  
| cargocapacity   =  
| size3               =  
| maxcargocapacity =  
| size4               =  
| utility         =  
| size5               =  
| small           =  
| size6               =  
| medium           =  
| size7               =  
| large           =  
| size8               =  
| huge             =
| reservedic         =
| reservedhp      =  
| maxtopspeed        =
| size1           =  
| maxboostspeed       =
| size2           =  
| maxjumprange        =  
| size3           =  
| size4           =  
| size5           =  
| size6           =  
| size7           =  
| size8           =  
| reservedic      =  
}}
}}
</pre>
</pre>[[Category:Infobox templates|{{PAGENAME}}]]
</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       = 
}}