Difference between revisions of "Template:Infobox blockalt"

From StarMade Wiki
(Add documentation tag)
 
m
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{infobox
+
.tooltipblock {
|name        =
+
position: relative;
|bodystyle    = width: 21.5em; padding: 0em;
+
display: inline-block;
|above        = {{{name|{{{type|}}}}}}
+
border-bottom: 1px dotted black;
|abovestyle  = font-size: large; padding:5px;
+
}
|image        =
 
|imagestyle  =
 
|caption      =
 
|captionstyle =
 
|headerstyle  = padding: 0em; height: 1.8em;
 
|labelstyle  = padding: 0.1em 0.5em;
 
|datastyle    = padding: 0.1em 0.5em;
 
  
|data2    = {{{image|[[File:{{{type|}}}.png|150px]]}}}
+
.tooltipblock .info {
|label3  = Type
+
visibility: hidden;
|data3    = {{{type|}}}
+
text-align: center;
|label4  = Hitpoints
+
border-radius: 6px;
|data4    = {{{hp|}}}
+
padding: 5px 0;
|label5  = Armor
+
position: absolute;
|data5    = {{{armor|}}}
+
z-index: 1;
|label6  = Luminance
+
bottom: 100%;
|data6    = {{{light|}}}
+
left: 50%;
|label7  = Data Value
+
margin-left: -60px;
|data7    = {{{dv|}}}
+
opacity: 0;
}}
+
transition: opacity 0.5s;
<noinclude>
+
}
{{Documentation}}
+
 
</noinclude>
+
.tooltipblock .info {
 +
visibility: visible;
 +
opacity: 1;
 +
}

Latest revision as of 19:54, 14 May 2018

.tooltipblock { position: relative; display: inline-block; border-bottom: 1px dotted black; }

.tooltipblock .info { visibility: hidden; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 100%; left: 50%; margin-left: -60px; opacity: 0; transition: opacity 0.5s; }

.tooltipblock .info { visibility: visible; opacity: 1; }