Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ShipBoxTooltip: Difference between revisions

Template page
m Highlights: rewrite to not construct div's when there are no highlights instead of constructing empty div's whit display none.
m Ship attributes: Remove middle option from Image because it is the default. Rewrite so slot info is always on 1 line. Same for powergrid and cpu.
Line 99: Line 99:
     }}
     }}
     <div class='uniwiki-ship-tooltip-bottom'>
     <div class='uniwiki-ship-tooltip-bottom'>
     <div class='tt-att'>[[Image:icon_hi_slot.png|15x15px|middle|high slots]]{{{highs|0}}}<div style='display:inline;'>({{{launchers|0}}}/{{{turrets|0}}})</div></div>
     <div class='tt-att' style='white-space: nowrap;'>[[Image:icon_hi_slot.png|15x15px|high slots]]{{{highs|0}}}({{{launchers|0}}}/{{{turrets|0}}}) [[Image:icon_mid_slot.png|15x15px|middle slots]]{{{mediums|0}}} [[Image:icon_low_slot.png|15x15px|low slots]]{{{lows|0}}}</div>
    <div class='tt-att'>[[Image:icon_mid_slot.png|15x15px|middle|middle slots]]{{{mediums|0}}}</div>
     <div class='tt-att' style='white-space: nowrap;'>[[Image:icon_powergrid.png|15x15px|powergrid]]{{{powergrid|0 MW}}} [[Image:icon_cpu.png|15x15px|cpu output]]{{{cpu|0 tf}}}</div>
    <div class='tt-att'>[[Image:icon_low_slot.png|15x15px|middle|low slots]]{{{lows|0}}}</div>
     <div class='tt-att'>[[Image:Icon_velocity.png|15x15px|max. velocity]]{{{maxvelocity|0 m/s}}}</div>
     <div class='tt-att'>[[Image:icon_powergrid.png|15x15px|middle|powergrid]]{{{powergrid|0 MW}}}</div>
     <div class='tt-att'>[[Image:Icon_capacity.png|15x15px|cargo capacity]]{{{cargohold|0 m&#179;}}}</div>
    <div class='tt-att'>[[Image:icon_cpu.png|15x15px|middle|cpu output]]{{{cpu|0 tf}}}</div>
     <div class='tt-att'>[[Image:Icon_velocity.png|15x15px|middle|max. velocity]]{{{maxvelocity|0 m/s}}}</div>
     <div class='tt-att'>[[Image:Icon_capacity.png|15x15px|middle|cargo capacity]]{{{cargohold|0 m&#179;}}}</div>
     </div>
     </div>
   </td>
   </td>