Template:Infobox block: Difference between revisions
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: | ||
<table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA;"> | |||
<tr> | |||
<td align="center" colspan=2 bgcolor="#CCCCCC" style="font-size:120%; font-weight: bold;">{{{name|{{BASEPAGENAME}}}}}</td> | |||
</tr> | |||
<tr valign="top"> | |||
| | <td align="center" colspan="2">[[image:{{{image|No image.png}}}|150px|center]]</td> | ||
| {{{type|?}}} | </tr> | ||
{{Block/row|label=Type|field={{{type|?}}}}} | |||
{{#switch:{{lc:{{{type}}}}}|solid block|solid|block = | |||
{{Block/row|label=Requires sunlight/dirt?|field={{{dirt|?}}}}} | |||
| | }} | ||
| | {{Block/row|label=Affected by gravity?|field={{{gravity|?}}}}} | ||
| {{{dirt|?}}} | {{Block/row|label=Allows light to pass through?|field={{{transparent|?}}}}} | ||
| | {{Block/row|label=Emits Light?|field={{{light|?}}}}} | ||
| | {{#switch:{{lc:{{{type}}}}}|fluid = | ||
| {{{transparent|?}}} | {{Block/row|label=Speed of fluid movement:|field={{{fluidspeed|?}}}}} | ||
| | {{Block/row|label=Speed of walking through:|field={{{movespeed|?}}}}} | ||
| | }} | ||
| {{{ | <tr> | ||
<td style="white-space: nowrap; font-weight: bold;">Data Value</td> | |||
<td style="white-space: nowrap;">{{{datadec|?}}} <sub>dec</sub> ({{{datahex|?}}} <sub>hex</sub>)</td> | |||
</table><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 | |
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 | ? |