Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ShipBoxTooltip: Difference between revisions

Template page
Arin Mara (talk | contribs)
mNo edit summary
m Reformat source. Cleanup {{#css:}}, reduce indent, put every selector on its own line, put every property on its own line.
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 table, .uniwiki-ship-tooltip tr, .uniwiki-ship-tooltip td
 
{
.uniwiki-ship-tooltip table,
background-color: transparent;  
.uniwiki-ship-tooltip tr,
margin: 0; padding: 0;  
.uniwiki-ship-tooltip td {
vertical-align: top;
  background-color: transparent;  
}
  margin: 0;
.uniwiki-ship-tooltip .left a img
  padding: 0;  
{
  vertical-align: top;
border: 1px solid #272727;
}
}
 
.uniwiki-ship-tooltip-header
.uniwiki-ship-tooltip .left a img {
{
  border: 1px solid #272727;
border-bottom: 1px solid #272727;
}
margin-bottom: 5px;
 
padding-bottom: 5px;
.uniwiki-ship-tooltip-header {
text-align: center;
  border-bottom: 1px solid #272727;
}
  margin-bottom: 5px;
.uniwiki-ship-tooltip-header .tooltip-header-shipname
  padding-bottom: 5px;
{
  text-align: center;
color: white;
}
font-family: trebuchet MS;
 
font-size: 16px;
.uniwiki-ship-tooltip-header .tooltip-header-shipname {
font-variant: small-caps;
  color: white;
height: 20px;
  font-family: trebuchet MS;
line-height: 15px;
  font-size: 16px;
}
  font-variant: small-caps;
.uniwiki-ship-tooltip-header .tooltip-header-category
  height: 20px;
{
  line-height: 15px;
font-size: 11px;
}
height: 10px;
 
line-height: 10px;
.uniwiki-ship-tooltip-header .tooltip-header-category {
}
  font-size: 11px;
.uniwiki-ship-tooltip-middle .tt-hl
  height: 10px;
{
  line-height: 10px;
color: khaki;
}
font-size: 10px;
 
height: 10px;
.uniwiki-ship-tooltip-middle .tt-hl {
line-height: 12px;
  color: khaki;
}
  font-size: 10px;
.uniwiki-ship-tooltip-bottom
  height: 10px;
{
  line-height: 12px;
float: left;
}
width: 170px;
 
}
.uniwiki-ship-tooltip-bottom {
.uniwiki-ship-tooltip-bottom .tt-att
  float: left;
{
  width: 170px;
color: #9E8F75;
}
display: inline-block;
 
font-size: 10px;
.uniwiki-ship-tooltip-bottom .tt-att {
float:left;
  color: #9E8F75;
height: 13px;
  display: inline-block;
line-height: 15px;
  font-size: 10px;
margin-right: 3px;
  float:left;
padding-right: 3px;
  height: 13px;
}
  line-height: 15px;
.techcornersmall
  margin-right: 3px;
{
  padding-right: 3px;
width: 64px;
}
height: 64px;
 
position: absolute;
.techcornersmall {
top: 0px;
  width: 64px;
left: 0px;
  height: 64px;
margin-left: 2px;
  position: absolute;
margin-top: 0px;
  top: 0px;
}
  left: 0px;
  margin-left: 2px;
  margin-top: 0px;
}
 
}}
}}
{{Tooltip
{{Tooltip

Revision as of 11:05, 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.
This template is a part of the Ship Database template set and designed to be used in conjunction with the templates on that category and is not meant to be used or called directly!.
If you're looking on how to use the Ship template please see this page instead.

DO NOT EDIT THE CONTENTS OF THIS TEMPLATE IF YOU ARE NOT SURE ON WHAT YOU ARE DOING.
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
Some text {{Ship|Megathron Navy Issue}} more text.
gives...
Some text Megathron Navy Issue
Megathron Navy Issue
Megathron Navy Issue
Faction BattleshipsMegathron Class
highlightsHigh Amount of High Slots
highlightsHigh Amount of Low Slots
high slots8
(1/7)
middle slots4
low slots8
powergrid16,275 MW
cpu output630 tf
max. velocity135 m/sec
cargo capacity840 m³
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?)