Template:Block: Difference between revisions

From Voidscape
Jump to navigation Jump to search
m (Grouped numericals and booleans.)
(Made the Template much more straightforward.)
Line 15: Line 15:
|-
|-
!Blast Resistance
!Blast Resistance
|{{{blastres|}}}
|{{{blastres|0}}}


|-
|-
Line 32: Line 32:
!Renewable
!Renewable
|{{{renewable|No}}}
|{{{renewable|No}}}
|-
!Flammable
|{{{flammable|No}}}


|-
|-
Line 47: Line 43:
<pre>
<pre>
{{Block
{{Block
|name= (optional, defaults to the article's title)
|name= Optional (Defaults to the Page Title)
|image= (filelink)
|image= [[image:FileLink.png]]
|tool= (best tool for harvesting)
|tool= Best tool for harvesting (Defaults to N/A)
|hardness= (block hardness, defaults to -1 since negative values break tables)
|hardness= In-Code Block Hardness (Defaults to -1. Proper negative values break WikiTables)
|blastres= (blast resistance)
|blastres= In-Code Blast Resistance (Defaults to 0)
|luminance= (light emitted, defaults to 0)
|luminance= In-Code Illumination (Defaults to 0)
|stackable= (yes/no)
|stackable= Is the block stackable? (Yes/No)
|transparent= (defaults to no)
|transparent= Can you see through the block? (Yes/Partially/No)
|renewable= (yes/no)
|renewable= Can the block be obtained infinitely? (Yes/No)
|flammable= (defaults to no)
|id= In-Game ID (Use F3 + H for In-Game Tooltips)(See also: Template:Modid)
|id= (in-game id)
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 14:16, 13 November 2023

Block
Tool N/A
Hardness –1
Blast Resistance 0
Luminance 0
Stackable No
Transparency No
Renewable No
ID

Template for creating pages on Items. By definition, a Block is an object that may be placed or broken in the world.

Usage:

{{Block
|name= Optional (Defaults to the Page Title)
|image= [[image:FileLink.png]]
|tool= Best tool for harvesting (Defaults to N/A)
|hardness= In-Code Block Hardness (Defaults to -1. Proper negative values break WikiTables)
|blastres= In-Code Blast Resistance (Defaults to 0)
|luminance= In-Code Illumination (Defaults to 0)
|stackable= Is the block stackable? (Yes/No)
|transparent= Can you see through the block? (Yes/Partially/No)
|renewable= Can the block be obtained infinitely? (Yes/No)
|id= In-Game ID (Use F3 + H for In-Game Tooltips)(See also: Template:Modid)
}}