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!

(Merged some red links)
 
Line 186: 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/Dood/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:
Line 194: Line 194:
 
{{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: