Minecraft Wiki

The Minecraft Wiki has moved from Fandom; see the linked discussion page for details.

READ MORE

Minecraft Wiki
Advertisement

Templates allow the use of a certain object throughout the wiki without needing to write the object itself. All changes made to the object are propagated through the wiki automatically.

Using a template

To use a template, use {{Template name}}. This will put the contents of Template:Template name in place of it when the page is loaded.

Templates with parameters

Some templates use parameters, which contain extra information. For example, {{msgbox}} produces:


It doesn't work very well, but {{msgbox|title=Title|info=Info}} produces:

Title 
Text


A full list of parameters should be found on the templates' pages.

Templates with optional parameters

Some templates, such as Template:Delete, have optional parameters. {{Delete}} produces:

This page has been tagged for and is currently pending deletion per user request [discuss]
This is due to a violation of the rules or by the author's request.


It looks fine. If you want to add a reason, {{Delete|Reason for deletion}} produces:

This page has been tagged for and is currently pending deletion per user request [discuss]
This is due to a violation of the rules or by the author's request.
Reason: Reason for deletion

Transcluding other pages

You can transclude any page in the wiki. If the page is in the (Main) namespace, make sure to add a colon (:) before the name of the page.

<noinclude> tags

If <noinclude> tags are used in the template, nothing inside them is transcluded.

Advertisement