Difference between revisions of "Template:ShipBoxTooltip"

From EVE University Wiki
Jump to: navigation, search
(rebuild tooltip to accomodate the new tooltip tool)
(Undo revision 30488 by Sarah schneider (talk))
Line 1: Line 1:
 
For usage guide please see [[Template:Ship|Ship Template]]
 
For usage guide please see [[Template:Ship|Ship Template]]
 
<includeonly><onlyinclude>{{#css:
 
<includeonly><onlyinclude>{{#css:
.uniwiki-ship-tooltip
+
.ship-tooltip
 +
{
 +
font-size: 90%;
 +
line-height: 110%;
 +
width: 330px;
 +
}
 +
.ship-tooltip span
 +
{
 +
display: block;
 +
vertical-align: top;
 +
}
 +
.ship-tooltip .tt-left
 +
{
 +
display: inline-block;
 +
margin-right: 5px;
 +
width: 80px;
 +
}
 +
.ship-tooltip .tt-left img
 
{
 
{
 
 
 
}
 
}
.uniwiki-ship-tooltip table, .uniwiki-ship-tooltip tr, .uniwiki-ship-tooltip td
+
.ship-tooltip .tt-right
 +
{
 +
display: inline-block;
 +
width: 240px;
 +
}
 +
.ship-tooltip .tt-right .tt-header
 
{
 
{
padding: 0; margin : 0;
+
height: 20px;
 +
overflow: hidden;
 +
width: 240px;
 
}
 
}
.uniwiki-ship-tooltip-header
+
.ship-tooltip .tt-right .tt-header span,
 +
.ship-tooltip .tt-right .tt-subheader span
 
{
 
{
+
display: inline-block;
 
}
 
}
.uniwiki-ship-tooltip-header .tooltip-header-shipname
+
.ship-tooltip .tt-right .tt-header .tt-shipname
 
{
 
{
 
color: white;
 
color: white;
Line 21: Line 46:
 
height: 20px;
 
height: 20px;
 
line-height: 20px;
 
line-height: 20px;
 +
width: 180px;
 +
}
 +
.ship-tooltip .tt-right .tt-header .tt-race
 +
{
 +
float: right;
 +
height: 20px;
 +
line-height: 25px;
 
}
 
}
.uniwiki-ship-tooltip-header .tooltip-header-category
+
.ship-tooltip .tt-right .tt-subheader .tt-grouping,
 +
.ship-tooltip .tt-right .tt-subheader .tt-hulltype
 
{
 
{
 
font-size: 11px;
 
font-size: 11px;
Line 28: Line 61:
 
line-height: 10px;
 
line-height: 10px;
 
}
 
}
.uniwiki-ship-tooltip-middle
+
.ship-tooltip .tt-right .tt-contents
 
{
 
{
+
border-top: 1px solid #272727;
 +
padding-top: 2px;
 
}
 
}
.uniwiki-ship-tooltip-middle .tt-hl
+
.ship-tooltip .tt-right .tt-contents .tt-contentsrow .tt-hl
 
{
 
{
 
color: khaki;
 
color: khaki;
 +
display: inline-block;
 
font-size: 10px;
 
font-size: 10px;
 
height: 10px;
 
height: 10px;
 
line-height: 12px;
 
line-height: 12px;
 
}
 
}
.uniwiki-ship-tooltip-bottom
+
.ship-tooltip .tt-right .tt-contents .tt-contentsrow .tt-hl a
 
{
 
{
+
height: 10px;
 +
line-height: 10px;
 +
margin-right: 2px;
 +
vertical-align: top;
 
}
 
}
.uniwiki-ship-tooltip-bottom .tt-att
+
.ship-tooltip .tt-right .tt-contents .tt-contentsrow .tt-att
 
{
 
{
 
color: #9E8F75;
 
color: #9E8F75;
Line 56: Line 94:
 
{{Tooltip
 
{{Tooltip
 
|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=<span class='ship-tooltip'>
<table cellspacing='0' cellpadding='0'>
+
<span class='tt-left'>[[Image:{{{shipimg|no-image.png}}}|80x80px|middle|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]</span>
<tr>
+
<span class='tt-right'>
<td>[[Image:Falcon.jpg|80x80px|middle|Falcon]]</td>
+
<span class='tt-header'>
<td>
+
<span class='tt-shipname'>{{#if:{{{shipname}}}|{{{shipname|Unknown Ship}}}|Unknown Ship}}</span>
<div class='uniwiki-ship-tooltip-header'>
+
<span class='tt-race'>[[Image:{{#switch:{{{faction}}}|Amarr Empire=Logo_faction_amarr_empire.png |Caldari State=Logo_faction_caldari_state.png |Gallente Federation=Logo_faction_gallente_federation.png |Minmatar Republic=Logo_faction_minmatar_republic.png |Outer Ring Excavations=Logo_faction_outer_ring_excavations.png |#default=no-image.png}}|30x30px|middle|{{#if:{{{faction}}}|{{{faction|Unknown}}}|Unknown}}]]</span>
<div class='tooltip-header-shipname'>Falcon</div>
+
</span>
<div class='tooltip-header-category'><span style='color:orange;'>Recon Ships</span><span>Blackbird Class</span></div>
+
<span class='tt-subheader'>
</div>
+
<span class='tt-grouping'>[[:Category:{{{grouping|Unique Ships}}}|{{{grouping|Unique Ships}}}]]</span>
<div class='uniwiki-ship-tooltip-middle' style='border-bottom: 1px solid #272727;padding-bottom: 2px;display:{{#if:{{{highlights1|}}}|block|none}}'>
+
<span class='tt-hulltype'>{{{hulltype|Unknown Class}}}</span>
<div class='tt-hl'>[[Image:Icon_highlights.png|10x10px|middle|highlights]]{{{highlights1|}}}</div>
+
</span>
<div class='tt-hl'>[[Image:Icon_highlights.png|10x10px|middle|highlights]]{{{highlights2|}}}</div>
+
<span class='tt-contents'>
<div class='tt-hl'>[[Image:Icon_highlights.png|10x10px|middle|highlights]]{{{highlights3|}}}</div>
+
<span class='tt-contentsrow' style='border-bottom: 1px solid #272727;padding-bottom: 2px;display:{{#if:{{{highlights1|}}}|block|none}}'>
</div>
+
<span class='tt-hl'>[[Image:Icon_highlights.png|10x10px|middle|highlights]]{{{highlights1|}}}</span>
<div class='uniwiki-ship-tooltip-bottom'>
+
</span>
 +
<span class='tt-contentsrow'>
 
<span class='tt-att'>[[Image:icon_hi_slot.png|15x15px|middle|high slots]]{{{highs|0}}}<span style='display:inline;'>({{{launchers|0}}}/{{{turrets|0}}})</span></span>
 
<span class='tt-att'>[[Image:icon_hi_slot.png|15x15px|middle|high slots]]{{{highs|0}}}<span style='display:inline;'>({{{launchers|0}}}/{{{turrets|0}}})</span></span>
 
<span class='tt-att'>[[Image:icon_mid_slot.png|15x15px|middle|middle slots]]{{{mediums|0}}}</span>
 
<span class='tt-att'>[[Image:icon_mid_slot.png|15x15px|middle|middle slots]]{{{mediums|0}}}</span>
Line 78: Line 117:
 
<span class='tt-att'>[[Image:Icon_velocity.png|15x15px|middle|max. velocity]]{{{maxvelocity|0 m/s}}}</span>
 
<span class='tt-att'>[[Image:Icon_velocity.png|15x15px|middle|max. velocity]]{{{maxvelocity|0 m/s}}}</span>
 
<span class='tt-att'>[[Image:Icon_capacity.png|15x15px|middle|cargo capacity]]{{{cargohold|0 m&#179;}}}</span>
 
<span class='tt-att'>[[Image:Icon_capacity.png|15x15px|middle|cargo capacity]]{{{cargohold|0 m&#179;}}}</span>
</div>
+
</span>
 
</span>
 
</span>
</td>
+
</span>
</tr>
+
</span>
</table>
+
|3=1em
</div>
+
|4=0
 
}}</onlyinclude></includeonly>[[Category:Template]]
 
}}</onlyinclude></includeonly>[[Category:Template]]

Revision as of 09:14, 3 November 2011

For usage guide please see Ship Template