Difference between revisions of "Template:Items"

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!

(Updated documentation.)
Line 8: Line 8:
 
|-
 
|-
 
|
 
|
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|tools|mw-collapsed}}"
+
{| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|tools||mw-collapsed}}"
 
! colspan="2"| Tools and Armor
 
! colspan="2"| Tools and Armor
 
|-
 
|-
Line 74: Line 74:
 
* {{Ilink|Mustache}}
 
* {{Ilink|Mustache}}
 
|}
 
|}
{| 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"| Food and Crops
 
|-
 
|-
Line 142: Line 142:
 
* {{Ilink|Beet Soup}}
 
* {{Ilink|Beet Soup}}
 
|}
 
|}
{| 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"| Brewing
 
|-
 
|-
Line 178: Line 178:
 
* {{Ilink|Splash Night Vision Potion}}
 
* {{Ilink|Splash Night Vision Potion}}
 
|}
 
|}
{| 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"| Miscellaneous Items
 
|-
 
|-
Line 259: Line 259:
  
 
== Syntax ==
 
== Syntax ==
To use this template, add <code><nowiki>{{Items}}</nowiki></code> at the bottom of the article.
+
To use this template, add <code><nowiki>{{Items}}</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 items that the user is currently on in the navigation box, that way readers can quickly see related items. The syntax to open each category is the following:
 +
 
 +
<code><nowiki>{{Items|<tools/food/brewing/misc></nowiki></code>
 +
 
 +
That way, <code><nowiki>{{Items|tools}}</nowiki></code> will result in the navbox with the "tools and armor" section opened by default:
 +
 
 +
{{Items|tools}}
 +
 
 +
Or, for example, the "miscellaneous items" secton (<code><nowiki>{{Items|misc}}</nowiki></code>):
 +
 
 +
{{Items|misc}}
 
</noinclude>
 
</noinclude>

Revision as of 16:29, 22 December 2021

About

This template displays a navigation box with all the in-game items being listed. For the blocks, refer to Template:Blocks.

Syntax

To use this template, add {{Items}} 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 items that the user is currently on in the navigation box, that way readers can quickly see related items. The syntax to open each category is the following:

{{Items|<tools/food/brewing/misc>

That way, {{Items|tools}} will result in the navbox with the "tools and armor" section opened by default:

Items

Or, for example, the "miscellaneous items" secton ({{Items|misc}}):

Items