Difference between revisions of "Template:ShipBoxTooltip"
From EVE University Wiki
m (CSS ship attributes: Move inline css to class. Refactor css.) |
m (CSS ship header: Move inline css to class. Refactor css.) |
||
Line 14: | Line 14: | ||
} | } | ||
+ | .techcornersmall { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | margin-left: 2px; | ||
+ | margin-top: 0px; | ||
+ | } | ||
+ | |||
+ | /* header */ | ||
.uniwiki-ship-tooltip-header { | .uniwiki-ship-tooltip-header { | ||
+ | margin-bottom: 5px; | ||
border-bottom: 1px solid #272727; | border-bottom: 1px solid #272727; | ||
− | |||
padding-bottom: 5px; | padding-bottom: 5px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
− | . | + | .sbtt-ship-name { |
+ | height: 20px; | ||
color: white; | color: white; | ||
− | font | + | font: small-caps 16px/15px trebuchet MS; |
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | .uniwiki-ship-tooltip-header .tooltip-header-category { | + | .uniwiki-ship-tooltip-header .tooltip-header-category, |
+ | .sbtt-ship-category { | ||
+ | height: 10px; | ||
font-size: 11px; | font-size: 11px; | ||
− | |||
line-height: 10px; | line-height: 10px; | ||
+ | } | ||
+ | |||
+ | .sbtt-ship-group { | ||
+ | margin-right: 5px; | ||
+ | color: orange; | ||
+ | } | ||
+ | |||
+ | .sbtt-ship-hull } | ||
+ | white-space: no-wrap; | ||
} | } | ||
Line 49: | Line 65: | ||
/* Ship attributes */ | /* Ship attributes */ | ||
− | |||
.sbtt-attributes { | .sbtt-attributes { | ||
float: left; | float: left; | ||
Line 65: | Line 80: | ||
font-size: 10px; | font-size: 10px; | ||
line-height: 15px; | line-height: 15px; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 90: | Line 95: | ||
<td> | <td> | ||
<div class='uniwiki-ship-tooltip-header'> | <div class='uniwiki-ship-tooltip-header'> | ||
− | <div class= | + | <div class="sbtt-ship-name">{{{shipname}}}</div> |
− | <div class= | + | <div class="sbtt-ship-category"><span class="sbtt-ship-group">{{{grouping|Unique Ships}}}</span><span class="sbtt-ship-hull">{{{hulltype|Unknown Class}}}</span></div> |
</div> | </div> | ||
{{#if: {{{highlights1|}}} | {{#if: {{{highlights1|}}} |
Revision as of 11:02, 16 May 2022
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- Creates a tooltip with a subset of the ships stats.
- 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
gives...Some text {{Ship|Megathron Navy Issue}} more text.
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?)