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 Move main class (.sbtt) to <table>. Change selector form .sbtt table to .sbtt.
m Remove div around table, appears to have no function.
Line 85: Line 85:
}}
}}


|2=<div>
|2=<table class="sbtt">
<table class="sbtt">
<tr>
  <tr>
  <td class="sbtt-image">[[Image:{{#if:{{{shipimg|}}}
  <td class="sbtt-image">[[Image:{{#if:{{{shipimg|}}}
      |{{{shipimg}}}
      |{{{shipimg}}}
      |No-image.png
      |No-image.png
    }}|80x80px|{{{shipname}}}]]{{#if:{{{tech|}}}
      }}|80x80px|{{{shipname}}}]]{{#if:{{{tech|}}}
      |<div class="techcornersmall">[[Image:CornerT{{{tech|2}}}s.png|link=]]</div>
      |<div class="techcornersmall">[[Image:CornerT{{{tech|2}}}s.png|link=]]</div>
      | <!-- do nothing -->
      | <!-- do nothing -->
    }}</td>
      }}</td>
  <td>
  <td>
  <div class="sbtt-header">
    <div class="sbtt-header">
    <div class="sbtt-ship-name">{{{shipname}}}</div>
    <div class="sbtt-ship-name">{{{shipname}}}</div>
    <div class="sbtt-ship-category"><span class="sbtt-ship-group">{{{grouping|Unique Ships}}}</span> <span class="sbtt-ship-hull">{{{hulltype|Unknown Class}}}</span></div>
    <div class="sbtt-ship-category"><span class="sbtt-ship-group">{{{grouping|Unique Ships}}}</span> <span class="sbtt-ship-hull">{{{hulltype|Unknown Class}}}</span></div>
  </div>
  {{#if: {{{highlights1|}}}
    |<div class="sbtt-highlights">
    <div>[[Image:Icon_highlights.png|10x10px]]{{{highlights1|}}}</div><!--
-->  {{#if: {{{highlights2|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights2|}}}</div>}}<!--
-->  {{#if: {{{highlights3|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights3|}}}</div>}}<!--
-->  {{#if: {{{highlights4|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights4|}}}</div>}}
     </div>
     </div>
    {{#if: {{{highlights1|}}}
  }}
    |<div class="sbtt-highlights">
  <div class="sbtt-attributes">
      <div>[[Image:Icon_highlights.png|10x10px]]{{{highlights1|}}}</div><!--
     <div>[[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>
-->  {{#if: {{{highlights2|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights2|}}}</div>}}<!--
    <div>[[Image:icon_powergrid.png|15x15px|powergrid]]{{{powergrid|0 MW}}} [[Image:icon_cpu.png|15x15px|cpu output]]{{{cpu|0 tf}}}</div>
-->  {{#if: {{{highlights3|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights3|}}}</div>}}<!--
    <div>[[Image:Icon_velocity.png|15x15px|max. velocity]]{{{maxvelocity|0 m/s}}}</div>
-->  {{#if: {{{highlights4|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights4|}}}</div>}}
    <div>[[Image:Icon_capacity.png|15x15px|cargo capacity]]{{{cargohold|0 m&#179;}}}</div>
    </div>
  </div>
    }}
  </td>
     <div class="sbtt-attributes">
</tr>
    <div>[[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>
</table>
    <div>[[Image:icon_powergrid.png|15x15px|powergrid]]{{{powergrid|0 MW}}} [[Image:icon_cpu.png|15x15px|cpu output]]{{{cpu|0 tf}}}</div>
    <div>[[Image:Icon_velocity.png|15x15px|max. velocity]]{{{maxvelocity|0 m/s}}}</div>
    <div>[[Image:Icon_capacity.png|15x15px|cargo capacity]]{{{cargohold|0 m&#179;}}}</div>
    </div>
  </td>
  </tr>
</table>
</div>
}}</onlyinclude></includeonly><noinclude>
}}</onlyinclude></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>