Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Help:Templates

From Minecraft Wiki
Jump to: navigation, search

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[edit]

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[edit]

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


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

Title
Text


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

Templates with optional parameters[edit]

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[edit]

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[edit]

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