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!

 
(18 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
Line 49: Line 49:
 
* {{Icon link|Sandstone}}
 
* {{Icon link|Sandstone}}
 
* {{Icon link|Clay Block}}
 
* {{Icon link|Clay Block}}
* {{Icon link|Brick}}
 
 
* {{Icon link|Bricks}}
 
* {{Icon link|Bricks}}
 
* {{Icon link|Snow Block}}
 
* {{Icon link|Snow Block}}
Line 56: Line 55:
 
* {{Icon link|Gravel}}
 
* {{Icon link|Gravel}}
 
* {{Icon link|Bookshelf}}
 
* {{Icon link|Bookshelf}}
* {{Icon link|Cobblestone Stairs}}
+
* {{Icon link|Stairs}}
* {{Icon link|Stone Stairs}}
+
* {{Icon link|Slabs}}
* {{Icon link|Nether Brick Stairs}}
+
* {{Icon link|Wool}}
* {{Icon link|Brick Stairs}}
 
* {{Icon link|Wooden Planks Stairs}}
 
* {{Icon link|Stone Brick Stairs}}
 
* {{Icon link|Iron Stairs}}
 
* {{Icon link|Gold Stairs}}
 
* {{Icon link|Diamond Stairs}}
 
* {{Icon link|Obsidian Stairs}}
 
* {{Icon link|Bedrock Stairs}}
 
* {{Icon link|Bamboo Stairs}}
 
* {{Icon link|Cobblestone Slab}}
 
* {{Icon link|Stone Slab}}
 
* {{Icon link|Nether Brick Slab}}
 
* {{Icon link|Brick Slab}}
 
* {{Icon link|Wooden Planks Slab}}
 
* {{Icon link|Stone Brick Slab}}
 
* {{Icon link|Iron Slab}}
 
* {{Icon link|Gold Slab}}
 
* {{Icon link|Diamond Slab}}
 
* {{Icon link|Obsidian Slab}}
 
* {{Icon link|Bedrock Slab}}
 
* {{Icon link|Bamboo Slab}}
 
* {{Icon link|White Wool}}
 
* {{Icon link|Light Gray Wool}}
 
* {{Icon link|Gray Wool}}
 
* {{Icon link|Black Wool}}
 
* {{Icon link|Brown Wool}}
 
* {{Icon link|Purple Wool}}
 
* {{Icon link|Magenta Wool}}
 
* {{Icon link|Red Wool}}
 
* {{Icon link|Orange Wool}}
 
* {{Icon link|Pink Wool}}
 
* {{Icon link|Yellow Wool}}
 
* {{Icon link|Light Green Wool}}
 
* {{Icon link|Green Wool}}
 
* {{Icon link|Cyan Wool}}
 
* {{Icon link|Light Blue Wool}}
 
* {{Icon link|Blue Wool}}
 
* {{Icon link|Rainbow Wool}}
 
 
* {{Icon link|Glass}}
 
* {{Icon link|Glass}}
* {{Icon link|White Glass}}
 
* {{Icon link|Light Gray Glass}}
 
* {{Icon link|Gray Glass}}
 
* {{Icon link|Black Glass}}
 
* {{Icon link|Brown Glass}}
 
* {{Icon link|Purple Glass}}
 
* {{Icon link|Magenta Glass}}
 
* {{Icon link|Red Glass}}
 
* {{Icon link|Orange Glass}}
 
* {{Icon link|Pink Glass}}
 
* {{Icon link|Yellow Glass}}
 
* {{Icon link|Light Green Glass}}
 
* {{Icon link|Green Glass}}
 
* {{Icon link|Cyan Glass}}
 
* {{Icon link|Light Blue Glass}}
 
* {{Icon link|Blue Glass}}
 
 
* {{Icon link|Portal Stone}}
 
* {{Icon link|Portal Stone}}
 
* {{Icon link|Netherrack}}
 
* {{Icon link|Netherrack}}
Line 129: Line 74:
 
* {{Icon link|Bamboo Block}}
 
* {{Icon 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
Line 140: Line 85:
 
* {{Icon link|Enchantment Table}}
 
* {{Icon link|Enchantment Table}}
 
* {{Icon link|Anvil}}
 
* {{Icon link|Anvil}}
* {{Icon link|Name Tag}}
 
 
* {{Icon link|Bed}}
 
* {{Icon link|Bed}}
* {{Icon link|Wooden Door}}
+
* {{Icon link|Doors|Door|Door}}
* {{Icon link|Iron Door}}
 
* {{Icon link|Bamboo Door}}
 
 
* {{Icon link|Trap Door}}
 
* {{Icon link|Trap Door}}
 
* {{Icon link|Sign}}
 
* {{Icon link|Sign}}
 
* {{Icon link|Sapling}}
 
* {{Icon link|Sapling}}
 
* {{Icon link|Leaves}}
 
* {{Icon link|Leaves}}
* {{Icon link|Apple in Leaves}}
+
* ({{Icon link|Apple in Leaves|Leaves}}
* {{Icon link|Orange in Leaves}}
+
* {{Icon link|Orange in Leaves|Leaves}}
* {{Icon link|Golden Apple in Leaves}}
+
* {{Icon link|Golden Apple in Leaves|Leaves}}
* {{Icon link|Lemon in Leaves}}
+
* {{Icon link|Lemon in Leaves|Leaves}})
* {{Icon link|Stick}}
 
 
* {{Icon link|Ladder}}
 
* {{Icon link|Ladder}}
* {{Icon link|Wooden Fence}}
+
* {{Icon link|Wooden Fence|Fence|Fence}}
* {{Icon link|Wooden Fence Gate}}
+
* {{Icon link|Wooden Fence Gate|Fence Gate|Fence Gate}}
* {{Icon link|Nether Brick Fence}}
 
* {{Icon link|Nether Brick Fence Gate}}
 
 
* {{Icon link|Iron Bars}}
 
* {{Icon link|Iron Bars}}
 
* {{Icon link|Torch}}
 
* {{Icon link|Torch}}
Line 165: Line 104:
 
* {{Icon link|Shrub}}
 
* {{Icon link|Shrub}}
 
* {{Icon link|Desert Shrub}}
 
* {{Icon link|Desert Shrub}}
* {{Icon link|Yellow Flower}}
+
* {{Icon link|Red Flower|Flowers|Flowers}}
* {{Icon link|Red Flower}}
+
* {{Icon link|Red Mushroom|Mushrooms|Mushrooms}}
* {{Icon link|Brown Mushroom}}
+
* {{Icon link|Red Mushroom Cap|Mushroom Cap|Mushroom Cap}}
* {{Icon link|Red Mushroom}}
+
* {{Icon link|Red Mushroom Stem|Mushroom Stem|Mushroom Stem}}
* {{Icon link|Red Mushroom Cap}}
 
* {{Icon link|Red Mushroom Stem}}
 
* {{Icon link|Brown Mushroom Cap}}
 
* {{Icon link|Brown Mushroom Stem}}
 
 
* {{Icon link|Bamboo}}
 
* {{Icon link|Bamboo}}
 
* {{Icon link|Cactus}}
 
* {{Icon link|Cactus}}
Line 179: Line 114:
 
* {{Icon link|Coral}}
 
* {{Icon link|Coral}}
 
* {{Icon link|Coral Lantern}}
 
* {{Icon link|Coral Lantern}}
* {{Icon link|Empty Bucket}}
 
* {{Icon link|Bucket of Water}}
 
* {{Icon link|Bucket of Lava}}
 
* {{Icon link|Bucket of Acid}}
 
 
* {{Icon link|Cobweb}}
 
* {{Icon link|Cobweb}}
 
* {{Icon link|Rope}}
 
* {{Icon link|Rope}}
 
* {{Icon link|Monster Spawner}}
 
* {{Icon link|Monster Spawner}}
* {{Icon link|Moss}}
 
 
* {{Icon link|Odd Torch}}
 
* {{Icon link|Odd Torch}}
* {{Icon link|White Carpet}}
+
* {{Icon link|Carpets|Carpet|Carpets}}
* {{Icon link|Light Gray Carpet}}
+
* {{Icon link|Backdrops}}
* {{Icon link|Gray Carpet}}
 
* {{Icon link|Black Carpet}}
 
* {{Icon link|Brown Carpet}}
 
* {{Icon link|Purple Carpet}}
 
* {{Icon link|Magenta Carpet}}
 
* {{Icon link|Red Carpet}}
 
* {{Icon link|Orange Carpet}}
 
* {{Icon link|Pink Carpet}}
 
* {{Icon link|Yellow Carpet}}
 
* {{Icon link|Light Green Carpet}}
 
* {{Icon link|Green Carpet}}
 
* {{Icon link|Cyan Carpet}}
 
* {{Icon link|Light Blue Carpet}}
 
* {{Icon link|Blue Carpet}}
 
* {{Icon link|Rainbow Carpet}}
 
* {{Icon link|Obsidian Backdrop}}
 
* {{Icon link|Dirt Backdrop}}
 
* {{Icon link|Wooden Planks Backdrop}}
 
* {{Icon link|Stone Backdrop}}
 
* {{Icon link|Cobblestone Backdrop}}
 
* {{Icon link|Brick Backdrop}}
 
* {{Icon link|Nether Brick Backdrop}}
 
* {{Icon link|Stone Brick Backdrop}}
 
* {{Icon link|Bookshelf Backdrop}}
 
* {{Icon 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
Line 226: Line 131:
 
* {{Icon link|Cactus Cake}}
 
* {{Icon link|Cactus Cake}}
 
* {{Icon link|Melon Block}}
 
* {{Icon link|Melon Block}}
 +
* {{Icon link|Pumpkin}}
 
* {{Icon link|Jack-o'-Lantern}}
 
* {{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
 
|
 
|
* {{Icon link|Redstone Dust}}
 
 
* {{Icon link|Redstone Torch}}
 
* {{Icon link|Redstone Torch}}
 
* {{Icon link|Button}}
 
* {{Icon link|Button}}
* {{Icon link|Wooden Pressure Plate}}
 
 
* {{Icon link|Pressure Plate}}
 
* {{Icon link|Pressure Plate}}
 
* {{Icon link|Lever}}
 
* {{Icon link|Lever}}
Line 247: Line 151:
 
* {{Icon link|TNT}}
 
* {{Icon 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
 
|
 
|
 
* {{Icon link|Raft}}
 
* {{Icon link|Raft}}
* {{Icon link|Minecart}}
+
* {{Icon link|Minecart}} ({{Icon link|TNT Minecart|TNT Minecart|TNT}}
* {{Icon link|TNT Minecart}}
+
* {{Icon link|Furnace Minecart|Furnace Minecart|Furnace}}
* {{Icon link|Furnace Minecart}}
+
* {{Icon link|Chest Minecart|Chest Minecart|Chest}})
* {{Icon link|Chest Minecart}}
+
* {{Icon link|Minecart Rail}} ({{Icon link|Activator Minecart Rail|Activator Minecart Rail|Activator}}
* {{Icon link|Minecart Rail}}
+
* {{Icon link|Detector Minecart Rail|Detector Minecart Rail|Detector}}
* {{Icon link|Activator Minecart Rail}}
+
* {{Icon link|Powered Minecart Rail|Powered Minecart Rail|Powered}})
* {{Icon link|Detector Minecart Rail}}
 
* {{Icon link|Powered Minecart Rail}}
 
* {{Icon 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
Line 271: Line 172:
 
* {{Icon 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
 
|
 
|
 
* {{Icon link|Slime Block}}
 
* {{Icon link|Slime Block}}
* {{Icon link|Light Gray Balloon}}
 
* {{Icon link|Gray Balloon}}
 
* {{Icon link|Black Balloon}}
 
* {{Icon link|Brown Balloon}}
 
* {{Icon link|Purple Balloon}}
 
* {{Icon link|Magenta Balloon}}
 
* {{Icon link|Red Balloon}}
 
* {{Icon link|Orange Balloon}}
 
* {{Icon link|Pink Balloon}}
 
* {{Icon link|Yellow Balloon}}
 
* {{Icon link|Light Green Balloon}}
 
* {{Icon link|Green Balloon}}
 
* {{Icon link|Cyan Balloon}}
 
* {{Icon link|Light Blue Balloon}}
 
* {{Icon link|Blue Balloon}}
 
* {{Icon link|Ghast Balloon}}
 
* {{Icon link|Zombie Head}}
 
* {{Icon link|Skeleton Head}}
 
* {{Icon link|Creeper Head}}
 
* {{Icon link|Ender Dragon Head}}
 
 
* {{Icon link|Mob Head}}
 
* {{Icon link|Mob Head}}
* {{Icon link|J Block|J}}
+
* {{Icon link|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 14: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: