Difference between revisions of "Template:ShipBoxTooltip"

From EVE University Wiki
Jump to: navigation, search
m (.sbtt-attributes div: Remove display: inline-block, when using float this is automatically changed in block which is also the default for div.)
m (Change css so that classes sbtt-something will only work when inside an element with class .sbtt)
Line 5: Line 5:
 
  }
 
  }
  
td.sbtt-image {
+
.sbtt td.sbtt-image {
 
   position: relative;
 
   position: relative;
 
   padding-right: 5px;
 
   padding-right: 5px;
Line 11: Line 11:
 
  }
 
  }
  
.sbtt-image a img {
+
.sbtt sbtt-image a img {
 
   border: 1px solid #272727;
 
   border: 1px solid #272727;
 
  }
 
  }
  
.techcornersmall {
+
.sbtt .techcornersmall {
 
   position: absolute;
 
   position: absolute;
 
   top: 0;
 
   top: 0;
Line 22: Line 22:
  
 
/* header */
 
/* header */
.sbtt-header {
+
.sbtt .sbtt-header {
 
   margin-bottom: 5px;
 
   margin-bottom: 5px;
 
   border-bottom: 1px solid #272727;
 
   border-bottom: 1px solid #272727;
Line 29: Line 29:
 
  }
 
  }
  
.sbtt-ship-name {
+
.sbtt .sbtt-ship-name {
 
   height: 20px;
 
   height: 20px;
 
   white-space: nowrap;
 
   white-space: nowrap;
Line 36: Line 36:
 
  }
 
  }
  
.sbtt-ship-category {
+
.sbtt .sbtt-ship-category {
 
   font-size: 11px;
 
   font-size: 11px;
 
   line-height: 10px;
 
   line-height: 10px;
 
  }
 
  }
  
.sbtt-ship-group {
+
.sbtt .sbtt-ship-group {
 
   white-space: nowrap;
 
   white-space: nowrap;
 
   color: orange;
 
   color: orange;
 
  }
 
  }
  
.sbtt-ship-hull {
+
.sbtt .sbtt-ship-hull {
 
   white-space: nowrap;
 
   white-space: nowrap;
 
  }
 
  }
  
 
/* Highlights */
 
/* Highlights */
.sbtt-highlights {
+
.sbtt .sbtt-highlights {
 
   padding-bottom: 5px;
 
   padding-bottom: 5px;
 
  }
 
  }
  
.sbtt-highlights div {
+
.sbtt .sbtt-highlights div {
 
   height: 10px;
 
   height: 10px;
 
   color: khaki;
 
   color: khaki;
Line 62: Line 62:
 
  }
 
  }
  
/* Ship attributes */
+
/* *** Ship attributes *** */
.sbtt-attributes {
+
.sbtt .sbtt-attributes {
 
   float: left;
 
   float: left;
 
   width: 170px;
 
   width: 170px;
 
  }
 
  }
  
.sbtt-attributes div {
+
.sbtt .sbtt-attributes div {
 
   float: left;
 
   float: left;
 
   margin-right: 3px;
 
   margin-right: 3px;

Revision as of 12:31, 19 May 2022

Template documentation (for the above template, sometimes hidden or invisible)
Description
Creates a tooltip 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
{{Tooltip}}
{{Imageserver}} When no local image of ship is available and shipid is known.
Part of the parameter set of {{ShipArticle}}
Syntax
ShipBoxTooltip 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}}
Sample
Some text {{Ship|Megathron Navy Issue}} more text.
gives...
Some text Megathron Navy Issue
Megathron Navy Issue
CornerTFs.png
Megathron Navy Issue
Faction Battleships Megathron Class
Icon highlights.pngHigh Amount of High Slots
Icon highlights.pngHigh Amount of Low Slots
high slots8(1/7) middle slots4 low slots8
powergrid16,275 MW cpu output630 tf
max. velocity130 m/sec
cargo capacity840 m³
more text.


Bug icon red.png Bug: There is a problem with the presentation of the result. See Template talk:ShipBoxTooltip

Visit Template:ShipBoxTooltip/doc to edit this text! (How does this work?) (Refresh this text - why?)