Template:ShipInfobox: Difference between revisions

Ironed out bug, re-instating new infobox
Added more values; Changed style
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
{{#infoboxbuilder:
{{#infoboxbuilder:
| 0:Theme = eInfobox | 0:CustomModule = Module:ShipInfobox
| 0:Theme = eInfobox | 0:CustomModule = Module:ShipInfobox/new
| 1:Type  = Title | 1:Label = NULL | 1:Value = {{PAGENAME}}
| 1:Type  = Title | 1:Label = NULL | 1:Value = {{PAGENAME}}
| 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:ValueMethod = Factionreq
 
| 3:Requirement = {{{factionreq|}}} | 3:Rank = {{{factionrank|}}} | 3:Value = NULL
| 3:Type = Header | 3:Label = NULL | 3:Value = Faction Specific | 3:Requirement = {{{factionreq|}}} | 3:ValueMethod = Required
| 4:Type = Line | 4:Label = Manufacturer
| 4:Type  = Line | 4:Label = Faction | 4:Value = {{{factionreq|}}} | 4:ValueMethod = Factionreq
| 4:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|---}}
| 5:Type = Line | 5:Label = Rank Required | 5:Value = {{{factionrank|}}} | 5:Requirement = {{{factionreq|}}} | 5:ValueMethod = Required
| 5:Type = Line | 5:Label = Cost
 
| 5:ValueMethod = FormatCost | 5:Unit = CR | 5:Value = {{{cost|---}}}
| 6:Type = Header | 6:Label = NULL | 6:Value = Default
| 6:Type = Line | 6:Label = Insurance
| 7:Type = Line | 7:Label = Dimensions
| 6:ValueMethod = Insurance | 6:Cost = {{{cost|}}} | 6:Value = NULL
| 7:Value = {{{dimensions|}}}
| 7:Type = Line | 7:Label = Top Speed
| 8:Type = Line | 8:Label = Manufacturer
| 7:ValueMethod = Quantify | 7:Unit = m/s | 7:Value = {{{topspeed|---}}}
| 8:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|---}}
| 8:Type = Line | 8:Label = Boost Speed
| 9:Type = Line | 9:Label = Cost
| 8:ValueMethod = Quantify | 8:Unit = m/s | 8:Value = {{{boostspeed|---}}}
| 9:ValueMethod = FormatCost | 9:Unit = CR | 9:Value = {{{cost|---}}}
| 9:Type = Line | 9:Label = Manoeuvrability | 9:Value = {{{manoeuvrability|---}}}
| 10:Type = Line | 10:Label = Insurance
| 10:Type = Line | 10:Label = Shields | 10:Value = {{{shields|---}}}
| 10:ValueMethod = Insurance | 10:Cost = {{{cost|}}} | 10:Value = NULL
| 11:Type = Line | 11:Label = Armour | 11:Value = {{{armour|---}}}
| 11:Type = Line | 11:Label = Top Speed
| 12:Type = Line | 12:Label = Hull Mass
| 11:ValueMethod = Quantify | 11:Unit = m/s | 11:Value = {{{topspeed|---}}}
| 12:ValueMethod = Quantify | 12:Unit = T | 12:Value = {{{hullmass|---}}}
| 12:Type = Line | 12:Label = Boost Speed
| 13:Type = Line | 13:Label = Cargo Capacity
| 12:ValueMethod = Quantify | 12:Unit = m/s | 12:Value = {{{boostspeed|---}}}
| 13:ValueMethod = Quantify | 13:Unit = T | 13:Value = {{{cargocapacity|---}}}
| 13:Type = Line | 13:Label = Manoeuvrability | 13:Value = {{{manoeuvrability|---}}}
| 14:Type = Line | 14:Label = Fuel Capacity
| 14:Type = Line | 14:Label = Shields | 14:Value = {{{shields|---}}}
| 14:ValueMethod = Quantify | 14:Unit = T | 14:Value = {{{fuelcapacity|---}}}
| 18:Type = Line | 18:Label = Armour | 18:Value = {{{armour|---}}}
| 15:Type = Line | 15:Label = Unladen Jump Range
| 19:Type = Line | 19:Label = Hull Mass
| 15:ValueMethod = Quantify | 15:Unit = LY | 15:Default = x
| 19:ValueMethod = Quantify | 19:Unit = T | 19:Value = {{{hullmass|---}}}
| 15:Value = {{{jumprange|x}}}
| 20:Type = Line | 20:Label = Cargo Capacity
| 16:Type = Line | 16:Label = Landing Pad Size | 16:Value = {{{landingpad|---}}}
| 20:ValueMethod = Quantify | 20:Unit = T | 20:Value = {{{cargocapacity|---}}}
| 17:Type = Line | 17:Label = Hardpoints | 17:ValueMethod = Hardpoints  
| 21:Type = Line | 21:Label = Fuel Capacity
| 17:Utility = {{{utility|}}} | 17:S = {{{small|}}} | 17:M = {{{medium|}}}
| 21:ValueMethod = Quantify | 21:Unit = T | 21:Value = {{{fuelcapacity|---}}}
| 17:L = {{{large|}}} | 17:H = {{{huge|}}} | 17:Value = NULL
| 22:Type = Line | 22:Label = Unladen Jump Range
| 18:Type = Line | 18:Label = Internals
| 22:ValueMethod = Quantify | 22:Unit = LY | 22:Default = x
| 18:ValueMethod = Internals | 18:S1 = {{{size1|}}} | 18:S2 = {{{size2|}}} | 18:S3 = {{{size3|}}} | 18:S4 = {{{size4|}}} | 18:S5 = {{{size5|}}} | 18:S6 = {{{size6|}}} | 18:S7 = {{{size7|}}} | 18:S8 = {{{size8|}}} | 18:Reserved = {{{reservedic|}}} | 18:Value = NULL
| 22:Value = {{{jumprange|x}}}
| 19:Type = Footer | 19:Label = NULL
| 23:Type = Line | 23:Label = Landing Pad Size | 23:Value = {{{landingpad|---}}}
| 19:Value = *Information represents the default version of the ship.
| 24:Type = Line | 24:Label = Hardpoints | 24:ValueMethod = Hardpoints  
| 24:Utility = {{{utility|}}} | 24:S = {{{small|}}} | 24:M = {{{medium|}}}
| 24:L = {{{large|}}} | 24:H = {{{huge|}}} | 24:Value = NULL
| 25:Type = Line | 25:Label = Internals
| 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
 
| 26:Type = Header | 26:Label = NULL | 26:Value = Maximum/Upgraded versions
| 27:Type = Line  | 27:Label = Jump Range
| 27:ValueMethod = Quantify | 27:Unit = LY
| 27:Value = 5{{{maxjumprange|}}}
| 28:Type = Line  | 28:Label = Top Speed
| 28:ValueMethod = Quantify | 28:Unit = m/s
| 28:Value = 5{{{maxtopspeed|}}}
| 28:Type = Line  | 28:Label = Cargo Capacity
| 28:ValueMethod = Quantify | 28:Unit = T
| 28:Value = 5{{{maxcargocapacity|}}}
}}</onlyinclude>
}}</onlyinclude>
<noinclude>
<noinclude>