Difference between revisions of "User:Evon R'al/Sandbox template"

From EVE University Wiki
Jump to: navigation, search
m (Coding and testing.)
m (Coding and testing.)
 
(542 intermediate revisions by the same user not shown)
Line 142: Line 142:
 
  }
 
  }
  
.bgr-em { background-color:#121923; }
+
.bgr-em { background-color: #121923; }
.bgr-thr { background-color:#290b0b; }
+
.bgr-thr { background-color: #290b0b; }
.bgr-kin { background-color:#292021; }
+
.bgr-kin { background-color: #292021; }
.bgr-exp { background-color:#2b190b; }
+
.bgr-exp { background-color: #2b190b; }
.val-em { background-color:#1c5d85; }
+
.val-em { background-color: #1c5d85; }
.val-thr { background-color:#8d1717; }
+
.val-thr { background-color: #8d1717; }
.val-kin { background-color:#757575; }
+
.val-kin { background-color: #757575; }
.val-exp { background-color:#875f1a; }
+
.val-exp { background-color: #875f1a; }
  
 
.box-resist .resist-value .value-text
 
.box-resist .resist-value .value-text
Line 164: Line 164:
 
#ship-article .ignore a
 
#ship-article .ignore a
 
  {
 
  {
   background:none;
+
   background: none;
   color:#4C4C4C;
+
   color: #4C4C4C;
 
  }
 
  }
  
Line 171: Line 171:
 
#ship-article .ignore a.hover
 
#ship-article .ignore a.hover
 
  {
 
  {
   color:orange;
+
   color: orange;
 
  }
 
  }
  
Line 179: Line 179:
 
   height: 64px;
 
   height: 64px;
 
   position: absolute;
 
   position: absolute;
   top: 0px;
+
   top: 0;
   left: 0px;
+
   left: 0;
 
   margin-left: 1px;
 
   margin-left: 1px;
 
   margin-top: 1px;
 
   margin-top: 1px;
Line 186: Line 186:
 
}}
 
}}
 
<div id='ship-article'>
 
<div id='ship-article'>
<!--############
+
<!--####    Header   #####-->
   Header
 
################-->
 
 
  <div class='header'>
 
  <div class='header'>
   <div class='headerbg'>[[Image:Eve_university_dbase_header.png|center|605x50px|Eve University Database]]</div>
+
   <div class='headerbg'>[[Image:Eve_university_dbase_header.png|605x50px|EVE University Database]]</div>
 
   <div class='mask'>&nbsp;</div>
 
   <div class='mask'>&nbsp;</div>
 
   <div class='dbtitle'>Ship Database</div>
 
   <div class='dbtitle'>Ship Database</div>
   <div class='shipname'>{{{shipname|Unknown}}}</div>
+
   <div class='shipname'>{{#if: {{{shipname|}}} |{{{shipname}}} |{{Co|red|! shipname missing !}} }}</div>
 
  </div>
 
  </div>
  
 +
<!--####    breadcrumbs    ####-->
 
<!--* Breadcrumbs *-->
 
<!--* Breadcrumbs *-->
  <div class='breadcrumbs'>[[:Category:Ship Database|Ship Database]]<span class='separator'>&#9656;</span>[[:Category:{{{grouping|Unique Ships}}}|{{{grouping|Unique Ships}}}]]<span class='separator'>&#9656;</span>{{#if: {{{shipname|}}} | [[{{{shipname}}}]] | Unknown }}
+
  <div class='breadcrumbs'>[[:Category:Ship Database|Ship Database]]<span class='separator'>&#9656;</span>{{#if: {{{grouping|}}} |[[:Category:{{{grouping}}}|{{{grouping}}}]] |{{Co|red|! grouping missing !}} }}<span class='separator'>&#9656;</span>{{#if: {{{shipname|}}} | [[{{{shipname}}}]] }}
 
  </div>
 
  </div>
  
<!--############
+
<!--#####   Main    ####-->
    Body
 
################-->
 
 
  <div class='main'>
 
  <div class='main'>
   <table cellspacing='0' cellpadding='0' style='width:100%'>
+
   <table cellspacing='0' cellpadding='0' style='width: 100%'>
 
   <tr>
 
   <tr>
  
<!--*************
+
<!--***************
    Left column
+
***  Main left  ***
*****************-->
+
*******************-->
 
     <td valign='top' class='left-col'>
 
     <td valign='top' class='left-col'>
  
 
<!--* Ship image block *-->
 
<!--* Ship image block *-->
     <div style='border: 1px solid #323931; position: relative;'>{{#if:{{{tech|}}}
+
     <div style='border: 1px solid #323931; position: relative;'>{{#if: {{{tech|}}}
       | <div class="techcorner">[[Image:CornerT{{{tech|2}}}h.png|link=]]</div>
+
       | <div class="techcorner">[[Image:CornerT{{{tech}}}h.png|link=]]</div>
      |
+
       }}{{#ifexist: File:{{{shipimg}}}
       }}{{#ifexist:File:{{{shipimg}}}
+
         | [[Image:{{{shipimg}}}|center|link= |256x256px|{{{shipname|}}}]]
         | [[Image:{{{shipimg|no-image.png}}}|center|link= |256x256px|{{#if:{{{shipname}}}
+
         | {{#if: {{{shipid|}}}
          | {{{shipname|Unknown Ship}}}
+
          | {{Imageserver|types|{{{shipid}}}|render|size=256}}
          | Unknown Ship
+
           | [[Image:no-image.png|center|link= |256x256px|{{{shipname|}}}]]
          }}]]
 
         |{{#if: {{{shipid}}}
 
<!--          | {{Imageserver|types|{{{shipid}}}|render|size=256}} Test code for using the Imageserver template-->
 
          | https://images.evetech.net/types/{{{shipid}}}/render?size=256&.jpg
 
           | [[Image:no-image.png|center|link= |256x256px|{{#if:{{{shipname}}}
 
              | {{{shipname}}}
 
              | Unknown Ship
 
            }}]]
 
 
           }}
 
           }}
 
         }}
 
         }}
 
     </div>
 
     </div>
  
     <div class='box-line box-info'>
+
     <div class='box-info'>
       <table class='ecm-info' cellspacing='0' cellpadding='0'>
+
       <table class='faction-info' cellspacing='0' cellpadding='0'>
 
       <tr>
 
       <tr>
  
 
<!--** Ship image block "caption" left **-->
 
<!--** Ship image block "caption" left **-->
         <td rowspan='3' class='faction-img'>[[Image:{{#switch:{{{faction}}}
+
         <td rowspan='3' class='faction-img'>[[Image:{{#switch: {{lc: {{{faction}}} }}
           | Amarr Empire= Logo_faction_amarr_empire.png
+
           | angel cartel= Logo_faction_angel_cartel.png
           | Caldari State= Logo_faction_caldari_state.png
+
          | amarr empire= Logo_faction_amarr_empire.png
           | Gallente Federation= Logo_faction_gallente_federation.png
+
           | blood raiders= Logo_faction_the_blood_raider_covenant.png
           | Society of Conscious Thought= Logo_faction_the_society.png
+
          | caldari state= Logo_faction_caldari_state.png
           | Minmatar Republic= Logo_faction_minmatar_republic.png
+
           | concord= Logo_faction_concord_assembly.png
           | Outer Ring Excavations= Logo_faction_outer_ring_excavations.png
+
           | deathless circle= Logo faction deathless circle.png
           | Angel Cartel= Logo_faction_angel_cartel.png
+
           | edencom= Logo_faction_edencom.png
           | Sisters of EVE= Logo_faction_sisters_of_eve.png
+
           | gallente federation= Logo_faction_gallente_federation.png
           | Serpentis= Logo_faction_serpentis.png
+
           | guristas= Logo_faction_guristas_pirates.png
           | Guristas= Logo_faction_guristas_pirates.png
+
           | intaki syndicate= Logo faction the syndicate.png
           | Blood Raiders= Logo_faction_the_blood_raider_covenant.png
+
           | interbus= Logo faction the interbus.png
           | Sansha's Nation= Logo_faction_sanshas_nation.png
+
           | jovian directorate= Logo faction jove empire.png
           | Mordu's Legion= Logo_faction_mordus_legion.png
+
           | minmatar republic= Logo_faction_minmatar_republic.png
           | CONCORD= Logo_faction_concord_assembly.png
+
           | mordu's legion= Logo_faction_mordus_legion.png
           | Intaki Syndicate= Logo faction the syndicate.png
+
          | outer ring excavations= Logo_faction_outer_ring_excavations.png
           | InterBus= Logo faction the interbus.png
+
           | sansha's nation= Logo_faction_sanshas_nation.png
           | Triglavian Collective= Logo faction triglavian collective.png
+
           | serpentis= Logo_faction_serpentis.png
           | EDENCOM= Logo_faction_edencom.png
+
           | sisters of eve= Logo_faction_sisters_of_eve.png
 +
           | society of conscious thought= Logo_faction_the_society.png
 +
           | triglavian collective= Logo faction triglavian collective.png
 +
           | upwell= Upwell_Consortium_logo.png
 
           | #default= no-image.png
 
           | #default= no-image.png
           }}|center|link=|50x50px|{{#if:{{{faction|}}}
+
           }}|center|link=|50px|{{{faction|}}} ]]
              | {{{faction|Unknown}}}
 
              | Unknown
 
            }}]]
 
 
         </td>
 
         </td>
  
 
<!--** Ship image block "caption" center, line 1 **-->
 
<!--** Ship image block "caption" center, line 1 **-->
         <td class='faction'>{{{faction|Unknown}}}</td>
+
         <td class='faction'>{{#if: {{{faction|}}} |{{{faction}}} |{{Co|red|! faction missing !}} }}</td>
 
 
<!--** Ship image block "caption" right **-->
 
        <td rowspan='3' style='width: 70px;'>
 
        <div class='ecm-priority'>
 
          <div class='label'>ECM PRIORITY</div>
 
          <div class='value normal'>{{#switch:{{{ecmprio}}}
 
            | 0= NONE
 
            | 1= LOW
 
            | 2= NORMAL
 
            | 3= HIGH
 
            | 4= HIGHEST
 
            | #default= UNKNOWN
 
            }}
 
          </div>
 
          <div class='label2 type-gravimetric'>{{#ifeq: {{{sensortype}}} |Magnetometric
 
            | <span style='font-size: 9px;'>Magnetometric</span>
 
            | {{{sensortype|Multi}}}
 
            }}
 
          </div>
 
          <div class='snip'>what's this?</div>
 
          <div class='ecm-desc'>
 
          <p>
 
            <div class='innervalue'><span class='normal'>{{#switch: {{{ecmprio}}}
 
              | 0= NO/UNKNOWN
 
              | 1= LOW
 
              | 2= NORMAL
 
              | 3= HIGH
 
              | 4= HIGHEST
 
              | #default= Unknown
 
              }}</span> Priority Target
 
            </div>
 
            <hr>Refer to your best judgement or the FC instructions on jamming targets. The priority displayed here is meant only as a basic guideline for prioritizing targets on a theoretical level, actual field priority may differ depending on the circumstances.
 
            <hr>
 
            <ul>
 
            <li> [[Alphabetical_Ship_List|List of Jamming Priorities by Alphabet]]</li>
 
            <li> [https://forum.eveuniversity.org/search.php?keywords=ewar Forum Discussions for E-War]</li>
 
            </ul>
 
          </p>
 
          </div>
 
        </div>
 
        </td>
 
      </tr>
 
  
 
<!--** Ship image block "caption" center, line 2 **-->
 
<!--** Ship image block "caption" center, line 2 **-->
 
       <tr>
 
       <tr>
         <td class='hull-type'>[[:Category:{{{grouping|Unique Ships}}}|{{{grouping|Unique Ships}}}]]</td>
+
         <td class='hull-type'>{{#if: {{{grouping|}}} |[[:Category:{{{grouping}}} |{{{grouping}}} ]] }}</td>
 
       </tr>
 
       </tr>
  
 
<!--** Ship image block "caption" center, line 3 **-->
 
<!--** Ship image block "caption" center, line 3 **-->
 
       <tr>
 
       <tr>
         <td class='hull-title'>{{{hulltype|Unknown Class}}}</td>
+
         <td class='hull-title'>{{#if: {{{hulltype|}}} |{{{hulltype}}} |{{Co|red|! hulltype missing !}} }}</td>
 
       </tr>
 
       </tr>
  
 
       </table>
 
       </table>
     </div>
+
     </div><!--
<!--* Highlights *-->
+
 
    <div class='box-line box-awards'>
+
* class missing error *
       <div class='award' style='display:{{#if: {{{highlights1|}}}
+
-->   {{#if: {{{class|}}} | <!-- Nothing --> | <div class='box-discussion' style='text-align: center; color: red;'> ! class missing ! </div> }}<!--
          |block
+
 
          |none
+
* Highlights *
        }}'>
+
-->  {{#if: {{{highlights1|}}} {{{highlights2|}}} {{{highlights3|}}} {{{highlights4|}}}
      <div class='award-img'>[[Image:Icon_highlights.png|15x15px|middle|first highlight]]</div>
+
       |
      <div class='award-label'>{{{highlights1|}}}</div>
+
    <div class='box-awards'><!--
      <div class='award-bgr'>HIGHLIGHTS</div>
+
-->    {{#if: {{{highlights1|}}}
      </div>
+
      | <div class='award'>
 +
          <div class='award-img'>[[Image:Icon_highlights.png|15x15px|Highlight]]</div>
 +
          <div class='award-label'>{{{highlights1}}}</div>
 +
          <div class='award-bgr'>HIGHLIGHTS</div>
 +
        </div>
 +
    }}<!--
  
      <div class='award' style='display:{{#if: {{{highlights2|}}}
+
-->  {{#if: {{{highlights2|}}}
          |block
+
      | <div class='award'>
          |none
+
          <div class='award-img'>[[Image:Icon_highlights.png|15x15px|Highlight]]</div>
        }}'>
+
          <div class='award-label'>{{{highlights2}}}</div>
      <div class='award-img'>[[Image:Icon_highlights.png|15x15px|middle|structure hitpoints]]</div>
+
          <div class='award-bgr'>HIGHLIGHTS</div>
      <div class='award-label'>{{{highlights2|}}}</div>
+
        </div>
      <div class='award-bgr'>HIGHLIGHTS</div>
+
    }}<!--
      </div>
 
  
      <div class='award' style='display:{{#if: {{{highlights3|}}}
+
-->  {{#if: {{{highlights3|}}}
          |block
+
      | <div class='award'>
          |none
+
          <div class='award-img'>[[Image:Icon_highlights.png|15x15px|Highlight]]</div>
        }}'>
+
          <div class='award-label'>{{{highlights3}}}</div>
      <div class='award-img'>[[Image:Icon_highlights.png|15x15px|middle|structure hitpoints]]</div>
+
          <div class='award-bgr'>HIGHLIGHTS</div>
      <div class='award-label'>{{{highlights3|}}}</div>
+
        </div>
      <div class='award-bgr'>HIGHLIGHTS</div>
+
    }}<!--
      </div>
 
  
      <div class='award' style='display:{{#if: {{{highlights4|}}}
+
-->  {{#if: {{{highlights4|}}}
          |block
+
      | <div class='award'>
          |none
+
          <div class='award-img'>[[Image:Icon_highlights.png|15x15px|Highlight]]</div>
        }}'>
+
          <div class='award-label'>{{{highlights4}}}</div>
      <div class='award-img'>[[Image:Icon_highlights.png|15x15px|middle|structure hitpoints]]</div>
+
          <div class='award-bgr'>HIGHLIGHTS</div>
      <div class='award-label'>{{{highlights4|}}}</div>
+
        </div>
      <div class='award-bgr'>HIGHLIGHTS</div>
+
    }}
      </div>
+
     </div>
     </div><!--
+
}}<!--
  
 
* Forum links *-->
 
* Forum links *-->
     {{#if: {{{forumlinks}}}
+
     {{#if: {{{forumlinks|}}}
       | <div class='box-line box-discussion'>
+
       | <div class='box-discussion'>
 
         <div class='discussion-bgr'>FORUM DISCUSSION</div>
 
         <div class='discussion-bgr'>FORUM DISCUSSION</div>
         <div class='linkname'>{{{forumlinks|}}}</div>
+
         <div class='linkname'>{{{forumlinks}}}</div>
 
         </div>
 
         </div>
      |
 
 
     }}
 
     }}
 
<!--
 
<!--
 
* Wiki links *-->
 
* Wiki links *-->
     <div class='box-line box-discussion'>
+
     <div class='box-discussion'>
 
       <div class='discussion-bgr'>RELATED UNI-WIKI REFERENCES</div>
 
       <div class='discussion-bgr'>RELATED UNI-WIKI REFERENCES</div>
 
       <div class='linkname'>[[Ships|EVE Online Ships Overview]]<br>{{{wikireferences|}}}</div>
 
       <div class='linkname'>[[Ships|EVE Online Ships Overview]]<br>{{{wikireferences|}}}</div>
Line 375: Line 324:
  
 
<!--* External links *-->
 
<!--* External links *-->
     <div class='box-line box-discussion'>
+
     <div class='box-discussion'>
 
       <div class='discussion-bgr'>EXTERNAL LINKS</div>
 
       <div class='discussion-bgr'>EXTERNAL LINKS</div>
       <div class='linkname'>{{#if: {{{shipid}}}
+
       <div class='linkname'>{{#if: {{{shipid|}}}
         | [https://zkillboard.com/ship/{{{shipid}}}/ {{{shipname|unknown}}} on zKillboard]{{#switch: {{{class}}}
+
         | [https://zkillboard.com/ship/{{{shipid}}}/ {{{shipname|}}} on zKillboard]{{#switch: {{lc: {{{class}}} }}
           | Shuttle
+
           | shuttle=
           | Special Edition Shuttle=
+
           | #default= <br>[https://www.eveworkbench.com/fitting/{{{shipid}}} {{{shipname|}}} on EVE Workbench]
          | <br>[https://www.eveworkbench.com/fitting/{{{shipid}}} {{{shipname|unknown}}} on EVE Workbench]
+
           }} <br>[https://janice.e-351.com/i/{{{shipid}}}/ {{{shipname|}}} on Janice]<br>[https://everef.net/type/{{{shipid}}} {{{shipname|}}} on EVE Ref]
           }} <br>[https://evepraisal.com/item/{{{shipid}}}/ {{{shipname|unknown}}} on Evepraisal]<br>[https://everef.net/type/{{{shipid}}} {{{shipname|unknown}}} on EVE Ref]
 
        |
 
 
       }}<br>{{{externallinks|}}}</div>
 
       }}<br>{{{externallinks|}}}</div>
 
     </div>
 
     </div>
 
     </td>
 
     </td>
  
<!--*************
+
<!--****************
    Right column
+
***  Main right  ***
*****************-->
+
********************-->
 
     <td valign='top'>
 
     <td valign='top'>
  
 
<!--* TOC and Ship info *-->
 
<!--* TOC and Ship info *-->
 
     <div class='box-line'>
 
     <div class='box-line'>
      __TOC__
+
      __TOC__
{{{info|}}} <!-- no indent because starting space is parsed as <pre> -->
+
      {{#if: {{{quote|}}}
     </div>
+
        | <div style="font-size: large;">{{{quote}}}</div>
 +
        {{#if: {{{quote_attribution|}}}
 +
          |: &ndash; {{{quote_attribution}}}
 +
        }}
 +
<!--  --><br> <!-- Comment in front is to suppress <pre> parsing -->
 +
      }}
 +
<!---->{{{info|}}} <!-- Comment in front is to suppress <pre> parsing -->
 +
     </div><!--
  
<!--* Ship bonuses(traits) *-->
+
* Ship bonuses(traits) *-->
     <div class='box-line box-bonuses' style='display:{{#if: {{{bonuses|}}}
+
     {{#if: {{{bonuses|}}}
        |block
+
      | <div class='box-line box-bonuses'>
        |none
+
          <div class='label'>SHIP BONUSES</div>
        }}'>
+
<!--    -->{{{bonuses}}} <!-- Comment in front is to suppress <pre> parsing -->
      <div class='label'>SHIP BONUSES</div>
+
        </div>
{{{bonuses|}}} <!-- no indent because starting space is parsed as <pre> -->
+
    }}<!--
    </div>
 
  
    <div class='box-line'>
+
-->  <div class='box-line'>
 
       <table class='midinfo' cellspacing='0' cellpadding='0'>
 
       <table class='midinfo' cellspacing='0' cellpadding='0'>
 
       <tr>
 
       <tr>
  
 
<!--* Required skills *-->
 
<!--* Required skills *-->
         <td class='left' style='width:330px;'><div class='title'>Required Skills</div>
+
         <td class='left' style='width: 330px;'>
{{{reqskills|<i>none</i>}}}
+
        <div class='title'>Required Skills</div>
 +
<!--  -->{{#if: {{{reqskills|}}} |{{{reqskills}}} |<i>none</i> }} <!-- comment in front is to suppress <pre> parsing -->
 
<!--** Training time **-->
 
<!--** Training time **-->
        <div class='skillstime' style='display:{{#if:{{{reqskills|}}}
+
          {{#if: {{{reqskills|}}}
             |block
+
             | <div class='skillstime'>
            |none
+
                <span style='font-variant: small-caps;'>Training Time </span><span style='font-size: 70%;'>what's this?</span><div class='value'>{{{totaltraintime|}}}</div>
          }}'>
+
                <div class='desc'>Estimated training time only for the listed skills based on zero [[Skills_and_learning#Implants|implants]] and without [[Skills_and_learning#Neural_remaps|neural remaps]].
        <span style='font-variant: small-caps;'>Training Time</span> <span style='color:#656565;font-size:70%;'>what's this?</span><div class='value'>{{{totaltraintime|}}}</div>
+
                </div>
        <div class='desc'>Estimated training time only for the listed skills based on zero [[Skills_and_Learning#Implants|implants]] and without [[Skills_and_Learning#Neural_Remaps|neural remaps]].</div>
+
              </div>
        </div>
+
          }}
 
         </td>
 
         </td>
  
 
<!--* Grouping *-->
 
<!--* Grouping *-->
         <td class='right'><div class='title'>Grouping</div>
+
         <td class='right'>
         <table cellspacing='0' cellpadding='0'>
+
        <div class='title'>Grouping</div>
          <tr>
+
         <div style='color: #7D6843; font-size: 90%;'>&#9642; Variations</div> <!-- to suppress <pre> parsing
          <td style='width:70px;'><span style='color: #7D6843;font-size: 90%;'>&#9642; Role(s)</span></td>
+
      --><span style='padding-left: 10px; display: block;'>{{#if: {{{variations|}}} |{{{variations}}} |<i>none</i> }}</span>
          <td><span>{{{roles|<i>unspecified</i>}}}</span></td>
+
        </td>
          </tr>
+
        </tr>
        </table>
+
      </table>
        <div style='color: #7D6843;font-size: 90%;'>&#9642; Variations</div>
 
        <span style='padding-left:10px;display:block;'>{{{variations|<i>none</i>}}}</span>
 
        </td>
 
      </tr>
 
      </table>
 
 
     </div>
 
     </div>
  
 
<!--* Ship attributes *-->
 
<!--* Ship attributes *-->
     <div class='box-line box-attributes'>
+
     <div class='box-attributes'>
       <h2 style='margin-left:0;'>Ship Attributes</h2>
+
       <h2 style='margin-left: 0;'>Ship Attributes</h2>
 
       <table class='attributes' cellspacing='0' cellpadding='0'>
 
       <table class='attributes' cellspacing='0' cellpadding='0'>
  
Line 448: Line 397:
 
       <tr class='token'>
 
       <tr class='token'>
 
         <td class='line-label'><span class='label'>Fittings</span></td>
 
         <td class='line-label'><span class='label'>Fittings</span></td>
 +
        <td class='att-line'>
  
 
<!--*** Powergrid ***-->
 
<!--*** Powergrid ***-->
        <td class='att-line'>
 
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Powergrid</div><div class='item att-img'>[[Image:icon_powergrid.png|20px|middle|powergrid]]</div><div class='item att-value'>{{{powergrid|0 MW}}}</div>
+
           <div class='item att-label'>Powergrid</div><div class='item att-img'>[[Image:icon_powergrid.png|20px|powergrid]]</div><div class='item att-value'>{{#if: {{{powergrid|}}} |{{{powergrid}}} |0 MW }}</div>
 
         </div>
 
         </div>
  
 
<!--*** CPU ***-->
 
<!--*** CPU ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>CPU</div><div class='item att-img'>[[Image:icon_cpu.png|20px|middle|cpu output]]</div><div class='item att-value'>{{{cpu|0 tf}}}</div>
+
           <div class='item att-label'>CPU</div><div class='item att-img'>[[Image:icon_cpu.png|20px|cpu output]]</div><div class='item att-value'>{{#if: {{{cpu|}}} |{{{cpu}}} |0 tf }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Capacitor ***-->
 
<!--*** Capacitor ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Capacitor</div><div class='item att-img'>[[Image:Icon_capacitor_capacity.png|20px|middle|capacitor]]</div><div class='item att-value'>{{{capacitor|0 GJ}}}</div>
+
           <div class='item att-label'>Capacitor</div><div class='item att-img'>[[Image:Icon_capacitor_capacity.png|20px|capacitor]]</div><div class='item att-value'>{{#if: {{{capacitor|}}} |{{{capacitor}}} |0 GJ }}</div>
 
         </div>
 
         </div>
  
 
<!--*** High slots ***-->
 
<!--*** High slots ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>High</div><div class='item att-img'>[[Image:icon_hi_slot.png|20px|middle|high slots]]</div><div class='item att-value'>{{{highs|0}}}</div>
+
           <div class='item att-label'>High</div><div class='item att-img'>[[Image:icon_hi_slot.png|20px|high slots]]</div><div class='item att-value'>{{#if: {{{highs|}}} |{{{highs}}} |0 }}</div>
  
 
<!--*** Launchers ***-->
 
<!--*** Launchers ***-->
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;'>Launchers</div><div class='item att-img'>[[Image:icon_launcher_hp.png|20px|middle|launcher slots]]</div><div class='item att-value'>{{{launchers|0}}}</div>
+
           <div class='item att-label' style='color: #9E8F75; margin-left: 5px;'>Launchers</div><div class='item att-img'>[[Image:icon_launcher_hp.png|20px|launcher slots]]</div><div class='item att-value'>{{#if: {{{launchers|}}} |{{{launchers}}} |0 }}</div>
  
 
<!--*** Turrets ***-->
 
<!--*** Turrets ***-->
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;'>Turrets</div><div class='item att-img'>[[Image:icon_turret_hp.png|20px|middle|turret slots]]</div><div class='item att-value'>{{{turrets|0}}}</div>
+
           <div class='item att-label' style='color: #9E8F75; margin-left: 5px;'>Turrets</div><div class='item att-img'>[[Image:icon_turret_hp.png|20px|turret slots]]</div><div class='item att-value'>{{#if: {{{turrets|}}} |{{{turrets}}} |0 }}</div>
  
 
         </div>
 
         </div>
 +
 
<!--*** Medium slots ***-->
 
<!--*** Medium slots ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Medium</div><div class='item att-img'>[[Image:icon_mid_slot.png|20px|middle|middle slots]]</div><div class='item att-value'>{{{mediums|0}}}</div>
+
           <div class='item att-label'>Medium</div><div class='item att-img'>[[Image:icon_mid_slot.png|20px|medium slots]]</div><div class='item att-value'>{{#if: {{{mediums|}}} |{{{mediums}}} |0 }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Low slots ***-->
 
<!--*** Low slots ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Low</div><div class='item att-img'>[[Image:icon_low_slot.png|20px|middle|low slots]]</div><div class='item att-value'>{{{lows|0}}}</div>
+
           <div class='item att-label'>Low</div><div class='item att-img'>[[Image:icon_low_slot.png|20px|low slots]]</div><div class='item att-value'>{{#if: {{{lows|}}} |{{{lows}}} |0 }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Rigs ***-->
 
<!--*** Rigs ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Rig </div><div class='item att-img'>[[Image:icon_rigs.png|20px|middle|rigs]]</div>
+
           <div class='item att-label'>Rig </div><div class='item att-img'>[[Image:icon_rigs.png|20px|rigs]]</div>
 
               {{#if: {{{rigs_count|}}}
 
               {{#if: {{{rigs_count|}}}
 
               | <div class='item att-value'>{{{rigs_count}}}</div>
 
               | <div class='item att-value'>{{{rigs_count}}}</div>
               | <div class='item att-value'>{{#switch: {{{class}}}
+
               | <div class='item att-value'>{{#switch: {{lc: {{{class}}} }}
                 | Corvette
+
                 | corvette
                 | Shuttle
+
                 | freighter
                 | Special Edition Shuttle
+
                 | jump freighter
                 | Freighter
+
                 | prototype exploration ship
                 | Jump Freighter= 0
+
                 | shuttle= 0
                 | #default={{#switch:{{{tech}}}
+
                 | #default={{#switch: {{{tech}}}
 
                   | 2= 2
 
                   | 2= 2
 
                   | #default= 3
 
                   | #default= 3
Line 505: Line 455:
 
               &nbsp;{{#if: {{{rigs_size|}}}
 
               &nbsp;{{#if: {{{rigs_size|}}}
 
                 |<div class='item att-value'>{{{rigs_size}}}</div>
 
                 |<div class='item att-value'>{{{rigs_size}}}</div>
                 |<div class='item att-value'>{{#switch:{{{class}}}
+
                 |<div class='item att-value'>{{#switch: {{lc: {{{class}}} }}
                   | Shuttle
+
                   | corvette
                   | Special Edition Shuttle
+
                   | freighter
                   | Corvette
+
                   | jump freighter
                   | Assault Frigate
+
                   | prototype exploration ship
                   | Logistics Frigate
+
                   | shuttle= ''
                   | Covert Ops
+
 
                   | Destroyer
+
                   | assault frigate
                   | Command Destroyer
+
                   | command destroyer
                   | Tactical Destroyer
+
                   | covert ops
                   | Electronic Attack Ship
+
                   | destroyer
                   | Expedition Frigate
+
                   | electronic attack ship
                   | Frigate
+
                   | expedition frigate
                   | Interceptor
+
                   | frigate
                   | Interdictor
+
                   | interceptor
                   | Stealth Bomber= small
+
                   | interdictor
                   | Attack Battlecruiser
+
                   | logistics frigate
                   | Blockade Runner
+
                  | stealth bomber
                   | Combat Battlecruiser
+
                  | tactical destroyer= small
                   | Combat Recon Ship
+
 
                   | Command Ship
+
                  | attack battlecruiser
                   | Cruiser
+
                   | blockade runner
                   | Deep Space Transport
+
                   | combat battlecruiser
                   | Exhumer
+
                   | combat recon ship
                   | Force Recon Ship
+
                   | command ship
                   | Heavy Assault Cruiser
+
                   | cruiser
                   | Heavy Interdiction Cruiser
+
                   | deep space transport
                   | Industrial
+
                   | exhumer
                   | Logistics Cruiser
+
                   | force recon ship
                   | Mining Barge
+
                   | hauler
                   | Strategic Cruiser= medium
+
                   | heavy assault cruiser
                   | Battleship
+
                   | heavy interdiction cruiser
                   | Black Ops
+
                   | logistics <!-- In-game name for logistics cruiser -->
                   | Industrial Command Ship
+
                   | logistics cruiser
                   | Marauder= large  
+
                   | mining barge
                  | Capital Industrial Ship
+
                   | strategic cruiser= medium
                  | Carrier
+
 
                   | Force Auxiliary
+
                   | battleship
                   | Dreadnought
+
                   | black ops
                   | Freighter
+
                   | industrial command ship
                   | Jump Freighter
+
                   | marauder= large  
                   | Supercarrier
+
 
                   | Titan= capital
+
                   | capital industrial ship
                   | #default= ?
+
                   | carrier
 +
                   | dreadnought
 +
                   | force auxiliary
 +
                   | supercarrier
 +
                   | titan= capital
 +
 
 +
                   | #default= {{Co|red|?}}
 
                 }}</div>
 
                 }}</div>
 
               }}
 
               }}
  
 
<!--*** Calibration ***-->
 
<!--*** Calibration ***-->
               <div class='item att-label' style='color:#9E8F75;margin-left: 5px;'>Calibration </div><div class='item att-img'>[[Image:icon_calibration.png|16px|middle|calibration]]</div><div class='item att-value'>{{#if: {{{rigs_calibration|}}}
+
               <div class='item att-label' style='color: #9E8F75; margin-left: 5px;'>Calibration </div><div class='item att-img'>[[Image:icon_calibration.png|16px|calibration]]</div><div class='item att-value'>{{#if: {{{rigs_calibration|}}}
                 |{{{rigs_calibration|}}}
+
                 | {{{rigs_calibration}}}
                 |{{#switch:{{{class}}}
+
                 | {{#switch: {{lc: {{{class}}} }}
                  | Corvette
+
                  | corvette
                  | Shuttle
+
                  | freighter
                  | Limited Edition Shuttle
+
                  | jump freighter= 0
                  | Freighter
+
                  | prototype exploration ship
                  | Jump Freighter= 0
+
                  | shuttle= 1
                  | #default={{#switch:{{{grouping}}}
+
                  | #default={{#switch: {{lc: {{{grouping}}} }}
                    | Pirate Faction Ships= 350
+
                    | pirate faction ships
                    | #default=400
+
                    | pirate faction battleships
                  }}
+
                    | pirate faction battlecruisers
                }}
+
                    | pirate faction cruisers
 +
                    | pirate faction destroyers
 +
                    | pirate faction dreadnoughts
 +
                    | pirate faction force auxiliaries
 +
                    | pirate faction frigates
 +
                    | pirate faction supercarriers
 +
                    | pirate faction titans= 350
 +
                    | #default= 400
 +
                    }}
 +
                  }}
 
               }}</div>
 
               }}</div>
 
         </div>
 
         </div>
Line 576: Line 541:
 
       <tr class='token'>
 
       <tr class='token'>
 
         <td class='line-label'><span class='label'>Navigation</span></td>
 
         <td class='line-label'><span class='label'>Navigation</span></td>
 +
        <td class='att-line'>
  
 
<!--*** Max velocity ***-->
 
<!--*** Max velocity ***-->
        <td class='att-line'>
 
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Max Velocity</div><div class='item att-img'>[[Image:Icon_velocity.png|20px|middle|max. velocity]]</div><div class='item att-value'>{{{maxvelocity|0 m/s}}}</div>
+
           <div class='item att-label'>Max Velocity</div><div class='item att-img'>[[Image:Icon_velocity.png|20px|max. velocity]]</div><div class='item att-value'>{{#if: {{{maxvelocity|}}} |{{{maxvelocity}}} |0 m/s }}</div>
 
         </div>
 
         </div>
  
 
<!--*** inertia modifier ***-->
 
<!--*** inertia modifier ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Inertia Modifier</div><div class='item att-img'>[[Image:icon_inertia.png|20px|middle|inertia modifier (agility)]]</div><div class='item att-value'>{{{inertia|0.0}}}</div>
+
           <div class='item att-label'>Inertia Modifier</div><div class='item att-img'>[[Image:icon_inertia.png|20px|inertia modifier (agility)]]</div><div class='item att-value'>{{#if: {{{inertia|}}} |{{{inertia}}} |0.0 }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Warp speed ***-->
 
<!--*** Warp speed ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Warp Speed</div><div class='item att-img'>[[Image:Icon_warp_speed.png|20px|middle|inertia modifier (agility)]]</div><div class='item att-value'>{{{warpspeed|0 AU/s}}}</div>
+
           <div class='item att-label'>Warp Speed</div><div class='item att-img'>[[Image:Icon_warp_speed.png|20px|inertia modifier (agility)]]</div><div class='item att-value'>{{#if: {{{warpspeed|}}} |{{{warpspeed}}} |0 AU/s }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Base time to warp ***-->
 
<!--*** Base time to warp ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label' style='margin-right:3px;'>Base Time to Warp</div><div class='item att-img'>[[Image:Icon_warp_time.png|20px|middle|base time to warp]]</div><div class='item att-value'>{{{warptime|0.0 s}}}</div><div class='item att-value snip'>what's this?<div class='desc'>Base Time to Warp is essentially the time needed for this ship to align and accelerate until it reaches 75% of its top speed and goes to warp. The time displayed here is the base calculated time with no account for any warp related skills, modules or any other effects.</div></div>
+
           <div class='item att-label' style='margin-right: 3px;'>Base Time to Warp</div><div class='item att-img'>[[Image:Icon_warp_time.png|20px|base time to warp]]</div><div class='item att-value'>{{#if: {{{warptime|}}} |{{{warptime}}} |{{Co|red|?}} }}</div><div class='item att-value snip'>what's this?
 +
          <div class='desc'>Base Time to Warp is essentially the time needed for this ship to align and accelerate until it reaches 75% of its top speed and goes to warp. The time displayed here is the base calculated time with no account for any warp related skills, modules or any other effects.
 +
          </div>
 +
          </div>
 
         </div>
 
         </div>
 
         </td>
 
         </td>
Line 603: Line 571:
  
 
<!--** Ship attributes - Drones/Fighters **-->
 
<!--** Ship attributes - Drones/Fighters **-->
       <tr class='token' {{#if: {{{fighterbay|}}}
+
       <tr class='token'>
        |style="display: none;"}}>
+
        {{#if: {{{fighterbay|}}}
        <td class='line-label'><span class='label'>Drones</span></td>
+
          | <td class='line-label'><span class='label'>Fighters</span></td>
        <td class='att-line' {{#if:{{{dronebay|}}}|style="display: none;"}}>
+
            <td class='att-line'>
          <div class='att-item'>
+
              <div class='att-item'>
          <div class='item att-label' style="font-style: italic;">No drone bay.</div>
+
                <div class='item att-label'>Fighter Bay Capacity</div><div class='item att-img'>[[Image:icon_drone_capacity.png|20px|fighter bay capacity]]</div><div class='item att-value'>{{{fighterbay}}}</div>
          </div>
+
              </div>
        </td>
+
              <div class='att-item'>
 +
                <div class='item att-label'>Fighter Squad Tubes</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|fighter squad tubes]]</div><div class='item att-value'>{{#if: {{{fightertubes|}}} |{{{fightertubes}}} |{{Co|red|?}} }}</div>
 +
              </div>
 +
<!--        -->{{#if: {{{lightfightersquadlimit|}}}
 +
                | <div class='att-item'>
 +
                    <div class='item att-label'>Light Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|light fighter squad limit]]</div><div class='item att-value'>{{{lightfightersquadlimit}}}</div>
 +
                  </div>
 +
              }}<!--
 +
            -->{{#if: {{{heavyfightersquadlimit|}}}
 +
                | <div class='att-item'>
 +
                    <div class='item att-label'>Heavy Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|heavy fighter squad limit]]</div><div class='item att-value'>{{{heavyfightersquadlimit}}}</div>
 +
                  </div>
 +
              }}<!--
 +
            -->{{#if: {{{supportfightersquadlimit|}}}
 +
                | <div class='att-item'>
 +
                    <div class='item att-label'>Support Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|support fighter squad limit]]</div><div class='item att-value'>{{{supportfightersquadlimit}}}</div>
 +
                  </div>
 +
              }}
 +
            </td>
  
        <td class='att-line' {{#if: {{{dronebay|}}}
+
          | <td class='line-label'><span class='label'>Drones</span></td>
          |
+
            <td class='att-line'>
          |style="display: none;"
+
              <div class='att-item'> {{#if: {{{dronebay|}}}
          }}>
+
                |   <div class='item att-label'>Drone Capacity</div><div class='item att-img'>[[Image:icon_drone_capacity.png|20px|drone capacity]]</div><div class='item att-value'>{{{dronebay}}}</div>
          <div class='att-item'>
+
              </div>
            <div class='item att-label'>Drone Capacity</div>
+
              <div class='att-item'>
            <div class='item att-img'>[[Image:icon_drone_capacity.png|20px|middle|drone capacity]]</div>
+
                  <div class='item att-label'>Drone Bandwidth</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|drone bandwidth]]</div><div class='item att-value'>{{#if: {{{bandwidth|}}} |{{{bandwidth}}} |{{Co|red|?}} }}</div>
            <div class='item att-value'>{{{dronebay|0 m&#179;}}}</div>
+
              </div>
          </div>
 
        <div class='att-item'>
 
          <div class='item att-label'>Drone Bandwidth</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|drone bandwidth]]</div><div class='item att-value'>{{{bandwidth|0 Mbit/sec}}}</div>
 
        </div>
 
        </td>
 
      </tr>
 
  
      <tr class='token' {{#if:{{{fighterbay|}}}| |style="display: none;"}}>
+
                | <div class='item att-label' style="font-style: italic;">No drone bay.</div>
        <td class='line-label'><span class='label'>Fighters</span></td>
+
                }}
        <td class='att-line'>
+
              </div>
        <div class='att-item'>
+
            </td>
          <div class='item att-label'>Fighter Bay Capacity</div><div class='item att-img'>[[Image:icon_drone_capacity.png|20px|middle|fighter bay capacity]]</div><div class='item att-value'>{{{fighterbay|0 m&#179;}}}</div>
+
         }}
        </div>
 
        <div class='att-item'>
 
          <div class='item att-label'>Fighter Squad Tubes</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|fighter tubes]]</div><div class='item att-value'>{{{fightertubes|0}}}</div>
 
        </div>
 
        <div class='att-item' {{#if:{{{lightfightersquadlimit|}}}| |style="display: none;"}}>
 
          <div class='item att-label'>Light Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{lightfightersquadlimit|0}}}</div>
 
        </div>
 
        <div class='att-item' {{#if:{{{heavyfightersquadlimit|}}}| |style="display: none;"}}>
 
          <div class='item att-label'>Heavy Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{heavyfightersquadlimit|0}}}</div>
 
        </div>
 
         <div class='att-item' {{#if:{{{supportfightersquadlimit|}}}| |style="display: none;"}}>
 
          <div class='item att-label'>Support Fighter Squad Limit</div><div class='item att-img'>[[Image:icon_drone_bandwidth.png|20px|middle|squad limit]]</div><div class='item att-value'>{{{supportfightersquadlimit|0}}}</div>
 
        </div>
 
        </td>
 
 
       </tr>
 
       </tr>
  
Line 653: Line 619:
 
       <tr class='token'>
 
       <tr class='token'>
 
         <td class='line-label'><span class='label'>Targeting</span></td>
 
         <td class='line-label'><span class='label'>Targeting</span></td>
 +
        <td class='att-line'>
  
 
<!--*** Max range ***-->
 
<!--*** Max range ***-->
        <td class='att-line'>
 
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Max Tgt. Range</div><div class='item att-img'>[[Image:icon_target_range.png|20px|middle|max. targeting range]]</div><div class='item att-value'>{{{targetrange|0 km}}}</div>
+
           <div class='item att-label'>Max Tgt. Range</div><div class='item att-img'>[[Image:icon_target_range.png|20px|max. targeting range]]</div><div class='item att-value'>{{#if: {{{targetrange|}}} |{{{targetrange}}} |0 km }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Max targets ***-->
 
<!--*** Max targets ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Max Locked Targets</div><div class='item att-img'>[[Image:icon_target_max.png|20px|middle|max. locked targets]]</div><div class='item att-value'>{{{maxlockedtargets|0}}}</div>
+
           <div class='item att-label'>Max Locked Targets</div><div class='item att-img'>[[Image:icon_target_max.png|20px|max. locked targets]]</div><div class='item att-value'>{{#if: {{{maxlockedtargets|}}} |{{{maxlockedtargets}}} |0 }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Sensor ***-->
 
<!--*** Sensor ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>{{{sensortype|Multi}}} Sensor</div><div class='item att-img'>{{#switch:{{{sensortype}}}
+
           <div class='item att-label'>{{#if: {{{sensortype|}}} |{{{sensortype}}} | Multi }} Sensor</div><div class='item att-img'>{{#switch: {{lc: {{{sensortype}}} }}
               | RADAR=[[Image:Icon_sensor_radar.png|20px|middle|RADAR sensor strength]]
+
               | gravimetric= [[Image:Icon_sensor_gravimetric.png|20px|Gravimetric sensor strength]]
               | Gravimetric=[[Image:Icon_sensor_gravimetric.png|20px|middle|Gravimetric sensor strength]]
+
               | ladar= [[Image:Icon_sensor_ladar.png|20px|LADAR sensor strength]]
               | Magnetometric=[[Image:Icon_sensor_magnetometric.png|20px|middle|Magnetometric sensor strength]]
+
               | magnetometric= [[Image:Icon_sensor_magnetometric.png|20px|Magnetometric sensor strength]]
               | LADAR=[[Image:Icon_sensor_ladar.png|20px|middle|LADAR sensor strength]]
+
               | radar= [[Image:Icon_sensor_radar.png|20px|RADAR sensor strength]]
               |#default=[[Image:Icon_sensor_gravimetric.png|20px|middle|Multitype sensor strength]]}}</div><div class='item att-value'>{{{sensorvalue|0 points}}}</div>
+
               | #default= [[Image:Icon_sensor_gravimetric.png|20px|Multitype sensor strength]]}}</div><div class='item att-value'>{{#if: {{{sensorvalue|}}} |{{{sensorvalue}}} |0 points }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Signature radius ***-->
 
<!--*** Signature radius ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Sig. Radius</div><div class='item att-img'>[[Image:icon_ship_sig.png|20px|middle|ship signature radius]]</div><div class='item att-value'>{{{sigradius|0 m}}}</div>
+
           <div class='item att-label'>Sig. Radius</div><div class='item att-img'>[[Image:icon_ship_sig.png|20px|signature radius]]</div><div class='item att-value'>{{#if: {{{sigradius|}}} |{{{sigradius}}} |0 m }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Scan resolution ***-->
 
<!--*** Scan resolution ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Scan Res.</div><div class='item att-img'>[[Image:icon_sensor_resolution.png|20px|middle|scan resolution]]</div><div class='item att-value'>{{{scanres|0 mm}}}</div>
+
           <div class='item att-label'>Scan Res.</div><div class='item att-img'>[[Image:icon_sensor_resolution.png|20px|scan resolution]]</div><div class='item att-value'>{{#if: {{{scanres|}}} |{{{scanres}}} |0 mm }}</div>
 
         </div>
 
         </div>
 
         </td>
 
         </td>
Line 689: Line 655:
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
  
 +
<!--** Ship attributes - Structure **-->
 
       <tr class='token'>
 
       <tr class='token'>
 
<!--** Ship attributes - Structure **-->
 
 
         <td class='line-label'><span class='label'>Structure</span></td>
 
         <td class='line-label'><span class='label'>Structure</span></td>
 
         <td class='att-line'>
 
         <td class='att-line'>
Line 697: Line 662:
 
<!--*** hitpoints ***-->
 
<!--*** hitpoints ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Structure Hitpoints</div><div class='item att-img'>[[Image:icon_volume.png|20px|middle|structure hitpoints]]</div><div class='item att-value'>{{{structurehp|0 HP}}}</div>
+
           <div class='item att-label'>Structure Hitpoints</div><div class='item att-img'>[[Image:icon_volume.png|20px|structure hitpoints]]</div><div class='item att-value'>{{#if: {{{structurehp|}}} |{{{structurehp}}} |0 HP }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Mass ***-->
 
<!--*** Mass ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Mass</div><div class='item att-img'>[[Image:icon_mass.png|20px|middle|ship mass]]</div><div class='item att-value'>{{{mass|0 kg}}}</div>
+
           <div class='item att-label'>Mass</div><div class='item att-img'>[[Image:icon_mass.png|20px|ship mass]]</div><div class='item att-value'>{{#if: {{{mass|}}} |{{{mass}}} |0 kg }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Volume ***-->
 
<!--*** Volume ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Volume</div><div class='item att-img'>[[Image:icon_volume.png|20px|middle|ship volume]]</div><div class='item att-value'>{{{volume|0 m&#179;}}}</div>
+
           <div class='item att-label'>Volume</div><div class='item att-img'>[[Image:icon_volume.png|20px|ship volume]]</div><div class='item att-value'>{{#if: {{{volume|}}} |{{{volume}}} |0 m&#179; }}</div>
 
         </div>
 
         </div>
  
 
<!--*** Cargo capacity ***-->
 
<!--*** Cargo capacity ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Cargo Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|cargo capacity]]</div><div class='item att-value'>{{{cargohold|0 m&#179;}}}</div>
+
           <div class='item att-label'>Cargo Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|20px|cargo capacity]]</div><div class='item att-value'>{{#if: {{{cargohold|}}} |{{{cargohold}}} |0 m&#179; }}</div>
        </div>
+
        </div><!--
 +
 
 +
*** Escape bay ***
 +
-->      {{#switch: {{lc: {{{class}}} }}
 +
          | battleship
 +
          | black ops
 +
          | marauder=
 +
            <div class='att-item'>
 +
              <div class='item att-label'>Frigate Escape Bay</div><div class='item att-img'>[[Image:Isis_frigate.png|20px|Frigate Capacity]]</div><div class='item att-value'>1 Frigate</div>
 +
            </div>
 +
        }}<!--
  
<!--*** Escape bay ***-->
+
*** Extrahold ***
        <div class='att-item' {{#ifeq:{{{class|}}}|Battleship| |style="display: none;"}}>
+
-->     {{#if: {{{extrahold|}}}
          <div class='item att-label'>Frigate Escape Bay</div><div class='item att-img'>[[Image:Isis_frigate.png|center|20x20px|Frigate Capacity]]</div><div class='item att-value'>1 Frigate</div>
+
          | <div class='att-item'>
        </div>
+
              <div class='item att-label'>{{{extraholdtype}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|20px|capacity]]</div><div class='item att-value'>{{{extrahold}}}</div>
 +
            </div>
 +
        }}<!--
  
<!--*** Extrahold ***-->
+
*** Extrahold 2 ***
        <div class='att-item' {{#if:{{{extrahold|}}}| |style="display: none;"}}>
+
-->     {{#if: {{{extrahold2|}}}
          <div class='item att-label'>{{{extraholdtype}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold|0 m&#179;}}}</div>
+
          | <div class='att-item'>
 +
              <div class='item att-label'>{{{extrahold2type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|20px|capacity]]</div><div class='item att-value'>{{{extrahold2}}}</div>
 
         </div>
 
         </div>
 +
        }}<!--
  
<!--*** Extrahold 2 ***-->
+
*** Extrahold 3 ***
        <div class='att-item' {{#if:{{{extrahold2|}}}| |style="display: none;"}}>
+
-->     {{#if: {{{extrahold3|}}}
          <div class='item att-label'>{{{extrahold2type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold2|0 m&#179;}}}</div>
+
          | <div class='att-item'>
 +
              <div class='item att-label'>{{{extrahold3type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|20px|capacity]]</div><div class='item att-value'>{{{extrahold3|}}}</div>
 
         </div>
 
         </div>
 +
        }}<!--
  
<!--*** Extrahold 3 ***-->
+
*** Extrahold 4 ***
        <div class='att-item' {{#if:{{{extrahold3|}}}| |style="display: none;"}}>
+
-->     {{#if: {{{extrahold4|}}}
          <div class='item att-label'>{{{extrahold3type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold3|0 m&#179;}}}</div>
+
          | <div class='att-item'>
 +
              <div class='item att-label'>{{{extrahold4type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|20px|capacity]]</div><div class='item att-value'>{{{extrahold4}}}</div>
 
         </div>
 
         </div>
 +
        }}
  
<!--*** Extrahold 4 ***-->
 
<div class='att-item' {{#if:{{{extrahold4|}}}| |style="display: none;"}}>
 
          <div class='item att-label'>{{{extrahold4type}}} Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|capacity]]</div><div class='item att-value'>{{{extrahold4|0 m&#179;}}}</div>
 
        </div>
 
 
         </td>
 
         </td>
 
       </tr>
 
       </tr>
Line 744: Line 723:
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
  
<!--** Ship attributes - Shield **-->
+
<!--** Ship attributes - Armor **-->
 
       <tr class='token'>
 
       <tr class='token'>
         <td class='line-label'><span class='label'>Shields</span></td>
+
         <td class='line-label'><span class='label'>Armor</span></td>
 
         <td class='att-line'>
 
         <td class='att-line'>
  
 
<!--*** hitpoints ***-->
 
<!--*** hitpoints ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Shield Capacity</div><div class='item att-img'>[[Image:icon_shield.png|20px|middle|shields]]</div><div class='item att-value'>{{{shieldhp|0 HP}}}</div>
+
           <div class='item att-label'>Armor Hitpoints</div><div class='item att-img'>[[Image:icon_armor.png|20px|armor hitpoints]]</div><div class='item att-value'>{{#if: {{{armorhp|}}} |{{{armorhp}}} |0 HP }}</div>
  
 
<!--*** resistances ***-->
 
<!--*** resistances ***-->
           <div class='item att-label' style='margin-left:5px;'>Shield Resistances</div>
+
           <div class='item att-label' style='margin-left: 5px;'>Armor Resistances</div>
 +
 
 
           <div class='item'>
 
           <div class='item'>
 
           <div class='item att-label' style='color: #9E8F75; margin-left: 5px; font-size: 80%;'>EM</div>
 
           <div class='item att-label' style='color: #9E8F75; margin-left: 5px; font-size: 80%;'>EM</div>
           <div class='item att-img'>[[Image:icon_resist_em.png|20px|shield electromagnetic resistance]]</div>
+
           <div class='item att-img'>[[Image:icon_resist_em.png|20px|electromagnetic resistance]]</div>
 
           <div style='display: inline-block;'>
 
           <div style='display: inline-block;'>
             <div class='box-resist bgr-em'> <div class='resist-value val-em' style='width:{{#expr:{{#expr:{{#if:{{{shieldem}}}|{{{shieldem|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{shieldem}}}|{{{shieldem|0}}}|0}}</div></div></div>
+
             <div class='box-resist bgr-em'>
 +
            <div class='resist-value val-em' style='width: {{#if: {{{armorem|}}}
 +
                | {{#expr: {{{armorem}}}/2 round 0 }}
 +
                | 0
 +
                }}px;'>
 +
              <div class='value-text'>{{#if: {{{armorem|}}} |{{{armorem}}} |0 }}</div>
 +
            </div>
 +
            </div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>
 +
 
           <div class='item'>
 
           <div class='item'>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>THR</div>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>THR</div>
           <div class='item att-img'>[[Image:icon_resist_therm.png|20px|shield thermal resistance]]</div>
+
           <div class='item att-img'>[[Image:icon_resist_therm.png|20px|thermal resistance]]</div>
 
           <div style='display: inline-block;'>
 
           <div style='display: inline-block;'>
             <div class='box-resist bgr-thr'> <div class='resist-value val-thr' style='width:{{#expr:{{#expr:{{#if:{{{shieldtherm}}}|{{{shieldtherm|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{shieldtherm}}}|{{{shieldtherm|0}}}|0}}</div></div></div>
+
             <div class='box-resist bgr-thr'>
 +
            <div class='resist-value val-thr' style='width: {{#if: {{{armortherm|}}}
 +
                | {{#expr: {{{armortherm}}}/2 round 0 }}
 +
                | 0
 +
                }}px;'>
 +
              <div class='value-text'>{{#if: {{{armortherm|}}} |{{{armortherm}}} |0 }}</div>
 +
            </div>
 +
            </div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>
 +
 
           <div class='item'>
 
           <div class='item'>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>KIN</div>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>KIN</div>
           <div class='item att-img'>[[Image:icon_resist_kin.png|20px|shield kinetic resistance]]</div>
+
           <div class='item att-img'>[[Image:icon_resist_kin.png|20px|kinetic resistance]]</div>
 
           <div style='display: inline-block;'>
 
           <div style='display: inline-block;'>
             <div class='box-resist bgr-kin'> <div class='resist-value val-kin' style='width:{{#expr:{{#expr:{{#if:{{{shieldkin}}}|{{{shieldkin|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{shieldkin}}}|{{{shieldkin|0}}}|0}}</div></div></div>
+
             <div class='box-resist bgr-kin'>
 +
            <div class='resist-value val-kin' style='width: {{#if: {{{armorkin|}}}
 +
                | {{#expr: {{{armorkin}}}/2 round 0 }}
 +
                | 0
 +
                }}px;'>
 +
              <div class='value-text'>{{#if: {{{armorkin|}}} |{{{armorkin}}} |0 }}</div>
 +
            </div>
 +
            </div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>
 +
 
           <div class='item'>
 
           <div class='item'>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>EXP</div>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>EXP</div>
           <div class='item att-img'>[[Image:icon_resist_exp.png|20px|shield explosive resistance]]</div>
+
           <div class='item att-img'>[[Image:icon_resist_exp.png|20px|explosive resistance]]</div>
 
           <div style='display: inline-block;'>
 
           <div style='display: inline-block;'>
             <div class='box-resist bgr-exp'> <div class='resist-value val-exp' style='width:{{#expr:{{#expr:{{#if:{{{shieldexp}}}|{{{shieldexp|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{shieldexp}}}|{{{shieldexp|0}}}|0}}</div></div></div>
+
             <div class='box-resist bgr-exp'>
 +
            <div class='resist-value val-exp' style='width: {{#if: {{{armorexp|}}}
 +
                | {{#expr: {{{armorexp}}}/2 round 0 }}
 +
                | 0
 +
                }}px;'>
 +
              <div class='value-text'>{{#if: {{{armorexp|}}} |{{{armorexp}}} |0 }}</div>
 +
            </div>
 +
            </div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>
 +
 
         </div>
 
         </div>
 
         </td>
 
         </td>
 
       </tr>
 
       </tr>
 +
 
       <tr><td class='separator'></td></tr>
 
       <tr><td class='separator'></td></tr>
  
<!--** Ship attributes - Armor **-->
+
<!--** Ship attributes - Shield **-->
 
       <tr class='token'>
 
       <tr class='token'>
         <td class='line-label'><span class='label'>Armor</span></td>
+
         <td class='line-label'><span class='label'>Shields</span></td>
 
         <td class='att-line' style='border-bottom: medium none;'>
 
         <td class='att-line' style='border-bottom: medium none;'>
  
 
<!--*** hitpoints ***-->
 
<!--*** hitpoints ***-->
 
         <div class='att-item'>
 
         <div class='att-item'>
           <div class='item att-label'>Armor Hitpoints</div><div class='item att-img'>[[Image:icon_armor.png|20px|middle|armor]]</div><div class='item att-value'>{{{armorhp|0 HP}}}</div>
+
           <div class='item att-label'>Shield Capacity</div><div class='item att-img'>[[Image:icon_shield.png|20px|shield hitpoints]]</div><div class='item att-value'>{{#if: {{{shieldhp|}}} |{{{shieldhp}}} |0 HP }}</div>
  
 
<!--*** resistances ***-->
 
<!--*** resistances ***-->
           <div class='item att-label' style='margin-left:5px;'>Armor Resistances</div>
+
           <div class='item att-label' style='margin-left: 5px;'>Shield Resistances</div>
 +
 
 
           <div class='item'>
 
           <div class='item'>
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>EM</div>
+
           <div class='item att-label' style='color: #9E8F75; margin-left: 5px; font-size: 80%;'>EM</div>
           <div class='item att-img'>[[Image:icon_resist_em.png|20px|shield electromagnetic resistance]]</div>
+
           <div class='item att-img'>[[Image:icon_resist_em.png|20px|electromagnetic resistance]]</div>
 
           <div style='display: inline-block;'>
 
           <div style='display: inline-block;'>
             <div class='box-resist bgr-em'> <div class='resist-value val-em' style='width:{{#expr:{{#expr:{{#if:{{{armorem}}}|{{{armorem|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorem}}}|{{{armorem|0}}}|0}}</div></div></div>
+
             <div class='box-resist bgr-em'>
 +
            <div class='resist-value val-em' style='width: {{#if: {{{shieldem|}}}
 +
                | {{#expr: {{{shieldem}}}/2 round 0 }}
 +
                | 0
 +
                }}px;'>
 +
              <div class='value-text'>{{#if: {{{shieldem|}}} |{{{shieldem}}} |0 }}</div>
 +
            </div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>
          <div class='item'>
+
        </div>
          <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>THR</div>
+
 
          <div class='item att-img'>[[Image:icon_resist_therm.png|20px|armor thermal resistance]]</div>
+
        <div class='item'>
          <div style='display: inline-block;'>
+
          <div class='item att-label' style='color: #9E8F75; margin-left: 5px; font-size: 80%;'>THR</div>
            <div class='box-resist bgr-thr'> <div class='resist-value val-thr' style='width:{{#expr:{{#expr:{{#if:{{{armortherm}}}|{{{armortherm|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armortherm}}}|{{{armortherm|0}}}|0}}</div></div></div>
+
          <div class='item att-img'>[[Image:icon_resist_therm.png|20px|thermal resistance]]</div>
 +
          <div style='display: inline-block;'>
 +
          <div class='box-resist bgr-thr'>
 +
            <div class='resist-value val-thr' style='width: {{#if: {{{shieldtherm|}}}
 +
                | {{#expr: {{{shieldtherm}}}/2 round 0 }}
 +
                | 0
 +
                }}px;'>
 +
            <div class='value-text'>{{#if: {{{shieldtherm|}}} |{{{shieldtherm}}} |0 }}</div>
 +
            </div>
 +
            </div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>
 +
 
           <div class='item'>
 
           <div class='item'>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>KIN</div>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>KIN</div>
           <div class='item att-img'>[[Image:icon_resist_kin.png|20px|armor kinetic resistance]]</div>
+
           <div class='item att-img'>[[Image:icon_resist_kin.png|20px|kinetic resistance]]</div>
 
           <div style='display: inline-block;'>
 
           <div style='display: inline-block;'>
             <div class='box-resist bgr-kin'> <div class='resist-value val-kin' style='width:{{#expr:{{#expr:{{#if:{{{armorkin}}}|{{{armorkin|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorkin}}}|{{{armorkin|0}}}|0}}</div></div></div>
+
             <div class='box-resist bgr-kin'>
 +
            <div class='resist-value val-kin' style='width: {{#if: {{{shieldkin|}}}
 +
                | {{#expr: {{{shieldkin}}}/2 round 0 }}
 +
                | 0
 +
                }}px;'>
 +
              <div class='value-text'>{{#if: {{{shieldkin|}}} |{{{shieldkin}}} |0 }}</div>
 +
            </div>
 +
            </div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>
           <div class='item'>
+
 
 +
           <div class='item'><!--  open div 2  -->
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>EXP</div>
 
           <div class='item att-label' style='color:#9E8F75;margin-left: 5px;font-size: 80%;'>EXP</div>
           <div class='item att-img'>[[Image:icon_resist_exp.png|20px|armor explosive resistance]]</div>
+
           <div class='item att-img'>[[Image:icon_resist_exp.png|20px|explosive resistance]]</div>
 
           <div style='display: inline-block;'>
 
           <div style='display: inline-block;'>
             <div class='box-resist bgr-exp'> <div class='resist-value val-exp' style='width:{{#expr:{{#expr:{{#if:{{{armorexp}}}|{{{armorexp|0}}}|0}}/2}}round0}}px;'> <div class='value-text'>{{#if:{{{armorexp}}}|{{{armorexp|0}}}|0}}</div></div></div>
+
             <div class='box-resist bgr-exp'>
 +
            <div class='resist-value val-exp' style='width: {{#if: {{{shieldexp|}}}
 +
                | {{#expr: {{{shieldexp}}}/2 round 0 }}
 +
                | 0
 +
                }}px;'>
 +
              <div class='value-text'>{{#if: {{{shieldexp|}}} |{{{shieldexp}}} |0 }}</div>
 +
            </div>
 +
            </div>
 
           </div>
 
           </div>
 
           </div>
 
           </div>
 +
 
         </div>
 
         </div>
 
         </td>
 
         </td>

Latest revision as of 15:37, 14 November 2024


Template documentation (for the above template, sometimes hidden or invisible)
Visit User:Evon R'al/Sandbox template/doc to edit this text! (How does this work?) (Refresh this text - why?)