P.MysteryUniverse Wiki:Templates

There are many templates in use in ; this is an overview, representing some of the most important and commonly used ones.
 * Category:Templates should cover all templates in the wiki, categorized into the various subcategories.
 * The Template namespace (found from Special:Allpages) always has all templates in the wiki, sorted alphanumerically.

What are Templates?
A template on a wiki is pre-made code or text; a means to insert the same content over and over in pages. Templates are inserted in a page by putting " " somewhere (e.g.  ). This saves editors the hassle of duplicating the same text again and again, and also helps ensure consistency. To go to the page of a template, as well as search for or make one, you must put "Template:" before the name, as that is their namespace.

The user can pass parameters to a template, to alter or add more information. A parameter is defined by text after a horizontal bar (|), after the template name (e.g. ). They can be required for the template to function, or be optional.

Detailed instructions on the usage of a template should exist on a subpage of it named "/doc" with documentation on the template's page (preferred); or sometimes on the template page itself (inside "noinclude" tags). Although not required, a template can also have TemplateData on its documentation subpage. It helps visual editor users, or can just serve as secondary documentation.

For more information on templates, see w:Help:Templates.

Common Templates
This is a list of frequently used or useful templates so editors can get familiar with why and how to use them. More information will always be found on the page of the template itself. Clicking the template name will take you to the template's page, where you can see how it is used.

Article Management Templates
See Category:Article management templates. Templates that display a notice about the status of a page to the reader.

!
 * Add this at the beginning of an article or section to denote that something needs to be clarified or confirmed. It will be added to Category:Articles needing clarification

!
 * Add this at the beginning of an article or section when the info is there, but needs to be tidied to be more in line with our stylistic guidelines. It will be added to Category:Article cleanup.

!
 * Add this at the beginning of a page (article, file or otherwise) to request its deletion. It will be added to Category:Candidates for deletion.

!
 * Add this at the beginning of an article or section when it is missing only a small part of information. It will be added to Category:Missing information. See also: Needmoreinfo.

!
 * Add at the beginning of an article or section that only needs an image or images in particular. It will be added to Category:Articles needing images.

!
 * Add this at the beginning of an article that little or no useful information and is thus considered a stub. It will be added to Category:Article stubs.

!
 * When there's articles that have similar or identical names, create a "disambiguation" page using the main article name. For example:
 * Mt. Moon
 * Mt. Moon (PMU 6)
 * Mt. Moon (PMU 7)

Use disambig marks the article as a disambiguation and page adds it to Category:Disambiguations. Add links to the various articles under the banner. For more information, see w:Help:Disambiguation.
 * }

General Wiki Templates
See Category:General wiki templates. These are general-purpose templates that can be used all around the wiki.

!
 * This template allows you to show example template code (with a link to the template) without using the template itself. It is used extensively on this page.

!
 * Gives an id to content so that it can be linked to, similarly to a header. It is used extensively on this page.

!
 * A template meant to collapse long lists in particular.

!
 * Colors text.

!
 * rowspan=3|These templates are used to replace the code . It clears space below things like images and tables, so the following stuff doesn't begin until the bottom of it. clrl and clrr clear only left and right floats.

!

!

!
 * Similar to, use at the top of article to link to up to three other articles that may be or are related.

!
 * Used to easily create a basic infobox when one other than the pre-made ones is needed.

!
 * Use at the beginning of a section to link to the main article on it.

!
 * Consider it a lite version of ; can be used directly in areas something is missing when its so minor it doesn't warrant using Missinginfo.

!
 * rowspan=4|These templates are used to link to pages on other wikis:, , , and.

!

!

!

!
 * rowspan=2|These templates display text when the content in the template is hovered over. Wdstt is almost always preferred as it can contain wixitext (i.e. formatting such as links) and works on mobile when tapped.

!
 * }

In-game Content
Templates that are exclusively used for reasons related to the game.

!
 * Displays an image for Ability pages.

!
 * Standardizes the display of dialogue of bosses on dungeon pages.

!
 * Displays a sprite of a control or key that can be used in-game.

!
 * Used to display the contents of a sign in the game.

!
 * Displays text or an image with a tooltip to display information. Mainly used on dungeon pages, item pages, Recruitable Pokémon and Pokémon Obtaining Guide.

!
 * Used to show dialogue choices.
 * }

Table Templates
There are several templates to insert tables for common information.

!
 * rowspan=3|Puts a table start, header, and row for standalone data tables.

!

!

!ItemRow/t
 * rowspan=2|Table for item info on item pages.

!

!PokemonTable/t
 * rowspan=2|Table for Pokémon spawns on dungeon pages.

!

!ItemTable/t
 * rowspan=2|Table for item spawns on dungeon pages.

!

!EggTable/t
 * rowspan=2|Table for Mystery Egg spawns on dungeon pages.

!

!ShopTable/t
 * rowspan=2|Table for Kecleon Shop items on dungeon pages.

!

!TrapTable/t
 * rowspan=2|Table for traps on dungeon pages.

!

!NPCHeader
 * Table header for dialogue.
 * }

Navboxes
See Category:Navboxes.

!
 * This navbox goes at the end of item articles.

!
 * This navbox goes at the end of move articles.

!
 * rowspan=4|These navboxes go at the end of a dungeon in the specified region.

!

!

!
 * }