More actions
m Fix class name. Change padding: to padding-right: |
m Refactor image code. |
||
| Line 16: | Line 16: | ||
} | } | ||
.uniwiki-ship-tooltip .left a img { | .uniwiki-ship-tooltip .left a img, | ||
.sbtt-image a img { | |||
border: 1px solid #272727; | border: 1px solid #272727; | ||
} | } | ||
| Line 97: | Line 98: | ||
<table cellspacing='0' cellpadding='0' style='width:100%;'> | <table cellspacing='0' cellpadding='0' style='width:100%;'> | ||
<tr> | <tr> | ||
<td class='left sbtt-image'>[[Image:{{#if:{{{shipimg|}}}|{{{shipimg}}}|No-image.png}}|80x80px|{{{shipname}}}]]{{#if:{{{tech|}}}|<div class= | <td class='left sbtt-image'>[[Image:{{#if:{{{shipimg|}}} | ||
|{{{shipimg}}} | |||
|No-image.png | |||
}}|80x80px|{{{shipname}}}]]{{#if:{{{tech|}}} | |||
|<div class="techcornersmall">[[Image:CornerT{{{tech|2}}}s.png|link=]]</div> | |||
| <!-- do nothing --> | |||
}}</td> | |||
<td> | <td> | ||
<div class="sbtt-header"> | <div class="sbtt-header"> | ||
Revision as of 11:18, 17 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.
| 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?)