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!

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