Difference between revisions of "Template:ShipBoxTooltip"
From EVE University Wiki
m (Reformat source. Cleanup {{#css:}}, reduce indent, put every selector on its own line, put every property on its own line.) |
m (Reformat source content, reduce indent.) |
||
Line 74: | Line 74: | ||
|1=[[{{{shipname}}}|{{#if:{{{shipname}}}|{{{shipname|Unknown Ship}}}|Unknown Ship}}]] | |1=[[{{{shipname}}}|{{#if:{{{shipname}}}|{{{shipname|Unknown Ship}}}|Unknown Ship}}]] | ||
|2=<div class='uniwiki-ship-tooltip'> | |2=<div class='uniwiki-ship-tooltip'> | ||
− | + | <table cellspacing='0' cellpadding='0' style='width:100%;'> | |
− | + | <tr> | |
− | + | <td class='left' style='padding: 0 5px 0 0;width: 80px; position: relative;'>{{#if:{{{tech|}}}|<div class='techcornersmall'>[[Image:CornerT{{{tech|2}}}s.png|link=]]</div>|}}[[Image:{{{shipimg|no-image.png}}}|80x80px|middle|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]</td> | |
− | + | <td> | |
− | + | <div class='uniwiki-ship-tooltip-header'> | |
− | + | <div class='tooltip-header-shipname'>{{#if:{{{shipname}}}|{{{shipname|Unknown Ship}}}|Unknown Ship}}</div> | |
− | + | <div class='tooltip-header-category'><span style='color:orange;margin-right: 5px;'>{{{grouping|Unique Ships}}}</span><span>{{{hulltype|Unknown Class}}}</span></div> | |
− | + | </div> | |
− | + | <div class='uniwiki-ship-tooltip-middle' style='padding-bottom: 5px;display:{{#if:{{{highlights1|}}}|block|none}}'> | |
− | + | <div class='tt-hl'>[[Image:Icon_highlights.png|10x10px|middle|highlights]]{{{highlights1|}}}</div> | |
− | + | <div class='tt-hl' style='display:{{#if:{{{highlights2|}}}|block|none}}'>[[Image:Icon_highlights.png|10x10px|middle|highlights]]{{{highlights2|}}}</div> | |
− | + | <div class='tt-hl' style='display:{{#if:{{{highlights3|}}}|block|none}}'>[[Image:Icon_highlights.png|10x10px|middle|highlights]]{{{highlights3|}}}</div> | |
− | + | </div> | |
− | + | <div class='uniwiki-ship-tooltip-bottom'> | |
− | + | <div class='tt-att'>[[Image:icon_hi_slot.png|15x15px|middle|high slots]]{{{highs|0}}}<div style='display:inline;'>({{{launchers|0}}}/{{{turrets|0}}})</div></div> | |
− | + | <div class='tt-att'>[[Image:icon_mid_slot.png|15x15px|middle|middle slots]]{{{mediums|0}}}</div> | |
− | + | <div class='tt-att'>[[Image:icon_low_slot.png|15x15px|middle|low slots]]{{{lows|0}}}</div> | |
− | + | <div class='tt-att'>[[Image:icon_powergrid.png|15x15px|middle|powergrid]]{{{powergrid|0 MW}}}</div> | |
− | + | <div class='tt-att'>[[Image:icon_cpu.png|15x15px|middle|cpu output]]{{{cpu|0 tf}}}</div> | |
− | + | <div class='tt-att'>[[Image:Icon_velocity.png|15x15px|middle|max. velocity]]{{{maxvelocity|0 m/s}}}</div> | |
− | + | <div class='tt-att'>[[Image:Icon_capacity.png|15x15px|middle|cargo capacity]]{{{cargohold|0 m³}}}</div> | |
− | + | </div> | |
− | + | </td> | |
− | + | </tr> | |
− | + | </table> | |
</div> | </div> | ||
}}</onlyinclude></includeonly><noinclude> | }}</onlyinclude></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 11:32, 12 May 2022
For usage guide please see Ship Template
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?)