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!

m
 
(3 intermediate revisions by the same user not shown)
Line 91: Line 91:
 
* {{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|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 106: 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 124: Line 118:
 
* {{Icon link|Monster Spawner}}
 
* {{Icon link|Monster Spawner}}
 
* {{Icon link|Odd Torch}}
 
* {{Icon link|Odd Torch}}
* {{Icon link|Carpets}}
+
* {{Icon link|Carpets|Carpet|Carpets}}
 
* {{Icon link|Backdrops}}
 
* {{Icon link|Backdrops}}
 
|}
 
|}
Line 147: Line 141:
 
* {{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 185: Line 178:
 
|
 
|
 
* {{Icon link|Slime Block}}
 
* {{Icon link|Slime Block}}
* {{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}}
 
* {{Icon link|J}}
Line 197: 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: