Template:ShipInfobox: Difference between revisions
Appearance
Ironed out bug, re-instating new infobox |
Changed label displayed for data source "fighterhangar" from "Fighter Hangar" to "Fighter Bay" per request. |
||
| (43 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
< | <infobox theme="portInfobox"> | ||
<title><default>{{PAGENAME}}</default></title> | |||
<image source="image"><default>Placeholder Ship.png</default></image> | |||
<group> | |||
<header>Overview</header> | |||
<data source="manufacturer"><label>Manufacturer</label><format>[[{{{manufacturer}}}]]</format></data> | |||
<data source="yearsproduced"><label>Years Produced</label></data> | |||
<data source="type"><label>Type</label></data> | |||
<data source="cost"> | |||
<label>Cost</label> | |||
<format>{{{cost}}} CR</format> | |||
</data> | |||
<data source="arx"> | |||
<label>ARX</label> | |||
| | <format>{{{arx}}} ARX</format> | ||
| | </data> | ||
| | <data source="insurance"> | ||
| | <label>Insurance</label> | ||
| | <format>{{{insurance}}} CR</format> | ||
| | </data> | ||
| | <data source="factionreq"><label>Faction</label><format>[[{{{factionreq}}}]]</format></data> | ||
| | <data source="factionrank"> | ||
| | <label>Faction Rank</label> | ||
| | <format>{{#if: {{{factionreq|}}} | {{{factionrank}}} }}</format> | ||
| | </data> | ||
| | <data source="expansionreq"><label>Expansion</label></data> | ||
| | </group> | ||
| | <group> | ||
| | <header>Specifications</header> | ||
| | <data source="landingpad"><label>Landing Pad Size</label></data> | ||
| | <data source="dimensions"><label>Dimensions</label></data> | ||
<data source="seats"><label>Pilot Seats</label></data> | |||
| | <data source="multicrew"><label>Multicrew</label></data> | ||
| | <data source="fighterhangar"><label>Fighter Bay</label></data> | ||
| | <data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data> | ||
<data source="masslock"><label>Mass Lock Factor</label></data> | |||
| | <data source="armour"><label>Armour</label></data> | ||
}}</ | <data source="armourhardness"><label>Armour Hardness</label></data> | ||
<noinclude> | <data source="shields"><label>Shields</label><format>{{{shields}}} MJ</format></data> | ||
<pre | <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 = | ||
| | | yearsproduced = | ||
| | | type = | ||
| | | cost = | ||
| | | arx = | ||
| | | insurance = | ||
| | | factionreq = | ||
| | | factionrank = | ||
| | | expansionreq = | ||
| | | landingpad = | ||
| | | dimensions = | ||
| | | 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}}]] | ||
| | |||
</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 =
}}