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

From StarMade Wiki
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Usage==
 
==Usage==
<pre>{{previewbox block
+
<pre>{{previewbox block/grey hull}}</pre>
|type=Grey Hull
 
|hp=75
 
|armor=0%
 
|ahp=50
 
|shp=5
 
|mass=0.05
 
|light=no
 
|dv=598
 
}}</pre>
 
  
 
The above produces the table to the right.   
 
The above produces the table to the right.   
  
This an alternate more compact to {{Tl|infobox block}} who make image and title link to the block page.
+
This is a compact alternative to {{Tl|infobox block}} who make image and title link to the block page.
  
{{infobox block
+
{{previewbox
  |type=Grey Hull
+
|type=Grey Hull
        |image=[[File:Blindage Gris.png]]
+
|name=
|hp=75
+
|bodystyle= width: 12em; padding: 0em;
|armor=0%
+
|above=[[Grey_Hull|Grey Hull]]
        |ahp=50
+
|abovestyle  = font-size: 120%; padding:2px;
        |shp=5
+
|image =[[File:Grey_Hull.png|100px|link=Grey_Hull]]
        |mass=0.05
+
|label3  = Type
|light=no
+
|data3    = {{{type|}}}
|dv=598
+
|label4  = Hit Points
 +
|data4    = 75
 +
|label5  = Armor
 +
|data5    = 0%
 +
|label6  = Armor HP
 +
|data6    = 50
 +
|label7  = Structure HP
 +
|data7    = 5
 +
|label8  = Mass
 +
|data8    = 0.05
 +
|label9  = Luminosity
 +
|data9    = no
 +
|label10 = Data Value (ID)
 +
|data10  = 598
 
}}
 
}}

Latest revision as of 21:44, 4 May 2018

Usage

{{previewbox block/grey hull}}

The above produces the table to the right.

This is a compact alternative to {{infobox block}} who make image and title link to the block page.

Template:Previewbox