Template:Infobox block: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
see http://www.mediawiki.org/wiki/Help:Magic_words#Namespaces_2 for more info; prohibits category from appearing on anything but main name space(article space)
update; consolidate Template:Block and Template:Fluid
Line 1: Line 1:
{| class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA;"
<table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA;">
| align="center" colspan=2 bgcolor="#CCCCCC" style="font-size:120%; font-weight: bold;" | {{{name|{{BASEPAGENAME}}}}}
<tr>
|- valign="top"
  <td align="center" colspan=2 bgcolor="#CCCCCC" style="font-size:120%; font-weight: bold;">{{{name|{{BASEPAGENAME}}}}}</td>
| align="center" colspan="2" | [[image:{{{image|No image.png}}}|150px|center]]
</tr>
|- valign="top" style="background: #F9F9F9;"
<tr valign="top">
| style="white-space: nowrap; font-weight: bold;" | Type
  <td align="center" colspan="2">[[image:{{{image|No image.png}}}|150px|center]]</td>
| {{{type|?}}}
</tr>
|- valign="top" style="background: #FFFFFF;"
{{Block/row|label=Type|field={{{type|?}}}}}
| style="white-space: nowrap; font-weight: bold;" | Affected by gravity?
{{#switch:{{lc:{{{type}}}}}|solid block|solid|block =
| {{{gravity|?}}}
{{Block/row|label=Requires sunlight/dirt?|field={{{dirt|?}}}}}
|- valign="top" style="background: #F9F9F9;"
}}
| style="white-space: nowrap; font-weight: bold;" | Requires sunlight/dirt?
{{Block/row|label=Affected by gravity?|field={{{gravity|?}}}}}
| {{{dirt|?}}}
{{Block/row|label=Allows light to pass through?|field={{{transparent|?}}}}}
|- valign="top" style="background: #FFFFFF;"
{{Block/row|label=Emits Light?|field={{{light|?}}}}}
| style="white-space: nowrap; font-weight: bold;" | Allows light to pass through?
{{#switch:{{lc:{{{type}}}}}|fluid =
| {{{transparent|?}}}
{{Block/row|label=Speed of fluid movement:|field={{{fluidspeed|?}}}}}
|- valign="top" style="background: #F9F9F9;"
{{Block/row|label=Speed of walking through:|field={{{movespeed|?}}}}}
| style="white-space: nowrap; font-weight: bold;" | Emits Light?
}}
| {{{light|?}}}
<tr>
|- valign="top" style="background: #FFFFFF;"
  <td style="white-space: nowrap; font-weight: bold;">Data Value</td>
| style="white-space: nowrap; font-weight: bold;" | Data Value
  <td style="white-space: nowrap;">{{{datadec|?}}} <sub>dec</sub> ({{{datahex|?}}} <sub>hex</sub>)</td>
| style="white-space: nowrap;" | {{{datadec|?}}} <sub>dec</sub> ({{{datahex|?}}} <sub>hex</sub>)
</table><noinclude>
|}<noinclude>
==Documentation==
==Documentation==
'''These usage notes will not be included in articles bearing this template.'''
'''These usage notes will not be included in articles bearing this template.'''

Revision as of 00:08, 27 August 2010

Template:Block/rowTemplate:Block/rowTemplate:Block/rowTemplate:Block/row
Infobox block
File:No image.png
Data Value ? dec (? hex)

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 = 
| type = 
| gravity = 
| dirt = 
| transparent = 
| light = 
| datadec = 
| datahex = 
}}
Parameter Function Default value
name Name of the block {{BASEPAGENAME}}
image Image of the block (should be approx. 150x150px) No image.png
type Type (Deprecated?) ?
gravity Affected by gravity? ?
dirt Requires sunlight/dirt? ?
transparent Allows light to pass through? ?
light Emits Light? ?
datadec Decimal Data Value ?
datahex Hexadecimal Data Value ?