Difference between revisions of "Template:Blocks"
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!
(→Syntax) |
|||
Line 1: | Line 1: | ||
{| class="wikitable navbox mw-collapsible {{#switch: {{{1}}} | {| class="wikitable navbox mw-collapsible {{#switch: {{{1}}} | ||
− | | | + | | Building |
− | | | + | | Decorations |
− | | | + | | Food |
− | | | + | | Redstone |
− | | | + | | Transportation |
− | | | + | | Brewing |
− | | | + | | Misc = |
| #default = mw-collapsed}}" id="blocks-nav" | | #default = mw-collapsed}}" id="blocks-nav" | ||
! Blocks | ! Blocks | ||
|- | |- | ||
| | | | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| 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 74: | Line 74: | ||
* {{Icon link|Bamboo Block}} | * {{Icon link|Bamboo Block}} | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Decorations||mw-collapsed}}" |
− | ! colspan="2"| Decorations | + | ! colspan="2"| {{I|Shrub|}} Decorations |
|- | |- | ||
! Decorations | ! Decorations | ||
Line 127: | Line 127: | ||
* {{Icon link|Backdrops}} | * {{Icon link|Backdrops}} | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| 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 140: | Line 140: | ||
* {{Icon link|Jack-o'-Lantern}} | * {{Icon link|Jack-o'-Lantern}} | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Redstone||mw-collapsed}}" |
− | ! colspan="2"| Redstone | + | ! colspan="2"| {{I|Redstone Dust|}}Redstone |
|- | |- | ||
! Redstone | ! Redstone | ||
Line 158: | Line 158: | ||
* {{Icon link|TNT}} | * {{Icon link|TNT}} | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Transportation||mw-collapsed}}" |
− | ! colspan="2"| Transportation | + | ! colspan="2"| {{I|Powered Minecart Rail|}} Transportation |
|- | |- | ||
! Transportation | ! Transportation | ||
Line 171: | Line 171: | ||
* {{Icon link|Powered Minecart Rail|Powered Minecart Rail|Powered}}) | * {{Icon link|Powered Minecart Rail|Powered Minecart Rail|Powered}}) | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Brewing||mw-collapsed}}" |
− | ! colspan="2"| Brewing | + | ! colspan="2"| {{I|Healing Potion|}} Brewing |
|- | |- | ||
! Brewing | ! Brewing | ||
Line 179: | Line 179: | ||
* {{Icon link|Cauldron}} | * {{Icon link|Cauldron}} | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Misc||mw-collapsed}}" |
− | ! colspan="2"| Miscellaneous Items | + | ! colspan="2"| {{I|Chicken Egg|}} Miscellaneous Items |
|- | |- | ||
− | ! | + | ! Heads |
| | | | ||
* {{Icon link|Slime Block}} | * {{Icon link|Slime Block}} | ||
Line 203: | Line 203: | ||
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| | + | {{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>): | ||
− | {{Blocks| | + | {{Blocks|Misc}} |
</noinclude> | </noinclude> |
Revision as of 07:42, 4 January 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 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:
{{Blocks|<building/decorations/food/redstone/transportation/brewing>}}
That way, {{Blocks|building}}
will result in the navbox with the "building blocks" section opened by default:
Blocks | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Or, for example, the "miscellaneous items" secton ({{Blocks|misc}}
):
Blocks | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|