Template:ShipInfobox: Difference between revisions

Content deleted Content added
Added more values; Changed style
Changed label displayed for data source "fighterhangar" from "Fighter Hangar" to "Fighter Bay" per request.
 
(42 intermediate revisions by 5 users not shown)
Line 1:
<infobox theme="portInfobox">
<onlyinclude>
<title><default>{{PAGENAME}}</default></title>
{{#infoboxbuilder:
<image source="image"><default>Placeholder Ship.png</default></image>
| 0:Theme = eInfobox | 0:CustomModule = Module:ShipInfobox/new
<group>
| 1:Type = Title | 1:Label = NULL | 1:Value = {{PAGENAME}}
<header>Overview</header>
| 2:Type = MainImage | 2:Label = NULL| 2:Value = [[File:{{{image|Placeholder.png}}}|306px]]
<data source="manufacturer"><label>Manufacturer</label><format>[[{{{manufacturer}}}]]</format></data>
 
<data source="yearsproduced"><label>Years Produced</label></data>
| 3:Type = Header | 3:Label = NULL | 3:Value = Faction Specific | 3:Requirement = {{{factionreq|}}} | 3:ValueMethod = Required
<data source="type"><label>Type</label></data>
| 4:Type = Line | 4:Label = Faction | 4:Value = {{{factionreq|}}} | 4:ValueMethod = Factionreq
<data source="cost">
| 5:Type = Line | 5:Label = Rank Required | 5:Value = {{{factionrank|}}} | 5:Requirement = {{{factionreq|}}} | 5:ValueMethod = Required
<label>Cost</label>
 
<format>{{{cost}}} CR</format>
| 6:Type = Header | 6:Label = NULL | 6:Value = Default
</data>
| 7:Type = Line | 7:Label = Dimensions
<data source="arx">
| 7:Value = {{{dimensions|}}}
<label>ARX</label>
| 8:Type = Line | 8:Label = Manufacturer
<format>{{{arx}}} ARX</format>
| 8:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|---}}
</data>
| 9:Type = Line | 9:Label = Cost
<data source="insurance">
| 9:ValueMethod = FormatCost | 9:Unit = CR | 9:Value = {{{cost|---}}}
| 10:Type = Line | 10:Label = <label>Insurance</label>
<format>{{{insurance}}} CR</format>
| 10:ValueMethod = Insurance | 10:Cost = {{{cost|}}} | 10:Value = NULL
</data>
| 11:Type = Line | 11:Label = Top Speed
<data source="factionreq"><label>Faction</label><format>[[{{{factionreq}}}]]</format></data>
| 11:ValueMethod = Quantify | 11:Unit = m/s | 11:Value = {{{topspeed|---}}}
<data source="factionrank">
| 12:Type = Line | 12:Label = Boost Speed
<label>Faction Rank</label>
| 12:ValueMethod = Quantify | 12:Unit = m/s | 12:Value = {{{boostspeed|---}}}
<format>{{#if: {{{factionreq|}}} | {{{factionrank}}} }}</format>
| 13:Type = Line | 13:Label = Manoeuvrability | 13:Value = {{{manoeuvrability|---}}}
</data>
| 14:Type = Line | 14:Label = Shields | 14:Value = {{{shields|---}}}
<data source="expansionreq"><label>Expansion</label></data>
| 18:Type = Line | 18:Label = Armour | 18:Value = {{{armour|---}}}
</group>
| 19:Type = Line | 19:Label = Hull Mass
<group>
| 19:ValueMethod = Quantify | 19:Unit = T | 19:Value = {{{hullmass|---}}}
<header>Specifications</header>
| 20:Type = Line | 20:Label = Cargo Capacity
<data source="landingpad"><label>Landing Pad Size</label></data>
| 20:ValueMethod = Quantify | 20:Unit = T | 20:Value = {{{cargocapacity|---}}}
<data source="dimensions"><label>Dimensions</label></data>
| 21:Type = Line | 21:Label = Fuel Capacity
<data source="seats"><label>Pilot Seats</label></data>
| 21:ValueMethod = Quantify | 21:Unit = T | 21:Value = {{{fuelcapacity|---}}}
<data source="multicrew"><label>Multicrew</label></data>
| 22:Type = Line | 22:Label = Unladen Jump Range
<data source="fighterhangar"><label>Fighter Bay</label></data>
| 22:ValueMethod = Quantify | 22:Unit = LY | 22:Default = x
<data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data>
| 22:Value = {{{jumprange|x}}}
<data source="masslock"><label>Mass Lock Factor</label></data>
| 23:Type = Line | 23:Label = Landing Pad Size | 23:Value = {{{landingpad|---}}}
<data source="armour"><label>Armour</label></data>
| 24:Type = Line | 24:Label = Hardpoints | 24:ValueMethod = Hardpoints
<data source="armourhardness"><label>Armour Hardness</label></data>
| 24:Utility = {{{utility|}}} | 24:S = {{{small|}}} | 24:M = {{{medium|}}}
<data source="shields"><label>Shields</label><format>{{{shields}}} MJ</format></data>
| 24:L = {{{large|}}} | 24:H = {{{huge|}}} | 24:Value = NULL
<data source="heatcapacity"><label>Heat Capacity</label></data>
| 25:Type = Line | 25:Label = Internals
<data source="fuelcapacity"><label>Fuel Capacity</label><format>{{{fuelcapacity}}} t</format></data>
| 25:ValueMethod = Internals | 25:S1 = {{{size1|}}} | 25:S2 = {{{size2|}}} | 25:S3 = {{{size3|}}} | 25:S4 = {{{size4|}}} | 25:S5 = {{{size5|}}} | 25:S6 = {{{size6|}}} | 25:S7 = {{{size7|}}} | 25:S8 = {{{size8|}}} | 25:Reserved = {{{reservedic|}}} | 25:Value = NULL
<data source="scooptimised"><label>SCO Optimised</label></data>
 
<data source="manoeuvrability"><label>Manoeuvr-<br/>ability</label></data>
| 26:Type = Header | 26:Label = NULL | 26:Value = Maximum/Upgraded versions
<data>
| 27:Type = Line | 27:Label = Jump Range
<label>Top Speed</label>
| 27:ValueMethod = Quantify | 27:Unit = LY
<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>
| 27:Value = 5{{{maxjumprange|}}}
</data>
| 28:Type = Line | 28:Label = Top Speed
<data>
| 28:ValueMethod = Quantify | 28:Unit = m/s
<label>Boost Speed</label>
| 28:Value = 5{{{maxtopspeed|}}}
<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>
| 28:Type = Line | 28:Label = Cargo Capacity
</data>
| 28:ValueMethod = Quantify | 28:Unit = T
<data>
| 28:Value = 5{{{maxcargocapacity|}}}
<label>Unladen Jump Range</label>
}}</onlyinclude>
<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>
<noinclude>
</data>
<pre style="width: 300px">
<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
| image =
| manufacturer =
| cost yearsproduced =
| topspeedtype =
| boostspeedcost =
| manoeuvrabilityarx = =
| shields insurance =
| armour factionreq =
| hullmass factionrank =
| cargocapacity expansionreq =
| fuelcapacity landingpad =
| jumprange dimensions =
| landingpadseats =
| 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>[[Category:Infobox templates|{{PAGENAME}}]]
</pre>
 
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>