Difference between revisions of "Template:Infobox blockalt"

From StarMade Wiki
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
{{infobox block/{{PAGENAME}}
+
.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  = Nom original
+
visibility: hidden;
−
|data3    = {{{type|}}}
+
text-align: center;
−
|label4  = Points de vie
+
border-radius: 6px;
−
|data4    = {{{hp|}}}
+
padding: 5px 0;
−
|label5  = Armure
+
position: absolute;
−
|data5    = {{{armor|}}}
+
z-index: 1;
−
|label6  = Armure PV
+
bottom: 100%;
−
|data6    = {{{ahp}}}
+
left: 50%;
−
|label7  = Structure PV
+
margin-left: -60px;
−
|data7    = {{{shp}}}
+
opacity: 0;
−
|label8  = Masse
+
transition: opacity 0.5s;
−
|data8    = {{{mass|}}}
+
}
−
|label9  = Luminosité
+
 
−
|data9    = {{{light|}}}
+
.tooltipblock .info {
−
|label10 = Identifiant (ID)
+
visibility: visible;
−
|data10  = {{{dv|}}}
+
opacity: 1;
−
}}
+
}
−
<noinclude>
 
−
{{Documentation}}
 
−
</noinclude>
 

Latest revision as of 20: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; }