Difference between revisions of "Template:Blocks"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{| class="wikitable navbox mw-collapsible {{#switch: {{{1}}}
 
{| class="wikitable navbox mw-collapsible {{#switch: {{{1}}}
| building
+
| Building
| decorations
+
| Decorations
| food
+
| Food
| redstone
+
| Redstone
| transportation
+
| Transportation
| brewing
+
| Brewing
| misc =
+
| Misc =
 
| #default = mw-collapsed}}" id="blocks-nav"
 
| #default = mw-collapsed}}" id="blocks-nav"
 
! Blocks
 
! Blocks
 
|-
 
|-
 
|
 
|
{| class="wikitable navbox mw-collapsible {{#if: {{{1|building}}}||mw-collapsed}}"
+
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Building||mw-collapsed}}"
! colspan="2"| Building blocks
+
! colspan="2"| {{I|Wooden Planks|}} Building blocks
 
|-
 
|-
 
! Building blocks
 
! Building blocks
 
|
 
|
* {{Ilink|Stone}}
+
* {{Icon link|Stone}}
* {{Ilink|Cobblestone}}
+
* {{Icon link|Cobblestone}}
* {{Ilink|Stone Brick}}
+
* {{Icon link|Stone Brick}}
* {{Ilink|Moss Stone}}
+
* {{Icon link|Moss Stone}}
* {{Ilink|Obsidian}}
+
* {{Icon link|Obsidian}}
* {{Ilink|Bedrock}}
+
* {{Icon link|Bedrock}}
* {{Ilink|Dirt}}
+
* {{Icon link|Dirt}}
* {{Ilink|Grass}}
+
* {{Icon link|Grass}}
* {{Ilink|Coarse Dirt}}
+
* {{Icon link|Coarse Dirt}}
* {{Ilink|Farmland}}
+
* {{Icon link|Farmland}}
* {{Ilink|Mycelium}}
+
* {{Icon link|Mycelium}}
* {{Ilink|Gold Soil}}
+
* {{Icon link|Gold Soil}}
* {{Ilink|Wood}}  ({{Ilink|Wood|Wood#Trees|Tree Wood}})
+
* {{Icon link|Wood}}  ({{Icon link|Wood|Wood#Trees|Tree Wood}})
* {{Ilink|Wooden Planks}}
+
* {{Icon link|Wooden Planks}}
* {{Ilink|Barrier}}
+
* {{Icon link|Barrier}}
* {{Ilink|Coal Ore}}
+
* {{Icon link|Coal Ore}}
* {{Ilink|Iron Ore}}
+
* {{Icon link|Iron Ore}}
* {{Ilink|Gold Ore}}
+
* {{Icon link|Gold Ore}}
* {{Ilink|Diamond Ore}}
+
* {{Icon link|Diamond Ore}}
* {{Ilink|Redstone Ore}}
+
* {{Icon link|Redstone Ore}}
* {{Ilink|Odd Rock Ore}}
+
* {{Icon link|Odd Rock Ore}}
* {{Ilink|Lapis Lazuli Ore}}
+
* {{Icon link|Lapis Lazuli Ore}}
* {{Ilink|Topaz Ore}}
+
* {{Icon link|Topaz Ore}}
* {{Ilink|Ender Gem Ore}}
+
* {{Icon link|Ender Gem Ore}}
* {{Ilink|Block of Topaz}}
+
* {{Icon link|Block of Topaz}}
* {{Ilink|Iron Block}}
+
* {{Icon link|Iron Block}}
* {{Ilink|Gold Block}}
+
* {{Icon link|Gold Block}}
* {{Ilink|Diamond Block}}
+
* {{Icon link|Diamond Block}}
* {{Ilink|Lapis Lazuli Block}}
+
* {{Icon link|Lapis Lazuli Block}}
* {{Ilink|Coal Block}}
+
* {{Icon link|Coal Block}}
* {{Ilink|Sand}}
+
* {{Icon link|Sand}}
* {{Ilink|Sandstone}}
+
* {{Icon link|Sandstone}}
* {{Ilink|Clay Block}}
+
* {{Icon link|Clay Block}}
* {{Ilink|Brick}}
+
* {{Icon link|Bricks}}
* {{Ilink|Bricks}}
+
* {{Icon link|Snow Block}}
* {{Ilink|Snow Block}}
+
* {{Icon link|Ice}}
* {{Ilink|Ice}}
+
* {{Icon link|Frosted Ice}}
* {{Ilink|Frosted Ice}}
+
* {{Icon link|Gravel}}
* {{Ilink|Gravel}}
+
* {{Icon link|Bookshelf}}
* {{Ilink|Bookshelf}}
+
* {{Icon link|Stairs}}
* {{Ilink|Cobblestone Stairs}}
+
* {{Icon link|Slabs}}
* {{Ilink|Stone Stairs}}
+
* {{Icon link|Wool}}
* {{Ilink|Nether Brick Stairs}}
+
* {{Icon link|Glass}}
* {{Ilink|Brick Stairs}}
+
* {{Icon link|Portal Stone}}
* {{Ilink|Wooden Planks Stairs}}
+
* {{Icon link|Netherrack}}
* {{Ilink|Stone Brick Stairs}}
+
* {{Icon link|Nether Bricks}}
* {{Ilink|Iron Stairs}}
+
* {{Icon link|Red Nether Bricks}}
* {{Ilink|Gold Stairs}}
+
* {{Icon link|Glowstone}}
* {{Ilink|Diamond Stairs}}
+
* {{Icon link|Magma Block}}
* {{Ilink|Obsidian Stairs}}
+
* {{Icon link|Nether Wart Block}}
* {{Ilink|Bedrock Stairs}}
+
* {{Icon link|Soul Sand}}
* {{Ilink|Bamboo Stairs}}
+
* {{Icon link|Bone Block}}
* {{Ilink|Cobblestone Slab}}
+
* {{Icon link|Enderstone}}
* {{Ilink|Stone Slab}}
+
* {{Icon link|Portal Frame}}
* {{Ilink|Nether Brick Slab}}
+
* {{Icon link|Dragon Scale Block}}
* {{Ilink|Brick Slab}}
+
* {{Icon link|Healing Crystal}}
* {{Ilink|Wooden Planks Slab}}
+
* {{Icon link|Bamboo Block}}
* {{Ilink|Stone Brick Slab}}
 
* {{Ilink|Iron Slab}}
 
* {{Ilink|Gold Slab}}
 
* {{Ilink|Diamond Slab}}
 
* {{Ilink|Obsidian Slab}}
 
* {{Ilink|Bedrock Slab}}
 
* {{Ilink|Bamboo Slab}}
 
* {{Ilink|White Wool}}
 
* {{Ilink|Light Gray Wool}}
 
* {{Ilink|Gray Wool}}
 
* {{Ilink|Black Wool}}
 
* {{Ilink|Brown Wool}}
 
* {{Ilink|Purple Wool}}
 
* {{Ilink|Magenta Wool}}
 
* {{Ilink|Red Wool}}
 
* {{Ilink|Orange Wool}}
 
* {{Ilink|Pink Wool}}
 
* {{Ilink|Yellow Wool}}
 
* {{Ilink|Light Green Wool}}
 
* {{Ilink|Green Wool}}
 
* {{Ilink|Cyan Wool}}
 
* {{Ilink|Light Blue Wool}}
 
* {{Ilink|Blue Wool}}
 
* {{Ilink|Rainbow Wool}}
 
* {{Ilink|Glass}}
 
* {{Ilink|White Glass}}
 
* {{Ilink|Light Gray Glass}}
 
* {{Ilink|Gray Glass}}
 
* {{Ilink|Black Glass}}
 
* {{Ilink|Brown Glass}}
 
* {{Ilink|Purple Glass}}
 
* {{Ilink|Magenta Glass}}
 
* {{Ilink|Red Glass}}
 
* {{Ilink|Orange Glass}}
 
* {{Ilink|Pink Glass}}
 
* {{Ilink|Yellow Glass}}
 
* {{Ilink|Light Green Glass}}
 
* {{Ilink|Green Glass}}
 
* {{Ilink|Cyan Glass}}
 
* {{Ilink|Light Blue Glass}}
 
* {{Ilink|Blue Glass}}
 
* {{Ilink|Portal Stone}}
 
* {{Ilink|Netherrack}}
 
* {{Ilink|Nether Bricks}}
 
* {{Ilink|Red Nether Bricks}}
 
* {{Ilink|Glowstone}}
 
* {{Ilink|Magma Block}}
 
* {{Ilink|Nether Wart Block}}
 
* {{Ilink|Soul Sand}}
 
* {{Ilink|Bone Block}}
 
* {{Ilink|Enderstone}}
 
* {{Ilink|Portal Frame}}
 
* {{Ilink|Dragon Scale Block}}
 
* {{Ilink|Healing Crystal}}
 
* {{Ilink|Bamboo Block}}
 
 
|}
 
|}
{| class="wikitable navbox mw-collapsible {{#if: {{{1|decorations}}}||mw-collapsed}}"
+
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Decorations||mw-collapsed}}"
! colspan="2"| Decorations
+
! colspan="2"| {{I|Shrub|}} Decorations
 
|-
 
|-
 
! Decorations
 
! Decorations
 
|
 
|
* {{Ilink|Crafting Table}}
+
* {{Icon link|Crafting Table}}
* {{Ilink|Furnace}}
+
* {{Icon link|Furnace}}
* {{Ilink|Chest}}
+
* {{Icon link|Chest}}
* {{Ilink|Ender Chest}}
+
* {{Icon link|Ender Chest}}
* {{Ilink|Enchantment Table}}
+
* {{Icon link|Enchantment Table}}
* {{Ilink|Anvil}}
+
* {{Icon link|Anvil}}
* {{Ilink|Name Tag}}
+
* {{Icon link|Bed}}
* {{Ilink|Bed}}
+
* {{Icon link|Doors|Door|Door}}
* {{Ilink|Wooden Door}}
+
* {{Icon link|Trap Door}}
* {{Ilink|Iron Door}}
+
* {{Icon link|Sign}}
* {{Ilink|Bamboo Door}}
+
* {{Icon link|Sapling}}
* {{Ilink|Trap Door}}
+
* {{Icon link|Leaves}}
* {{Ilink|Sign}}
+
* ({{Icon link|Apple in Leaves|Leaves}}
* {{Ilink|Sapling}}
+
* {{Icon link|Orange in Leaves|Leaves}}
* {{Ilink|Leaves}}
+
* {{Icon link|Golden Apple in Leaves|Leaves}}
* {{Ilink|Apple in Leaves}}
+
* {{Icon link|Lemon in Leaves|Leaves}})
* {{Ilink|Orange in Leaves}}
+
* {{Icon link|Ladder}}
* {{Ilink|Golden Apple in Leaves}}
+
* {{Icon link|Wooden Fence|Fence|Fence}}
* {{Ilink|Lemon in Leaves}}
+
* {{Icon link|Wooden Fence Gate|Fence Gate|Fence Gate}}
* {{Ilink|Stick}}
+
* {{Icon link|Iron Bars}}
* {{Ilink|Ladder}}
+
* {{Icon link|Torch}}
* {{Ilink|Wooden Fence}}
+
* {{Icon link|Ender Dragon Egg}}
* {{Ilink|Wooden Fence Gate}}
+
* {{Icon link|Long Grass}}
* {{Ilink|Nether Brick Fence}}
+
* {{Icon link|Shrub}}
* {{Ilink|Nether Brick Fence Gate}}
+
* {{Icon link|Desert Shrub}}
* {{Ilink|Iron Bars}}
+
* {{Icon link|Red Flower|Flowers|Flowers}}
* {{Ilink|Torch}}
+
* {{Icon link|Red Mushroom|Mushrooms|Mushrooms}}
* {{Ilink|Ender Dragon Egg}}
+
* {{Icon link|Red Mushroom Cap|Mushroom Cap|Mushroom Cap}}
* {{Ilink|Long Grass}}
+
* {{Icon link|Red Mushroom Stem|Mushroom Stem|Mushroom Stem}}
* {{Ilink|Shrub}}
+
* {{Icon link|Bamboo}}
* {{Ilink|Desert Shrub}}
+
* {{Icon link|Cactus}}
* {{Ilink|Yellow Flower}}
+
* {{Icon link|Seaweed}}
* {{Ilink|Red Flower}}
+
* {{Icon link|Lily Pad}}
* {{Ilink|Brown Mushroom}}
+
* {{Icon link|Coral}}
* {{Ilink|Red Mushroom}}
+
* {{Icon link|Coral Lantern}}
* {{Ilink|Red Mushroom Cap}}
+
* {{Icon link|Cobweb}}
* {{Ilink|Red Mushroom Stem}}
+
* {{Icon link|Rope}}
* {{Ilink|Brown Mushroom Cap}}
+
* {{Icon link|Monster Spawner}}
* {{Ilink|Brown Mushroom Stem}}
+
* {{Icon link|Odd Torch}}
* {{Ilink|Bamboo}}
+
* {{Icon link|Carpets|Carpet|Carpets}}
* {{Ilink|Cactus}}
+
* {{Icon link|Backdrops}}
* {{Ilink|Seaweed}}
 
* {{Ilink|Lily Pad}}
 
* {{Ilink|Coral}}
 
* {{Ilink|Coral Lantern}}
 
* {{Ilink|Empty Bucket}}
 
* {{Ilink|Bucket of Water}}
 
* {{Ilink|Bucket of Lava}}
 
* {{Ilink|Bucket of Acid}}
 
* {{Ilink|Cobweb}}
 
* {{Ilink|Rope}}
 
* {{Ilink|Monster Spawner}}
 
* {{Ilink|Moss}}
 
* {{Ilink|Odd Torch}}
 
* {{Ilink|White Carpet}}
 
* {{Ilink|Light Gray Carpet}}
 
* {{Ilink|Gray Carpet}}
 
* {{Ilink|Black Carpet}}
 
* {{Ilink|Brown Carpet}}
 
* {{Ilink|Purple Carpet}}
 
* {{Ilink|Magenta Carpet}}
 
* {{Ilink|Red Carpet}}
 
* {{Ilink|Orange Carpet}}
 
* {{Ilink|Pink Carpet}}
 
* {{Ilink|Yellow Carpet}}
 
* {{Ilink|Light Green Carpet}}
 
* {{Ilink|Green Carpet}}
 
* {{Ilink|Cyan Carpet}}
 
* {{Ilink|Light Blue Carpet}}
 
* {{Ilink|Blue Carpet}}
 
* {{Ilink|Rainbow Carpet}}
 
* {{Ilink|Obsidian Backdrop}}
 
* {{Ilink|Dirt Backdrop}}
 
* {{Ilink|Wooden Planks Backdrop}}
 
* {{Ilink|Stone Backdrop}}
 
* {{Ilink|Cobblestone Backdrop}}
 
* {{Ilink|Brick Backdrop}}
 
* {{Ilink|Nether Brick Backdrop}}
 
* {{Ilink|Stone Brick Backdrop}}
 
* {{Ilink|Bookshelf Backdrop}}
 
* {{Ilink|Bamboo Backdrop}}
 
 
|}
 
|}
{| class="wikitable navbox mw-collapsible {{#if: {{{1|food}}}||mw-collapsed}}"
+
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Food||mw-collapsed}}"
! colspan="2"| Food and Crops
+
! colspan="2"| {{I|Bread|}} Food and Crops
 
|-
 
|-
 
! Food and Crops
 
! Food and Crops
 
|
 
|
* {{Ilink|Lemon Block}}
+
* {{Icon link|Lemon Block}}
* {{Ilink|Sugarcane}}
+
* {{Icon link|Sugarcane}}
* {{Ilink|Cake}}
+
* {{Icon link|Cake}}
* {{Ilink|Cactus Cake}}
+
* {{Icon link|Cactus Cake}}
* {{Ilink|Melon Block}}
+
* {{Icon link|Melon Block}}
* {{Ilink|Jack-o'-Lantern}}
+
* {{Icon link|Pumpkin}}
 +
* {{Icon link|Jack-o'-Lantern}}
 
|}
 
|}
{| class="wikitable navbox mw-collapsible {{#if: {{{1|redstone}}}||mw-collapsed}}"
+
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Redstone||mw-collapsed}}"
! colspan="2"| Redstone
+
! colspan="2"| {{I|Redstone Dust|}}Redstone
 
|-
 
|-
 
! Redstone
 
! Redstone
 
|
 
|
* {{Ilink|Redstone Dust}}
+
* {{Icon link|Redstone Torch}}
* {{Ilink|Redstone Torch}}
+
* {{Icon link|Button}}
* {{Ilink|Button}}
+
* {{Icon link|Pressure Plate}}
* {{Ilink|Wooden Pressure Plate}}
+
* {{Icon link|Lever}}
* {{Ilink|Pressure Plate}}
+
* {{Icon link|Piston}}
* {{Ilink|Lever}}
+
* {{Icon link|Sticky Piston}}
* {{Ilink|Piston}}
+
* {{Icon link|Dispenser}}
* {{Ilink|Sitcky Piston}}
+
* {{Icon link|Dropper}}
* {{Ilink|Dispenser}}
+
* {{Icon link|Redstone Lamp}}
* {{Ilink|Dropper}}
+
* {{Icon link|Note Block}}
* {{Ilink|Redstone Lamp}}
+
* {{Icon link|TNT}}
* {{Ilink|Note Block}}
 
* {{Ilink|TNT}}
 
 
|}
 
|}
{| class="wikitable navbox mw-collapsible {{#if: {{{1|transportation}}}||mw-collapsed}}"
+
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Transportation||mw-collapsed}}"
! colspan="2"| Transportation
+
! colspan="2"| {{I|Powered Minecart Rail|}} Transportation
 
|-
 
|-
 
! Transportation
 
! Transportation
 
|
 
|
* {{Ilink|Raft}}
+
* {{Icon link|Raft}}
* {{Ilink|Minecart}}
+
* {{Icon link|Minecart}} ({{Icon link|TNT Minecart|TNT Minecart|TNT}}
* {{Ilink|TNT Minecart}}
+
* {{Icon link|Furnace Minecart|Furnace Minecart|Furnace}}
* {{Ilink|Furnace Minecart}}
+
* {{Icon link|Chest Minecart|Chest Minecart|Chest}})
* {{Ilink|Chest Minecart}}
+
* {{Icon link|Minecart Rail}} ({{Icon link|Activator Minecart Rail|Activator Minecart Rail|Activator}}
* {{Ilink|Minecart Rail}}
+
* {{Icon link|Detector Minecart Rail|Detector Minecart Rail|Detector}}
* {{Ilink|Activator Minecart Rail}}
+
* {{Icon link|Powered Minecart Rail|Powered Minecart Rail|Powered}})
* {{Ilink|Detector Minecart Rail}}
 
* {{Ilink|Powered Minecart Rail}}
 
* {{Ilink|Saddle}}
 
 
|}
 
|}
{| class="wikitable navbox mw-collapsible {{#if: {{{1|brewing}}}||mw-collapsed}}"
+
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Brewing||mw-collapsed}}"
! colspan="2"| Brewing
+
! colspan="2"| {{I|Healing Potion|}} Brewing
 
|-
 
|-
 
! Brewing
 
! Brewing
 
|
 
|
* {{Ilink|Brewing Stand}}
+
* {{Icon link|Brewing Stand}}
* {{Ilink|Cauldron}}
+
* {{Icon link|Cauldron}}
 
|}
 
|}
{| class="wikitable navbox mw-collapsible {{#if: {{{1|misc}}}||mw-collapsed}}"
+
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Misc||mw-collapsed}}"
! colspan="2"| Miscellaneous Items
+
! colspan="2"| {{I|Chicken Egg|}} Miscellaneous Items
 
|-
 
|-
! Miscellaneous Items
+
! Heads
 
|
 
|
* {{Ilink|Slime Block}}
+
* {{Icon link|Slime Block}}
* {{Ilink|Light Gray Balloon}}
+
* {{Icon link|Mob Head}}
* {{Ilink|Gray Balloon}}
+
* {{Icon link|J}}
* {{Ilink|Black Balloon}}
 
* {{Ilink|Brown Balloon}}
 
* {{Ilink|Purple Balloon}}
 
* {{Ilink|Magenta Balloon}}
 
* {{Ilink|Red Balloon}}
 
* {{Ilink|Orange Balloon}}
 
* {{Ilink|Pink Balloon}}
 
* {{Ilink|Yellow Balloon}}
 
* {{Ilink|Light Green Balloon}}
 
* {{Ilink|Green Balloon}}
 
* {{Ilink|Cyan Balloon}}
 
* {{Ilink|Light Blue Balloon}}
 
* {{Ilink|Blue Balloon}}
 
* {{Ilink|Ghast Balloon}}
 
* {{Ilink|Zombie Head}}
 
* {{Ilink|Skeleton Head}}
 
* {{Ilink|Creeper Head}}
 
* {{Ilink|Ender Dragon Head}}
 
* {{Ilink|Mob Head}}
 
* {{Ilink|J Block|J}}
 
 
|}
 
|}
 
|}<includeonly>[[Category:Blocks]]</includeonly><noinclude>
 
|}<includeonly>[[Category:Blocks]]</includeonly><noinclude>
Line 305: Line 186:
  
 
== Syntax ==
 
== Syntax ==
To use this template, add <code><nowiki>{{Blocks}}</nowiki></code> at the bottom of the article.
+
To use this template, add <code><nowiki>{{Blocks}}</nowiki></code> at the bottom of the article. By default, the whole navbox is closed, but generally, it is recommended to have open by default the same category of blocks that the article is; that way readers can quickly see related blocks. The syntax to open each category is the following:
  
{{Blocks}}
+
<code><nowiki>{{Blocks|<Building/Decorations/Food/Redstone/Transportation/Brewing/Misc>}}</nowiki></code>
  
{{Block|building}}
+
That way, <code><nowiki>{{Blocks|Building}}</nowiki></code> will result in the navbox with the "building blocks" section opened by default:
  
{{Block|misc}}
+
{{Blocks|Building}}
 +
 
 +
Or, for example, the "miscellaneous items" secton (<code><nowiki>{{Blocks|Misc}}</nowiki></code>) results in:
 +
 
 +
{{Blocks|Misc}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:40, 29 July 2022

About

This template displays a navigation box with all the in-game blocks being listed. For the items, refer to Template:Items.

Syntax

To use this template, add {{Blocks}} at the bottom of the article. By default, the whole navbox is closed, but generally, it is recommended to have open by default the same category of blocks that the article is; that way readers can quickly see related blocks. The syntax to open each category is the following:

{{Blocks|<Building/Decorations/Food/Redstone/Transportation/Brewing/Misc>}}

That way, {{Blocks|Building}} will result in the navbox with the "building blocks" section opened by default:

Or, for example, the "miscellaneous items" secton ({{Blocks|Misc}}) results in: