Template:Infobox block: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
since I can't modify redstone, I'll do it here. Besides that, everything else has been updated to use the correct parameters
adding second image and inventory image
Line 6: Line 6:
   <td align="center" colspan="2">[[File:{{{image|No image.png}}}|150px|center]]</td>
   <td align="center" colspan="2">[[File:{{{image|No image.png}}}|150px|center]]</td>
  </tr>
  </tr>
{{#if:{{{image2}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{image2}}}|150px|center]]</td></tr>|}}
{{#if:{{{invimage}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>|}}
{{Block/row|label=Type|field={{{type|?}}}}}
{{Block/row|label=Type|field={{{type|?}}}}}
{{#switch:{{lc:{{{type}}}}}|solid block|solid|block =
{{#switch:{{lc:{{{type}}}}}|solid block|solid|block =
Line 60: Line 62:
| name =  
| name =  
| image =  
| image =  
| image2 =
| invimage =
| type =  
| type =  
| gravity =  
| gravity =  
Line 68: Line 72:
| datadec =  
| datadec =  
| datahex =  
| datahex =  
| fluidspeed =
| movespeed =
}}</pre>
}}</pre>



Revision as of 20:47, 11 October 2010

Template:Block/row

Template:Block/row Template:Block/row Template:Block/row Template:Block/row

Template:Block/row

Infobox block
File:No image.png
[[File:{{{image2}}}|150px|center]]
[[File:{{{invimage}}}|36px|center]]

Documentation

These usage notes will not be included in articles bearing this template.

This template provides a uniform design for block pages.

{{Block
| name = 
| image = 
| image2 = 
| invimage = 
| type = 
| gravity = 
| dirt = 
| transparent = 
| light = 
| tool =
| datadec = 
| datahex = 
| fluidspeed = 
| movespeed = 
}}
Parameter Function Default value
name Name of the block {{BASEPAGENAME}}
image Image of the block (should be approx. 150x150px) No image.png
type Type(solid block, solid, block, or fluid) ?
gravity Affected by gravity? ?
dirt Requires sunlight/dirt? ?
transparent Allows light to pass through? ?
light Emits Light? ?
tool Tool to use ?
datadec Decimal Data Value ?
datahex Hexadecimal Data Value ?
data Data Value (overrides dec and hex values) datadec and datahex