Difference between revisions of "Template:ShipBoxLarge"

From EVE University Wiki
Jump to: navigation, search
m (Replace {{{parameter|default}}} with {{#if:}}, inconsistent behavior.)
(Remove option to collapse ship data block.)
Line 303: Line 303:
 
}}<!-- Content -->
 
}}<!-- Content -->
 
<div style='float: left; clear: both; width: 100%'>
 
<div style='float: left; clear: both; width: 100%'>
 +
 
   <div class='ship-info'>
 
   <div class='ship-info'>
     <div class='title'><span style='font-size: 16px'>&equiv;</span> {{#if: {{{class|}}} |{{{class}}} |SHIP}}: INFORMATION<div style='display: {{#if: {{{roles|}}} |block |none}}; float: right; font-weight: bold; font-family: trebuchet MS; text-transform: uppercase; font-size: 80%; line-height: 20px; color: #F1EFCA;'>{{#ifeq: {{{roles}}} |unspecified | | {{{roles}}} }}</div></div>
+
<!-- Title -->
 +
     <div class='title'><span style='font-size: 16px;'>&equiv;</span> {{#if: {{{class|}}} |{{{class}}} |SHIP}}: INFORMATION
 +
      <div style='display: {{#if: {{{roles|}}} |block |none}}; float: right; font-weight: bold; font-family: trebuchet MS; text-transform: uppercase; font-size: 80%; line-height: 20px; color: #F1EFCA;'>{{#ifeq: {{{roles}}} |unspecified | | {{{roles}}} }}
 +
      </div>
 +
    </div>
 +
<!-- Content -->
 
     <table style='width:100%;'>
 
     <table style='width:100%;'>
 +
 
       <tr>
 
       <tr>
 +
<!-- Content left: image and link -->
 
         <td style='padding: 5px; width: 256px;' valign='top'>
 
         <td style='padding: 5px; width: 256px;' valign='top'>
 
           <div style='border: 1px solid #323931; position: relative;' class='ship-img'>{{#if: {{{tech|}}}
 
           <div style='border: 1px solid #323931; position: relative;' class='ship-img'>{{#if: {{{tech|}}}
Line 347: Line 355:
 
                   | Unknown Faction
 
                   | Unknown Faction
 
                 }}]]</div>
 
                 }}]]</div>
 +
 
           <div style='display: {{#ifexist: File:{{{shipimg}}} |none |block}}; text-align: center;' class='forum-link'>
 
           <div style='display: {{#ifexist: File:{{{shipimg}}} |none |block}}; text-align: center;' class='forum-link'>
 
             <div class='linkentry'>
 
             <div class='linkentry'>
Line 355: Line 364:
 
             </div>
 
             </div>
 
           </div>
 
           </div>
 +
 
           <div class='forum-link'>
 
           <div class='forum-link'>
 
             <div class='linkentry'>
 
             <div class='linkentry'>
Line 363: Line 373:
 
           </div>
 
           </div>
 
         </td>
 
         </td>
 +
<!-- Content right: data -->
 
         <td style='padding: 5px 5px 5px 0; border-left: 1px solid #333333' valign='top'>
 
         <td style='padding: 5px 5px 5px 0; border-left: 1px solid #333333' valign='top'>
           <div class='titlename' style='position: absolute; display:{{#if: {{{shipname|}}} |block |block}};'>[[{{{shipname|}}}]]</div>      
+
 
           <table class='collapsible attributes' style='width: 100%; margin-bottom: 5px;'>
+
           <div class='titlename' style='margin-bottom: 1em;'>[[{{{shipname|}}}]]</div>
            <tr>
+
 
              <th><div style='float: left; width: 100px; font-family: trebuchet MS; margin-left: -3px;'>SHOW ATTRIBUTES</div></th>
+
           <table class='attributes' style='width: 100%; margin-bottom: 5px;'>
            </tr>
+
 
            <tr>
 
              <td style='padding: 0; margin: 0;'><div style='height: 15px; line-height: 15px;'>&nbsp;</div></td>
 
            </tr>
 
 
             <tr>
 
             <tr>
 
               <td>
 
               <td>
Line 477: Line 485:
 
                 </div>
 
                 </div>
 
               </td>
 
               </td>
 +
 
             </tr>
 
             </tr>
 +
 
           </table>
 
           </table>
 +
 
           <div class='ship-border-box' style='display: {{#if: {{{bonuses|}}}|block|none}}; margin: 10px 5px 5px'>
 
           <div class='ship-border-box' style='display: {{#if: {{{bonuses|}}}|block|none}}; margin: 10px 5px 5px'>
 
             <div class='label'><div class='inner'>S H I P&nbsp;&nbsp;&nbsp;B O N U S E S</div></div>  
 
             <div class='label'><div class='inner'>S H I P&nbsp;&nbsp;&nbsp;B O N U S E S</div></div>  
Line 487: Line 498:
 
           <div class='box-footer'>[[{{{shipname|}}}]] =></div>
 
           <div class='box-footer'>[[{{{shipname|}}}]] =></div>
 
         </td>
 
         </td>
 +
 
       </tr>
 
       </tr>
 +
 
     </table>
 
     </table>
 +
 
   </div>
 
   </div>
 
</div></includeonly>
 
</div></includeonly>
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Revision as of 16:52, 24 January 2023

Template documentation (for the above template, sometimes hidden or invisible)
Description
Creates a info box with a subset of the ships stats.
This template is a part of the Ship Database template set and designed to be used in conjunction with the templates on that category and is not meant to be used or called directly!.
If you're looking on how to use the Ship template please see this page instead.

DO NOT EDIT THE CONTENTS OF THIS TEMPLATE IF YOU ARE NOT SURE ON WHAT YOU ARE DOING.
Dependencies
Uses
no-image.png Default ship image when shipimg is not given.
Helpicon.png Default faction logo when faction is empty or unknown.
{{Imageserver}} When no local image of ship is available and shipid is known.
Part of the parameter set of {{ShipArticle}}
Build-in UniWiki links to
Ships
Build-in external links to
zKillboard
EVE Workbench
Janice
EVE Ref
Syntax
ShipBoxLarge is not to be used on its own. It is to be called by using the wrapper template {{Ship}}
Template set
{{ShipArticle}}
{{Ship}}
{{ShipBoxLarge}}
{{ShipBoxTooltip}}
Visit Template:ShipBoxLarge/doc to edit this text! (How does this work?) (Refresh this text - why?)