Template:ShipInfobox: Difference between revisions
Changed infobox to newer version containing modules |
Undo new version | still a bug somewhere |
||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
{{#infoboxbuilder: | {{#infoboxbuilder: | ||
| 0:Theme = eInfobox | | 0:Theme = eInfobox | ||
| 1:Type = Title | |||
| 2:Type = MainImage | 2: | | 1:Type = Title | ||
| 3:Type = Header | 3: | | 1:Value = {{PAGENAME}} | ||
| | |||
| 4:Type = Line | 4:Label = Manufacturer | | 2:Type = MainImage | ||
| 4:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|---}} | | 2:Value = {{#if:{{{image|}}}|[[File:{{{image}}}|306px]]|[[File:Placeholder.png|306px]]}} | ||
| 5:Type = Line | 5:Label = Cost | |||
| 5: | | 3:Type = Header | ||
| 6:Type = Line | 6:Label = Insurance | | 3:Value = {{#if:{{{factionreq|}}}|Requires {{{factionreq|}}} rank of {{{factionrank|}}} or higher|}} | ||
| 6: | |||
| 7:Type = Line | 7:Label = Top Speed | | 4:Type = Line | ||
| 7: | | 4:Label = Manufacturer | ||
| 8:Type = Line | 8:Label = Boost Speed | | 4:Value = {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|---}} | ||
| 8: | |||
| 9:Type = Line | 9:Label = Manoeuvrability | 9:Value = {{{manoeuvrability|---}} | | 5:Type = Line | ||
| 10:Type = Line | 10:Label = Shields | 10:Value = {{{shields|---}} | | 5:Label = Cost | ||
| 11:Type = Line | 11:Label = Armour | 11:Value = {{{armour|---}} | | 5:Value = {{#if:{{{cost|}}}|{{{cost|?}}} CR|---}} | ||
| 12:Type = Line | 12:Label = Hull Mass | |||
| 12: | | 6:Type = Line | ||
| 13:Type = Line | 13:Label = Cargo Capacity | | 6:Label = Insurance | ||
| 13: | | 6:Value = {{#if:{{{cost|}}}|{{formatnum:{{#expr:trunc({{formatnum:{{{cost|}}}|R}}*0.05)}}}} CR|}} | ||
| 14:Type = Line | 14:Label = Fuel Capacity | |||
| 14: | | 7:Type = Line | ||
| 15:Type = Line | 15:Label = Unladen Jump Range | | 7:Label = Top Speed | ||
| 15: | | 7:Value = {{#if:{{{topspeed|}}}|{{{topspeed|?}}} m/s|---}} | ||
| | |||
| 16:Type = Line | 16:Label = Landing Pad Size | 16:Value = {{{landingpad|---}} | | 8:Type = Line | ||
| 17:Type = Line | 17:Label = Hardpoints | 17: | | 8:Label = Boost Speed | ||
| | | 8:Value = {{#if:{{{boostspeed|}}}|{{{boostspeed|?}}} m/s|---}} | ||
| | |||
| 18:Type = Line | 18:Label = Internals | | 9:Type = Line | ||
| 18: | | 9:Label = Manoeuvrability | ||
| 19:Type = Footer | | 9:Value = {{#if:{{{manoeuvrability|}}}|{{{manoeuvrability|}}}|---}} | ||
| 19:Value = *Information represents the default version of the ship. | |||
| 10:Type = Line | |||
| 10:Label = Shields | |||
| 10:Value = {{#if:{{{shields|}}}|{{{shields|?}}}|---}} | |||
| 11:Type = Line | |||
| 11:Label = Armour | |||
| 11:Value = {{#if:{{{armour|}}}|{{{armour|?}}}|---}} | |||
| 12:Type = Line | |||
| 12:Label = Hull Mass | |||
| 12:Value = {{#if:{{{hullmass|}}}|{{{hullmass|?}}} T|---}} | |||
| 13:Type = Line | |||
| 13:Label = Cargo Capacity | |||
| 13:Value = {{#if:{{{cargocapacity|}}}|{{{cargocapacity|?}}} T|---}} | |||
| 14:Type = Line | |||
| 14:Label = Fuel Capacity | |||
| 14:Value = {{#if:{{{fuelcapacity|}}}|{{{fuelcapacity|?}}} T|---}} | |||
| 15:Type = Line | |||
| 15:Label = Unladen Jump Range | |||
| 15:Value = {{#if:{{{jumprange|}}}|{{{jumprange|x}}} LY|---}} | |||
| 16:Type = Line | |||
| 16:Label = Landing Pad Size | |||
| 16:Value = {{#if:{{{landingpad|}}}|{{{landingpad|?}}}|---}} | |||
| 17:Type = Line | |||
| 17:Label = Hardpoints | |||
| 17:Value = {{#if:{{{utility|}}}|{{{utility}}}x Utility Mount{{#ifexpr:{{{utility|}}}>1|s}}}}{{#if:{{{small|}}}|{{#if:{{{utility|}}}|<br>}}{{{small|}}}x Small Hardpoint{{#ifexpr:{{{small|}}}>1|s}}}}{{#if:{{{medium|}}}|{{#if:{{{utility|}}}or{{{small|}}}|<br>}}{{{medium|}}}x Medium Hardpoint{{#ifexpr:{{{medium|}}}>1|s}}}}{{#if:{{{large|}}}|{{#if:{{{utility|}}}or{{{small|}}}or{{{medium|}}}|<br>}}{{{large|}}}x Large Hardpoint{{#ifexpr:{{{large|}}}>1|s}}}}{{#if:{{{huge|}}}|{{#if:{{{utility|}}}or{{{small|}}}or{{{medium|}}}or{{{large|}}}|<br>}}{{{huge|}}}x Huge Hardpoint{{#ifexpr:{{{huge|}}}>1|s}}}} | |||
| 18:Type = Line | |||
| 18:Label = Internals | |||
| 18:Value = {{#if:{{{size1|}}}|{{{size1|}}}x Size 1 Compartment{{#ifexpr:{{{size1|}}}>1|s}}}}{{#if:{{{size2|}}}|{{#if:{{{size1|}}}|<br>}}{{{size2|}}}x Size 2 Compartment{{#ifexpr:{{{size2|}}}>1|s}}}}{{#if:{{{size3|}}}|{{#if:{{{size1|}}}or{{{size2|}}}|<br>}}{{{size3|}}}x Size 3 Compartment{{#ifexpr:{{{size3|}}}>1|s}}}}{{#if:{{{size4|}}}|{{#if:{{{size1|}}}or{{{size2|}}}or{{{size3|}}}|<br>}}{{{size4|}}}x Size 4 Compartment{{#ifexpr:{{{size4|}}}>1|s}}}}{{#if:{{{size5|}}}|{{#if:{{{size1|}}}or{{{size2|}}}or{{{size3|}}}or{{{size4|}}}|<br>}}{{{size5|}}}x Size 5 Compartment{{#ifexpr:{{{size5|}}}>1|s}}}}{{#if:{{{size6|}}}|{{#if:{{{size1|}}}or{{{size2|}}}or{{{size3|}}}or{{{size4|}}}or{{{size5|}}}|<br>}}{{{size6|}}}x Size 6 Compartment{{#ifexpr:{{{size6|}}}>1|s}}}}{{#if:{{{size7|}}}|{{#if:{{{size1|}}}or{{{size2|}}}or{{{size3|}}}or{{{size4|}}}or{{{size5|}}}or{{{size6|}}}|<br>}}{{{size7|}}}x Size 7 Compartment{{#ifexpr:{{{size7|}}}>1|s}}}}{{#if:{{{size8|}}}|{{#if:{{{size1|}}}or{{{size2|}}}or{{{size3|}}}or{{{size4|}}}or{{{size5|}}}or{{{size6|}}}or{{{size7|}}}|<br>}}{{{size8|}}}x Size 8 Compartment{{#ifexpr:{{{size8|}}}>1|s}}}}{{#if:{{{reservedic|}}}|{{#if:{{{size1|}}}or{{{size2|}}}or{{{size3|}}}or{{{size4|}}}or{{{size5|}}}or{{{size6|}}}or{{{size7|}}}or{{{size8|}}}|<br>}}{{{reservedic|}}}}} | |||
| 19:Type = Footer | |||
| 19:Value = *Information represents the default version of the ship. | |||
}}</onlyinclude> | }}</onlyinclude> | ||
<noinclude> | <noinclude> | ||