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!

m (Added Teleporter.)
Line 223: Line 223:
 
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:
 
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>
+
<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:
 
That way, <code><nowiki>{{Items|tools}}</nowiki></code> will result in the navbox with the "tools and armor" section opened by default:

Revision as of 13:38, 2 January 2022

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:

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