Difference between revisions of "Template:Infobox block/doc"

From StarMade Wiki
m (1 version)
m (4 revisions imported)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
<pre>{{infobox block
 
<pre>{{infobox block
 
|type=Grey Hull
 
|type=Grey Hull
|hp=50
+
|hp=75
 
|armor=0%
 
|armor=0%
 +
|ahp=50
 +
|shp=5
 +
|mass=0.05
 
|light=no
 
|light=no
 
|dv=598
 
|dv=598
Line 14: Line 17:
 
{{infobox blockalt
 
{{infobox blockalt
 
   |type=Grey Hull
 
   |type=Grey Hull
|hp=50
+
        |image=[[File:Blindage Gris.png]]
 +
|hp=75
 
|armor=0%
 
|armor=0%
 +
        |ahp=50
 +
        |shp=5
 +
        |mass=0.05
 
|light=no
 
|light=no
 
|dv=598
 
|dv=598
 
}}
 
}}

Latest revision as of 17:01, 8 July 2016

Usage

{{infobox block
|type=Grey Hull
|hp=75
|armor=0%
|ahp=50
|shp=5
|mass=0.05
|light=no
|dv=598
}}

The above produces the table to the right. If the name of the page does not match the name of the block, the title will be incorrect.

There is an alternate version of the template - {{infobox blockalt}} - which does not take its name from the name of the current page.

.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; }