Difference between revisions of "Template:ShipBoxTooltip"

From EVE University Wiki
Jump to: navigation, search
m (Coding and testing.)
m (CSS ship attributes: Move inline css to class. Refactor css.)
Line 49: Line 49:
  
 
/* Ship attributes */
 
/* Ship attributes */
.uniwiki-ship-tooltip-bottom {
+
.uniwiki-ship-tooltip-bottom,
 +
.sbtt-attributes {
 
   float: left;
 
   float: left;
 
   width: 170px;
 
   width: 170px;
 
  }
 
  }
  
.uniwiki-ship-tooltip-bottom .tt-att {
+
.sbtt-attributes div {
  color: #9E8F75;
 
 
   display: inline-block;
 
   display: inline-block;
  font-size: 10px;
 
 
   float:left;
 
   float:left;
 +
  margin-right: 3px;
 +
  padding-right: 3px;
 
   height: 13px;
 
   height: 13px;
 +
  white-space: nowrap;
 +
  color: #9E8F75;
 +
  font-size: 10px;
 
   line-height: 15px;
 
   line-height: 15px;
  margin-right: 3px;
 
  padding-right: 3px;
 
 
  }
 
  }
  
Line 99: Line 101:
 
     </div>
 
     </div>
 
     }}
 
     }}
     <div class='uniwiki-ship-tooltip-bottom'>
+
     <div class="sbtt-attributes">
     <div class='tt-att' style='white-space: nowrap;'>[[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>
+
     <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>
     <div class='tt-att' style='white-space: nowrap;'>[[Image:icon_powergrid.png|15x15px|powergrid]]{{{powergrid|0 MW}}} [[Image:icon_cpu.png|15x15px|cpu output]]{{{cpu|0 tf}}}</div>
+
     <div>[[Image:icon_powergrid.png|15x15px|powergrid]]{{{powergrid|0 MW}}} [[Image:icon_cpu.png|15x15px|cpu output]]{{{cpu|0 tf}}}</div>
     <div class='tt-att'>[[Image:Icon_velocity.png|15x15px|max. velocity]]{{{maxvelocity|0 m/s}}}</div>
+
     <div>[[Image:Icon_velocity.png|15x15px|max. velocity]]{{{maxvelocity|0 m/s}}}</div>
     <div class='tt-att'>[[Image:Icon_capacity.png|15x15px|cargo capacity]]{{{cargohold|0 m&#179;}}}</div>
+
     <div>[[Image:Icon_capacity.png|15x15px|cargo capacity]]{{{cargohold|0 m&#179;}}}</div>
 
     </div>
 
     </div>
 
   </td>
 
   </td>

Revision as of 17:16, 14 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 BattleshipsMegathron 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?)