Difference between revisions of "Template:Block"

From The Twilight Forest Wiki
Jump to navigation Jump to search
(Revert per request of Androsa)
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="wikitable" id="blockInfobox" style="float:right; margin-left: 100px;"
<includeonly>{|class="wikitable" id="blockInfobox" style="float:right; margin-left: 100px;"
!colspan="2"|{{{name| {{BASEPAGENAME}} }}}
!colspan="2" style="font-size: 1.4em;"|{{{name| {{BASEPAGENAME}} }}}


|-
|-
|colspan="2" style="background-color: #222" |{{{image|}}}
|colspan="2" style="background-color: #222; padding: 35px;"|[[File:{{{image|Unknown.png}}}|center|128px]]


|-
|-
!Transparency
!Transparency
|{{{transparent|No}}}
|{{{transparent|None}}}


|-
|-
!Luminance
!Luminance
|{{{luminance|None}}}
|{{{luminance|None}}}
|-
!Hardness
|{{{hardness|}}}


|-
|-
Line 19: Line 23:
|-
|-
!Tool
!Tool
|{{{tool|}}}
|{{{tool|Unknown}}} [[File:{{{tool|Unknown}}}.png|link=|32px]]


|-
|-
Line 31: Line 35:
|-
|-
!Flammable
!Flammable
|{{{flammable|no}}}
|{{{flammable|No}}}


|-
|-
!ID
!ID
|{{{id|}}}
|twilightforest:{{{id|}}}
 
|}</includeonly><noinclude>
|-
This template is used to make a nice table for anything relating to Blocks and their related pages.<br>
!ID (1.13+)
Here is a general breakdown of how to use this template:
|{{{newid|}}}
|}<noinclude>
 
Usage:
<pre>
<pre>
{{Block
{{Block
|name= (optional, defaults to the article's title)
|name=       <!-- The Name of this Block (Optional) -->
|image= (filelink)
|image=       <!-- The Image File of this Block      -->
|transparent= (defaults to no)
|transparent= <!-- Is this Block Transparent? Yes/No  -->
|luminance= (light emitted, defaults to none)
|luminance=   <!-- The Amount of Light Emitted        -->
|blastres= (blast resistance)
|hardness=   <!-- The Block Hardness Value          -->
|tool= (best tool for harvesting)
|blastres=   <!-- The Blast Resistance Value        -->
|renewable= (yes/no)
|stackable=   <!-- Is this Block Stackable? How many? -->
|stackable= (yes/no)
|renewable=   <!-- Is this Block Renewable? Yes/No    -->
|flammable= (defaults to no)
|flammable=   <!-- Is this Block Flammable? Yes/No    -->
|id= (in-game id)
|id=         <!-- The ID of the Block                -->
|newid= (new in-game id, 1.13+)
}}
}}
</pre>
</pre>
{{Block
|name=Block of Fiery Metal
|image=Block of Fiery Metal.png
|hardness=5
|blastres=6
|tool=Iron Pickaxe
|renewable=No
|stackable=Yes <small>(64)</small>
|id=fiery_block
}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 11:41, 13 April 2024

This template is used to make a nice table for anything relating to Blocks and their related pages.
Here is a general breakdown of how to use this template:

{{Block
|name=        <!-- The Name of this Block (Optional)  -->
|image=       <!-- The Image File of this Block       -->
|transparent= <!-- Is this Block Transparent? Yes/No  -->
|luminance=   <!-- The Amount of Light Emitted        -->
|hardness=    <!-- The Block Hardness Value           -->
|blastres=    <!-- The Blast Resistance Value         -->
|stackable=   <!-- Is this Block Stackable? How many? -->
|renewable=   <!-- Is this Block Renewable? Yes/No    -->
|flammable=   <!-- Is this Block Flammable? Yes/No    -->
|id=          <!-- The ID of the Block                -->
}}
Block of Fiery Metal
Block of Fiery Metal.png
Transparency None
Luminance None
Hardness 5
Blast Resistance 6
Tool Iron Pickaxe Iron Pickaxe.png
Renewable No
Stackable Yes (64)
Flammable No
ID twilightforest:fiery_block