Template:Infobox block: Difference between revisions
Jump to navigation
Jump to search
clummmmmsy me |
Added default values for parameters, expanded documentation, cleaned up a bit & made it look generally nicer :D |
||
Line 1: | Line 1: | ||
{| class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right;" | {| 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}}}}} | |||
| align="center" colspan=2 bgcolor="#CCCCCC" style="font-size:120%; | |||
| | |||
|- valign="top" | |- valign="top" | ||
| style="white-space: nowrap;" | | | align="center" colspan="2" | [[image:{{{image|No image.png}}}|150px|center]] | ||
| {{{light}}} | |- valign="top" style="background: #F9F9F9;" | ||
|- valign="top" | | style="white-space: nowrap; font-weight: bold;" | Type | ||
| style="white-space: nowrap;" | | | {{{type|?}}} | ||
| {{{datadec}}} <sub>dec</sub> ({{{datahex}}} <sub>hex</sub>) | |- valign="top" style="background: #FFFFFF;" | ||
| | | style="white-space: nowrap; font-weight: bold;" | Affected by gravity? | ||
| {{{gravity|?}}} | |||
|- valign="top" style="background: #F9F9F9;" | |||
| style="white-space: nowrap; font-weight: bold;" | Requires sunlight/dirt? | |||
| {{{dirt|?}}} | |||
|- valign="top" style="background: #FFFFFF;" | |||
| style="white-space: nowrap; font-weight: bold;" | Allows light to pass through? | |||
| {{{transparent|?}}} | |||
|- valign="top" style="background: #F9F9F9;" | |||
| style="white-space: nowrap; font-weight: bold;" | Emits Light? | |||
| {{{light|?}}} | |||
|- valign="top" style="background: #FFFFFF;" | |||
| style="white-space: nowrap; font-weight: bold;" | Data Value | |||
| style="white-space: nowrap;" | {{{datadec|?}}} <sub>dec</sub> ({{{datahex|?}}} <sub>hex</sub>) | |||
|}<noinclude> | |||
==Documentation== | |||
'''These usage notes will not be included in articles bearing this template.''' | |||
This template provides a uniform design for block pages. | This template provides a uniform design for block pages. | ||
<pre> | <pre> | ||
{{Block | {{Block | ||
|name= | | name = | ||
|image= | | image = | ||
|type= | | type = | ||
|gravity= | | gravity = | ||
|dirt= | | dirt = | ||
|transparent= | | transparent = | ||
|light= | | light = | ||
|datadec= | | datadec = | ||
|datahex= | | datahex = | ||
}}</pre | }}</pre> | ||
< | {| class=grid | ||
! Parameter | |||
! Function | |||
! Default value | |||
|- | |||
| <code>name</code> || Name of the block || <code><nowiki>{{BASEPAGENAME}}</nowiki></code> | |||
|- | |||
| <code>image</code> || Image of the block (should be approx. 150x150px) || [[:File:No image.png|No image.png]] | |||
|- | |||
| <code>type</code> || Type <sup>(Deprecated?)</sup> || ? | |||
|- | |||
| <code>gravity</code> || Affected by gravity? || ? | |||
|- | |||
| <code>dirt</code> || Requires sunlight/dirt? || ? | |||
|- | |||
| <code>transparent</code> || Allows light to pass through? || ? | |||
|- | |||
| <code>light</code> || Emits Light? || ? | |||
|- | |||
| <code>datadec</code> || Decimal Data Value || ? | |||
|- | |||
| <code>datahex</code> || Hexadecimal Data Value || ? | |||
|} | |||
[[Category:Templates]]</noinclude> |
Revision as of 16:25, 22 July 2010
Infobox block | |
Type | ? |
Affected by gravity? | ? |
Requires sunlight/dirt? | ? |
Allows light to pass through? | ? |
Emits Light? | ? |
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 | ? |