More actions
m Ship attributes: Remove middle option from Image because it is the default. Rewrite so slot info is always on 1 line. Same for powergrid and cpu. |
m CSS highlights: Move inline css to class. Refactor css |
||
| Line 36: | Line 36: | ||
} | } | ||
. | /* Highlights */ | ||
div.sbtt-highlights { | |||
padding-bottom: 5px; | |||
} | |||
.sbtt-highlights div { | |||
height: 10px; | |||
color: khaki; | color: khaki; | ||
font-size: 10px; | font-size: 10px; | ||
line-height: 12px; | line-height: 12px; | ||
} | } | ||
| Line 91: | Line 96: | ||
</div> --> | </div> --> | ||
{{#if: {{{highlights1|}}} | {{#if: {{{highlights1|}}} | ||
|<div class= | |<div class="sbtt-highlights"> | ||
<div class='tt-hl'>[[Image:Icon_highlights.png|10x10px]]{{{highlights1|}}}</div><!-- | <div class='tt-hl'>[[Image:Icon_highlights.png|10x10px]]{{{highlights1|}}}</div><!-- | ||
--> {{#if: {{{highlights2|}}}|<div | --> {{#if: {{{highlights2|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights2|}}}</div>}}<!-- | ||
--> {{#if: {{{highlights3|}}}|<div | --> {{#if: {{{highlights3|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights3|}}}</div>}}<!-- | ||
--> {{#if: {{{highlights4|}}}|<div | --> {{#if: {{{highlights4|}}}|<div>[[Image:Icon_highlights.png|10x10px]]{{{highlights4|}}}</div>}} | ||
</div> | </div> | ||
}} | }} | ||
Revision as of 16:14, 14 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?)