Difference between revisions of "Template:Infobox block"

From StarMade Wiki
m (1 version)
(Infobox block translation)
Line 13: Line 13:
  
 
|data2    = {{{image|[[File:{{PAGENAME}}.png|150px]]}}}
 
|data2    = {{{image|[[File:{{PAGENAME}}.png|150px]]}}}
|label3  = Type
+
|label3  = Nom original
 
|data3    = {{{type|}}}
 
|data3    = {{{type|}}}
|label4  = Hit Points
+
|label4  = Points de vie
 
|data4    = {{{hp|}}}
 
|data4    = {{{hp|}}}
|label5  = Armor
+
|label5  = Armure
 
|data5    = {{{armor|}}}
 
|data5    = {{{armor|}}}
 
|label6  = Mass
 
|label6  = Mass
 
|data6    = {{{mass|}}}
 
|data6    = {{{mass|}}}
|label7  = Luminosity
+
|label7  = Luminosité
 
|data7    = {{{light|}}}
 
|data7    = {{{light|}}}
|label8  = Data Value (ID)
+
|label8  = Identifiant (ID)
 
|data8    = {{{dv|}}}
 
|data8    = {{{dv|}}}
 
}}<noinclude>{{Documentation}}</noinclude>
 
}}<noinclude>{{Documentation}}</noinclude>

Revision as of 08:11, 21 May 2015

Infobox block
150px
[view] [edit] [history] [[[:Template:Purge]]] 50px Template documentation

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