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 usage pointer to documentation. Rewrite {{Tooltip}} first parameter: if {{{shipname}}} not empty use it as the linked displayed text else report parameter missing.
m refactor ship image handling: move techcorner handling to after image handling. Remove middle option, is used to control text position in the same block there is no text in the block so no need, besides middle is the default. Remove test for empty shipname in caption option, this is tested before so go with just using it.
Line 79: Line 79:
  <table cellspacing='0' cellpadding='0' style='width:100%;'>
  <table cellspacing='0' cellpadding='0' style='width:100%;'>
   <tr>
   <tr>
   <td class='left' style='padding: 0 5px 0 0;width: 80px; position: relative;'>{{#if:{{{tech|}}}|<div class='techcornersmall'>[[Image:CornerT{{{tech|2}}}s.png|link=]]</div>|}}[[Image:{{{shipimg|no-image.png}}}|80x80px|middle|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]</td>
   <td class='left' style='padding: 0 5px 0 0;width: 80px; position: relative;'>[[Image:{{{shipimg|no-image.png}}}|80x80px|{{{shipname}}}]]{{#if:{{{tech|}}}|<div class='techcornersmall'>[[Image:CornerT{{{tech|2}}}s.png|link=]]</div>|}}</td>
   <td>
   <td>
     <div class='uniwiki-ship-tooltip-header'>
     <div class='uniwiki-ship-tooltip-header'>