Template:Infobox block: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
fixing
fixed added images
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:{{{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>|}}-->
{{#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 =

Revision as of 21:19, 11 October 2010

Template:Block/rowTemplate:Block/rowTemplate:Block/rowTemplate:Block/rowTemplate:Block/rowTemplate:Block/row
Infobox block
File:No image.png

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