Template:Infobox block: Difference between revisions

From Modded Wiki
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%; " | '''{{{name}}}'''
|- valign="top"
|-
| style="white-space: nowrap;" | '''Type'''
| style="width:14em" | {{{type}}}
|-
| align="center" colspan="2" |[[image:{{{image}}}|250px|center]]
|- valign="top"
| style="white-space: nowrap;" | '''Affected by gravity?'''
| {{{gravity}}}
|- valign="top"
| style="white-space: nowrap;" | '''Requires sunlight/dirt?'''
| {{{dirt}}}
|- valign="top"
| style="white-space: nowrap;" | '''Allows light to pass through?'''
| {{{transparent}}}
|- valign="top"
|- valign="top"
| style="white-space: nowrap;" | '''Emits Light?'''
| 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;" | '''Data Value'''
| {{{type|?}}}
| {{{datadec}}} <sub>dec</sub> ({{{datahex}}} <sub>hex</sub>)
|- valign="top" style="background: #FFFFFF;"
|-
| style="white-space: nowrap; font-weight: bold;" | Affected by gravity?
|colspan="2+ |
| {{{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.'''


<noinclude><font color="#997070">
==Usage==
'''These usage notes will not be included in articles bearing this template.'''<p></p>
This template provides a uniform design for block pages.
This template provides a uniform design for block pages.
<pre>
<pre>
{{Block
{{Block
|name={{{name}}}
| name =  
|image={{{image}}}
| image =  
|type={{{type}}}
| type =  
|gravity={{{gravity}}}
| gravity =  
|dirt={{{dirt}}}
| dirt =  
|transparent={{{transparent}}}
| transparent =  
|light={{{light}}}
| light =  
|datadec={{{datadec}}}
| datadec =  
|datahex={{{datahex}}}
| datahex =  
}}</pre></font><br/><br/></noinclude>
}}</pre>


<noinclude>[[Category:Templates]]</noinclude>
{| 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
File:No image.png
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 ?