Difference between revisions of "Template:Block"

From Electrical Age
Jump to: navigation, search
Line 39: Line 39:
 
<noinclude>
 
<noinclude>
 
{{db-g7}}
 
{{db-g7}}
=== Usage ===
 
<br />
 
{{Block
 
| blockname=Signal Cable
 
| type=Solid Block
 
| poweredby=Electrical Source
 
| requirements=Water nearby
 
| physics=No
 
| transparency=No
 
| Luminance=Yes
 
| blastresist=2.5
 
| hardness=1
 
| tool=Wrench
 
| stackable=Yes (64)
 
| flammable=No
 
| drops=Coal
 
| data=dec: 00 hex: 00 bin: 00
 
}}
 
When creating a page about a block, use this template to quickly list all of the block's important information. This can be also called "infobox". The syntax may look like this:
 
<code>
 
    {{Block<br />
 
    | blockname=Signal Cable<br />
 
    | type=Solid Block<br />
 
    | poweredby=Electrical Source<br />
 
    | requirements=Water nearby<br />
 
    | physics=No<br />
 
    | transparency=No<br />
 
    | Luminance=Yes<br />
 
    | blastresist=2.5<br />
 
    | hardness=1<br />
 
    | tool=Wrench<br />
 
    | stackable=Yes (64)<br />
 
    | flammable=No<br />
 
    | drops=Coal<br />
 
    | data=dec: 00 hex: 00 bin: 00<br />
 
    | blockname=Cable<br />
 
    }}
 
</code>
 
and will produce infobox similar to the one on the right of this page. Note, that the data on this page are fake, and are not similar to official ones!
 
</noinclude>
 

Revision as of 20:03, 13 August 2014


Template:Db-g7