Template:ShipInfobox: Difference between revisions

m Added expansion requirement field
Updated template as per sandbox proposal of Clockpuncher
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
{{#infoboxbuilder:
{{#infoboxbuilder:
| 0:Theme = eInfobox | 0:CustomModule = Module:ShipInfobox
| 0:Theme = eInfobox
| 1:Type  = Title | 1:Label = NULL | 1:Value = {{PAGENAME}}
| 0:CustomModule = Module:ShipInfobox
| 2:Type  = MainImage | 2:Label = NULL| 2:Value = [[File:{{{image|Placeholder.png}}}|306px]]


| 3:Type = Header | 3:Label = NULL | 3:Value = Expansion Content | 3:Requirement = {{{expansionreq|}}} | 3:ValueMethod = Required
| 1:Type = Title
| 4:Type  = Line | 4:Label = Expansion | 4:Value = {{{expansionreq|}}} | 4:ValueMethod = Expansionreq
| 1:Label = NULL
| 5:Type = Header | 5:Label = NULL | 5:Value = Faction Specific | 5:Requirement = {{{factionreq|}}} | 5:ValueMethod = Required
| 1:Value = {{PAGENAME}}
| 6:Type  = Line | 6:Label = Faction | 6:Value = {{{factionreq|}}} | 6:ValueMethod = Factionreq
| 7:Type = Line | 7:Label = Rank Required | 7:Value = {{{factionrank|}}} | 7:Requirement = {{{factionreq|}}} | 7:ValueMethod = Required
| 8:Type = Header | 8:Label = NULL | 8:Value = Default version
| 9:Type = Line | 9:Label = Manufacturer
| 9:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|---}}
| 10:Type = Line | 10:Label = Dimensions
| 10:Value = {{{dimensions|}}}
| 11:Type = Line | 11:Label = Type
| 11:Value = {{{type|}}}
| 12:Type = Line | 12:Label = Cost
| 12:ValueMethod = FormatCost | 12:Unit = CR | 12:Value = {{{cost|---}}}
| 13:Type = Line | 13:Label = Insurance
| 13:ValueMethod = Insurance | 13:Cost = {{{cost|}}} | 13:Value = NULL
| 14:Type = Line | 14:Label = Top Speed
| 14:ValueMethod = Quantify | 14:Unit = m/s | 14:Value = {{{topspeed|---}}}
| 15:Type = Line | 15:Label = Boost Speed
| 15:ValueMethod = Quantify | 15:Unit = m/s | 15:Value = {{{boostspeed|---}}}
| 16:Type = Line | 16:Label = Manoeuvrability | 16:Value = {{{manoeuvrability|---}}}
| 17:ValueMethod = FormatCost | 17:Unit = MJ
| 17:Type = Line | 17:Label = Shields | 17:Value = {{{shields|---}}}
| 21:Type = Line | 21:Label = Armour | 21:Value = {{{armour|---}}}
| 22:Type = Line | 22:Label = Hull Mass
| 22:ValueMethod = Quantify | 22:Unit = t | 22:Value = {{{hullmass|---}}}
| 23:Type = Line | 23:Label = Cargo Capacity
| 23:ValueMethod = Quantify | 23:Unit = t | 23:Value = {{{cargocapacity|---}}}
| 24:Type = Line | 24:Label = Fuel Capacity
| 24:ValueMethod = Quantify | 24:Unit = t | 24:Value = {{{fuelcapacity|---}}}
| 25:Type = Line | 25:Label = Unladen Jump Range
| 25:ValueMethod = Quantify | 25:Unit = ly | 25:Default = x
| 25:Value = {{{jumprange|x}}}
| 26:Type = Line | 26:Label = Landing Pad Size | 26:Value = {{{landingpad|---}}}
| 27:Type = Line | 27:Label = Seats | 27:Value = {{{seats|}}}
| 28:Type = Line | 28:Label = Multicrew | 28:Value = {{{multicrew|}}}
| 29:Type = Line | 29:Label = Fighter Capable | 29:Value = {{{fightercapable|}}}
| 30:Type = Line | 30:Label = Hardpoints | 30:ValueMethod = Hardpoints
| 30:Utility = {{{utility|}}} | 30:S = {{{small|}}} | 30:M = {{{medium|}}}
| 30:L = {{{large|}}} | 30:H = {{{huge|}}} | 30:Value = NULL
| 31:Type = Line | 31:Label = Internals
| 31:ValueMethod = Internals | 31:S1 = {{{size1|}}} | 31:S2 = {{{size2|}}} | 31:S3 = {{{size3|}}} | 31:S4 = {{{size4|}}} | 31:S5 = {{{size5|}}} | 31:S6 = {{{size6|}}} | 31:S7 = {{{size7|}}} | 31:S8 = {{{size8|}}} | 31:Reserved = {{{reservedic|}}} | 31:Value = NULL


| 32:Type = Header | 32:Label = NULL | 32:Value = Maximum/Upgraded versions
| 2:Type = MainImage
| 33:Type = Line   | 33:Label = Jump Range
| 2:Label = NULL
| 33:ValueMethod = Quantify | 33:Unit = ly
| 2:Value = [[File:{{{image|Placeholder.png}}}|306px]]
| 33:Value = {{{maxjumprange|}}}
 
| 34:Type = Line   | 34:Label = Top Speed
| 3:Type = Header
| 34:ValueMethod = Quantify | 34:Unit = m/s
| 3:Label = NULL
| 34:Value = {{{maxtopspeed|}}}
| 3:Value = Overview
| 35:Type = Line   | 35:Label = Top Boost
 
| 35:ValueMethod = Quantify | 35:Unit = m/s
| 4:Type = Line
| 35:Value = {{{maxboostspeed|}}}
| 4:Label = Manufacturer
| 36:Type = Line   | 36:Label = Cargo Capacity
| 4:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|}}
| 36:ValueMethod = MaxCargo | 36:Unit = t | 36:Cargo = {{{maxcargocapacity|}}} | 36:S1 = {{{size1|}}} | 36:S2 = {{{size2|}}} | 36:S3 = {{{size3|}}} | 36:S4 = {{{size4|}}} | 36:S5 = {{{size5|}}} | 36:S6 = {{{size6|}}} | 36:S7 = {{{size7|}}} | 36:S8 = {{{size8|}}}
 
| 36:Value = {{{maxcargocapacity|}}}{{{size1|}}}{{{size2|}}}{{{size3|}}}{{{size4|}}}{{{size5|}}}{{{size6|}}}{{{size7|}}}{{{size8|}}}
| 5:Type = Line
| 37:Type = Header | 37:Label = NULL | 37:Value = Ship values
| 5:Label = Years Produced
| 38:Type = Line  | 38:Label = Mass lock factor
| 5:Value = {{{yearsproduced|}}}
| 38:Value = {{{masslock|}}}
 
| 6:Type = Line
| 6:Label = Type
| 6:Value = {{{type|}}}
 
| 7:Type = Line
| 7:Label = Cost
| 7:ValueMethod = FormatCost
| 7:Unit = CR
| 7:Value = {{{cost|}}}
 
| 8:Type = Line
| 8:Label = Insurance
| 8:ValueMethod = Insurance
| 8:Cost = {{{cost|}}}
| 8:Value = NULL
 
| 9:Type  = Line
| 9:Label = Faction
| 9:Value = {{{factionreq|}}}
| 9:ValueMethod = Factionreq
 
| 10:Type = Line
| 10:Label = Faction Rank
| 10:Value = {{{factionrank|}}}
| 10:Requirement = {{{factionreq|}}}
 
| 11:Type  = Line
| 11:Label = Expansion
| 11:Value = {{{expansionreq|}}}
 
| 12:Type = Header
| 12:Label = NULL
| 12:Value = Default Specifications
 
| 13:Type = Line
| 13:Label = Landing Pad Size
| 13:Value = {{{landingpad|}}}
 
| 14:Type = Line
| 14:Label = Dimensions
| 14:Value = {{{dimensions|}}}
 
| 15:Type = Line
| 15:Label = Pilot Seats
| 15:Value = {{{seats|}}}
 
| 16:Type = Line
| 16:Label = Multicrew
| 16:Value = {{{multicrew|}}}
 
| 17:Type = Line
| 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>
}}</onlyinclude>
<noinclude>
<noinclude>
For the default version:
The blank version of this template is as follows:
<pre style="width: 300px">
<pre style="width: 300px">
{{ShipInfobox
{{ShipInfobox
| image              =  
| image              =  
| manufacturer        =  
| manufacturer        =  
| dimensions          =  
| yearsproduced      =  
| type                =  
| type                =  
| cost                =  
| cost                =  
| factionreq          =
| factionrank        =
| expansionreq        =
| landingpad          =
| dimensions          =
| seats              =
| multicrew          =
| fighterhangar      =
| hullmass            =
| masslock            =
| armour              =
| armourhardness      =
| shields            =
| manoeuvrability    =
| topspeed            =  
| topspeed            =  
| boostspeed          =  
| boostspeed          =  
| manoeuvrability    =
| jumprange          =  
| shields            =
| armour              =
| hullmass            =  
| cargocapacity      =  
| cargocapacity      =  
| fuelcapacity        =  
| fuelcapacity        =  
| jumprange          =
| seats              =
| multicrew          =
| fightercapable      =
| landingpad          =
| utility            =  
| utility            =  
| small              =  
| small              =  
Line 100: Line 239:
| size7              =  
| size7              =  
| size8              =  
| size8              =  
}}
</pre>
Add the following text for expansion requirements:
<pre style="width: 300px">
| expansionreq        =
</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          =  
| reservedic          =  
</pre>
:;Format: #x Size ? Module
:;Example: 1x Size 6 Cargo Rack
Maximum/Upgraded version
<pre style="width: 300px">
| maxjumprange        =
| maxtopspeed        =  
| maxtopspeed        =  
| maxboostspeed      =  
| maxboostspeed      =  
| maxcargocapacity    =
| maxjumprange       =  
</pre>
}}
 
:;maxjumprange: This is the lightest possible ship version with the highest Fuel Tank available
 
:;maxcargocapacity: This is completed automatically if there are internal compartments
 
Mass lock factor
<pre style="width: 300px">
| masslock            =
</pre>
</pre>
:;masslock: The mass lock factor of the ship, useful in combat
</noinclude>
</noinclude>