Help:Template

As with other wikis, Rarepedia provides templates that helps users browse any information quickly and efficiently. See Project:Navigation templates and Project:Notice templates for more in-depth information about these two major groups of templates.

Usage
To understand their usage, the templates existing in this wiki are classified in this way:


 * Content templates – These templates are used in articles and have a specific use based around a given series, game, console, etc.
 * Formatting templates – These templates allow users to change elements of a page quickly by just adding them. Examples are the template to change the color of the text and  the add over a text that lacks a citation to make it valid.
 * Image map templates – These templates contain an image with links. By clicking on an linked area of the image, the user will be sent to the article in question.
 * Infobox templates – These templates contain the essential information about the topic of an article. Examples are and.
 * Media templates – These templates serve to contain media such as images, videos and audio files.
 * Navigation templates – These templates has links that are directly or indirectly related to a topic. A good example can be the template that shows all the elements related to Donkey Kong Country.
 * Notice templates – These templates serve to notice readers the current state of a page. Arguably the most used template in this category is the template. The first describes a page or article needs to be deeply developed and the latter talks about a future project, like a new game.
 * Project templates – These templates are made for the internal projects of the wiki, such as policy pages.
 * Userbox templates – These templates are small, customizable boxes that users can add to their user page for fun.

Code
Make sure you know the MediaWiki syntax for a template:

To create a template, it's needed to put the title starting Template and then the name of the template. Example: Template:Name of template

Add the content you want to show for the template in the edit area. To insert an input, type   for the first input,    for the second, and so on. You can also specify the input by inserting a name like this  .

Once you've finished, it's possible that you have to use the coding   to tag the content of the template that will be shown and    to tag the rest that shouldn't. The Noinclude tag usually covers the usage instructions of the template and the template's category.

To embed a template, simply type   in a page.

If the template is in any other namespace, simply type   to use it.

If the template has inputs, type  

If the template has specified inputs, type  </tt>

Substituting
In some cases involving more complex coding and template functions, subst: must be placed before the template name. This substitutes the dynamic code on the page with static text (i.e. the content within the template is pasted on the other page, rather than the template itself). For example,  ✅ </tt> will display as  ✅ </tt> in the code, while  </tt> will display as   </tt> in the code, which is what is contained in the ✅ template.

Example
Here is a simple example, creating a signature for any user typing  :


 * If the template contains the code:
 * User: (talk &middot; edits)
 * Typing inserts this code:
 * User (talk &middot; edits)
 * Which shows on the page as:


 * User (talk &middot; edits)