Template:ShipInfobox: Difference between revisions

Moved much of the code to CSS
m Changed the size a bit and removed redundant css
Line 1: Line 1:
<onlyinclude>{| class="eInfobox" style="background-color: #333300; font-size: 11px; border: thin solid orange; float: right; margin: 0 0 10px 10px; width: 280px;"
<onlyinclude>{| class="eInfobox" style="width: 300px;"
|-
|-
! colspan="2" style="font-size: 14px; text-align: center;" | {{PAGENAME}}
! 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=]]}}
! colspan="2" style="padding: 1px; text-align: center;" | {{#if:{{{image|}}}|[[File:{{{image|Placeholder.png}}}|292px|link=]]|[[File:Placeholder.png|292px|link=]]}}
|-
|-
! style="width: 45%;" | Manufacturer
! style="width: 45%;" | Manufacturer
Line 28: Line 28:
! Hull Mass
! Hull Mass
| {{#if:{{{hullmass|}}}|{{{hullmass|?}}} T|---}}
| {{#if:{{{hullmass|}}}|{{{hullmass|?}}} T|---}}
|-
|- {{#if:{{{cargocapacity|}}}||style="display: none;"}}
! Cargo Capacity
! Cargo Capacity
| {{#if:{{{cargocapacity|}}}|{{{cargocapacity|?}}} T|---}}
| {{#if:{{{cargocapacity|}}}|{{{cargocapacity|?}}} T|---}}
|-
|- {{#if:{{{fuelcapacity|}}}||style="display: none;"}}
! Fuel Capacity
! Fuel Capacity
| {{#if:{{{fuelcapacity|}}}|{{{fuelcapacity|?}}} T|---}}
| {{#if:{{{fuelcapacity|}}}|{{{fuelcapacity|?}}} T|---}}