Jump to content

Template:ShipInfobox: Difference between revisions

From Elite Dangerous Wiki
m Added Seats, multicrew, and fighter capable fields
m Added expansion requirement field
Line 5: Line 5:
| 2:Type  = MainImage | 2:Label = NULL| 2:Value = [[File:{{{image|Placeholder.png}}}|306px]]
| 2:Type  = MainImage | 2:Label = NULL| 2:Value = [[File:{{{image|Placeholder.png}}}|306px]]


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


| 30:Type = Header | 30:Label = NULL | 30:Value = Maximum/Upgraded versions
| 32:Type = Header | 32:Label = NULL | 32:Value = Maximum/Upgraded versions
| 31:Type = Line  | 31:Label = Jump Range
| 33:Type = Line  | 33:Label = Jump Range
| 31:ValueMethod = Quantify | 31:Unit = ly
| 33:ValueMethod = Quantify | 33:Unit = ly
| 31:Value = {{{maxjumprange|}}}
| 33:Value = {{{maxjumprange|}}}
| 32:Type = Line  | 32:Label = Top Speed
| 34:Type = Line  | 34:Label = Top Speed
| 32:ValueMethod = Quantify | 32:Unit = m/s
| 34:ValueMethod = Quantify | 34:Unit = m/s
| 32:Value = {{{maxtopspeed|}}}
| 34:Value = {{{maxtopspeed|}}}
| 33:Type = Line  | 33:Label = Top Boost
| 35:Type = Line  | 35:Label = Top Boost
| 33:ValueMethod = Quantify | 33:Unit = m/s
| 35:ValueMethod = Quantify | 35:Unit = m/s
| 33:Value = {{{maxboostspeed|}}}
| 35:Value = {{{maxboostspeed|}}}
| 34:Type = Line  | 34:Label = Cargo Capacity
| 36:Type = Line  | 36:Label = Cargo Capacity
| 34:ValueMethod = MaxCargo | 34:Unit = t | 34:Cargo = {{{maxcargocapacity|}}} | 34:S1 = {{{size1|}}} | 34:S2 = {{{size2|}}} | 34:S3 = {{{size3|}}} | 34:S4 = {{{size4|}}} | 34:S5 = {{{size5|}}} | 34:S6 = {{{size6|}}} | 34:S7 = {{{size7|}}} | 34:S8 = {{{size8|}}}
| 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|}}}
| 34:Value = {{{maxcargocapacity|}}}{{{size1|}}}{{{size2|}}}{{{size3|}}}{{{size4|}}}{{{size5|}}}{{{size6|}}}{{{size7|}}}{{{size8|}}}
| 36:Value = {{{maxcargocapacity|}}}{{{size1|}}}{{{size2|}}}{{{size3|}}}{{{size4|}}}{{{size5|}}}{{{size6|}}}{{{size7|}}}{{{size8|}}}
| 35:Type = Header | 35:Label = NULL | 35:Value = Ship values
| 37:Type = Header | 37:Label = NULL | 37:Value = Ship values
| 36:Type = Line  | 36:Label = Mass lock factor
| 38:Type = Line  | 38:Label = Mass lock factor
| 36:Value = {{{masslock|}}}
| 38:Value = {{{masslock|}}}
}}</onlyinclude>
}}</onlyinclude>
<noinclude>
<noinclude>
Line 99: Line 101:
| size8              =  
| size8              =  
}}
}}
</pre>
Add the following text for expansion requirements:
<pre style="width: 300px">
| expansionreq        =
</pre>
</pre>



Revision as of 17:13, 22 September 2018

{{#infoboxbuilder: | 0:Theme = eInfobox | 0:CustomModule = Module:ShipInfobox | 1:Type = Title | 1:Label = NULL | 1:Value = ShipInfobox | 2:Type = MainImage | 2:Label = NULL| 2:Value = File:Placeholder.png

| 3:Type = Header | 3:Label = NULL | 3:Value = Expansion Content | 3:Requirement = | 3:ValueMethod = Required | 4:Type = Line | 4:Label = Expansion | 4:Value = | 4:ValueMethod = Expansionreq | 5:Type = Header | 5:Label = NULL | 5:Value = Faction Specific | 5:Requirement = | 5:ValueMethod = Required | 6:Type = Line | 6:Label = Faction | 6:Value = | 6:ValueMethod = Factionreq | 7:Type = Line | 7:Label = Rank Required | 7:Value = | 7:Requirement = | 7:ValueMethod = Required | 8:Type = Header | 8:Label = NULL | 8:Value = Default version | 9:Type = Line | 9:Label = Manufacturer | 9:Value = --- | 10:Type = Line | 10:Label = Dimensions | 10:Value = | 11:Type = Line | 11:Label = Type | 11:Value = | 12:Type = Line | 12:Label = Cost | 12:ValueMethod = FormatCost | 12:Unit = CR | 12:Value = --- | 13:Type = Line | 13:Label = Insurance | 13:ValueMethod = Insurance | 13:Cost = | 13:Value = NULL | 14:Type = Line | 14:Label = Top Speed | 14:ValueMethod = Quantify | 14:Unit = m/s | 14:Value = --- | 15:Type = Line | 15:Label = Boost Speed | 15:ValueMethod = Quantify | 15:Unit = m/s | 15:Value = --- | 16:Type = Line | 16:Label = Manoeuvrability | 16:Value = --- | 17:ValueMethod = FormatCost | 17:Unit = MJ | 17:Type = Line | 17:Label = Shields | 17:Value = --- | 21:Type = Line | 21:Label = Armour | 21:Value = --- | 22:Type = Line | 22:Label = Hull Mass | 22:ValueMethod = Quantify | 22:Unit = t | 22:Value = --- | 23:Type = Line | 23:Label = Cargo Capacity | 23:ValueMethod = Quantify | 23:Unit = t | 23:Value = --- | 24:Type = Line | 24:Label = Fuel Capacity | 24:ValueMethod = Quantify | 24:Unit = t | 24:Value = --- | 25:Type = Line | 25:Label = Unladen Jump Range | 25:ValueMethod = Quantify | 25:Unit = ly | 25:Default = x | 25:Value = x | 26:Type = Line | 26:Label = Landing Pad Size | 26:Value = --- | 27:Type = Line | 27:Label = Seats | 27:Value = | 28:Type = Line | 28:Label = Multicrew | 28:Value = | 29:Type = Line | 29:Label = Fighter Capable | 29:Value = | 30:Type = Line | 30:Label = Hardpoints | 30:ValueMethod = Hardpoints | 30:Utility = | 30:S = | 30:M = | 30:L = | 30:H = | 30:Value = NULL | 31:Type = Line | 31:Label = Internals | 31:ValueMethod = Internals | 31:S1 = | 31:S2 = | 31:S3 = | 31:S4 = | 31:S5 = | 31:S6 = | 31:S7 = | 31:S8 = | 31:Reserved = | 31:Value = NULL

| 32:Type = Header | 32:Label = NULL | 32:Value = Maximum/Upgraded versions | 33:Type = Line | 33:Label = Jump Range | 33:ValueMethod = Quantify | 33:Unit = ly | 33:Value = | 34:Type = Line | 34:Label = Top Speed | 34:ValueMethod = Quantify | 34:Unit = m/s | 34:Value = | 35:Type = Line | 35:Label = Top Boost | 35:ValueMethod = Quantify | 35:Unit = m/s | 35:Value = | 36:Type = Line | 36:Label = Cargo Capacity | 36:ValueMethod = MaxCargo | 36:Unit = t | 36:Cargo = | 36:S1 = | 36:S2 = | 36:S3 = | 36:S4 = | 36:S5 = | 36:S6 = | 36:S7 = | 36:S8 = | 36:Value = | 37:Type = Header | 37:Label = NULL | 37:Value = Ship values | 38:Type = Line | 38:Label = Mass lock factor | 38:Value = }}

For the default version:

{{ShipInfobox
| image               = 
| manufacturer        = 
| dimensions          = 
| type                = 
| cost                = 
| topspeed            = 
| boostspeed          = 
| manoeuvrability     = 
| shields             = 
| armour              = 
| hullmass            = 
| cargocapacity       = 
| fuelcapacity        = 
| jumprange           = 
| seats               = 
| multicrew           = 
| fightercapable      = 
| landingpad          = 
| utility             = 
| small               = 
| medium              = 
| large               = 
| huge                = 
| size1               = 
| size2               = 
| size3               = 
| size4               = 
| size5               = 
| size6               = 
| size7               = 
| size8               = 
}}

Add the following text for expansion requirements:

| expansionreq        = 

Add the following text for faction requirements:

| factionreq          = 
| factionrank         = 

Add the following text for reserved Internal Compartments. Please follow the format used by the other Internal Compartments (as shown below):

| reservedic          = 
Format
#x Size ? Module
Example
1x Size 6 Cargo Rack

Maximum/Upgraded version

| maxjumprange        = 
| maxtopspeed         = 
| maxboostspeed       = 
| maxcargocapacity    = 
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

| masslock            = 
masslock
The mass lock factor of the ship, useful in combat