Template:ShipInfobox: Difference between revisions
Appearance
No edit summary |
Moved much of the code to CSS |
||
| Line 1: | Line 1: | ||
<onlyinclude>{| class="eInfobox" style="background-color: #333300; font-size: 11px | <onlyinclude>{| class="eInfobox" style="background-color: #333300; font-size: 11px; border: thin solid orange; float: right; margin: 0 0 10px 10px; width: 280px;" | ||
|- | |- | ||
! colspan="2" style="font-size: 14px; | ! colspan="2" style="font-size: 14px; text-align: center;" | {{PAGENAME}} | ||
|- | |- | ||
! colspan="2" style="padding: 1px; text-align: center;" | {{#if:{{{image|}}}|[[File:{{{image|Placeholder.png}}}|272px|link=]]|[[File:Placeholder.png|272px|link=]]}} | |||
|- | |- | ||
! style="width: 45%;" | Manufacturer | |||
| style="width: 55% | | style="width: 55%;" | {{#if:{{{manufacturer|}}}|[[{{{manufacturer|}}}]]|---}} | ||
|- | |- | ||
! Cost | |||
| {{#if:{{{cost|}}}|{{{cost|?}}} CR|---}} | |||
|- | |- | ||
! Top Speed | |||
| {{#if:{{{topspeed|}}}|{{{topspeed|?}}} m/s|---}} | |||
|- | |- | ||
! Boost Speed | |||
| {{#if:{{{boostspeed|}}}|{{{boostspeed|?}}} m/s|---}} | |||
|- | |- | ||
! Maneuverability | |||
| {{#if:{{{maneuverability|}}}|{{{maneuverability|}}}|---}} | |||
|- | |- | ||
! Shields | |||
| {{#if:{{{shields|}}}|{{{shields|?}}}|---}} | |||
|- | |- | ||
! Armour | |||
| {{#if:{{{armour|}}}|{{{armour|?}}}|---}} | |||
|- | |- | ||
! Hull Mass | |||
| {{#if:{{{hullmass|}}}|{{{hullmass|?}}} T|---}} | |||
|- | |- | ||
! Cargo Capacity | |||
| {{#if:{{{cargocapacity|}}}|{{{cargocapacity|?}}} T|---}} | |||
|- | |- | ||
! Fuel Capacity | |||
| {{#if:{{{fuelcapacity|}}}|{{{fuelcapacity|?}}} T|---}} | |||
|- {{#if:{{{jumprange|}}}||style="display: none;"}} | |||
! Jump Range (unladen) | |||
| {{{jumprange|}}} LY | |||
|- | |- | ||
! Hardpoints | |||
| {{#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}}}} | |||
|- | |- | ||
! Internals | |||
| {{#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:{{{modules|}}}||style="display: none;"}} | |||
! Modules | |||
| {{{modules|}}} | |||
|- | |- | ||
| colspan="2" style="font-size: 10px;" | *Information represents the default version of the ship.{{#if:{{{factionreq|}}}|<br><span style="color: red;">*Requires {{{factionreq|}}} rank of {{{factionrank|}}} or higher</span>}} | |||
| colspan="2" style=" | |||
|- | |- | ||
|} | |}<includeonly> | ||
<includeonly> | |||
[[Category:Ships]] | [[Category:Ships]] | ||
</includeonly> | </includeonly></onlyinclude> | ||
</onlyinclude> | |||
<noinclude> | <noinclude> | ||
<pre style="width: 300px"> | <pre style="width: 300px"> | ||
Revision as of 21:12, 16 December 2014
| ShipInfobox | |
|---|---|
| File:Placeholder.png | |
| Manufacturer | --- |
| Cost | --- |
| Top Speed | --- |
| Boost Speed | --- |
| Maneuverability | --- |
| Shields | --- |
| Armour | --- |
| Hull Mass | --- |
| Cargo Capacity | --- |
| Fuel Capacity | --- |
| Hardpoints | |
| Internals | |
| *Information represents the default version of the ship. | |
{{ShipInfobox
| image =
| manufacturer =
| cost =
| topspeed =
| boostspeed =
| maneuverability =
| shields =
| armour =
| hullmass =
| cargocapacity =
| fuelcapacity =
| jumprange =
| utility =
| small =
| medium =
| large =
| huge =
| size1 =
| size2 =
| size3 =
| size4 =
| size5 =
| size6 =
| size7 =
| size8 =
}}
Add following text for faction requirements:
| factionreq = | factionrank =