Template:Infobox block: Difference between revisions

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.'''