Wikia

Pokémon Wiki

Pokémon Wiki:Templates

Talk5
8,724pages on
this wiki
Revision as of 07:10, March 29, 2009 by Charitwo (Talk | contribs)

A template is a message, or importable page, that is located by itself somewhere on the Pokémon Encyclopedia, that can be used on any other page; so, as in the text of the template; by adding the name of the template to the page you want the template's text on, syntaxed like {{templatename}}. This is useful for several reasons: whenever the template is changed on its external location, it also changes itself on all the pages it has been used on, making updating several pages that contain the same thing much easier (simular to SSI). It is also useful as a shortcut; instead of typing out a whole bunch of words, just type {{whatever}} and the text of the template whatever will appear on the page, when rendered (when editing, the template will always look like {{whatever}}).

To create a template, one would create a page called something like Template:templatename (the template must be in the template namespace). The page they created would contain text that they would like to be on more than one page. Then, they would add {{templatename}} to the pages they wanted the text on, or whatever the actual page name was, excluding the namespace (in this case Template, which it must always be).

To produce the text of a template, but not have it look like {{templatename}} when you edit the page, type {{subst:templatename}}. This way, the next time the page is edited, the content of the page using {{templatename}} is edited, you will see the content of the template, which you can edit (it only takes effect on that one page and it doesn't update when Template:templatename is changed.

List of templates

Type this: To produce this: Notes:
{{poke}}
This article is related to Pokémon.
Categorized at Category:Pokemon
{{pokedex}}
This article is a Pokédex entry.
Categorized at Category:Pokedex entries
{{wiki}} Template:Wiki Categorized at Category:The Pokemon Encyclopedia
{{misc}} Template:Misc Categorized at Category:Misc
{{policy}} Template:Policy Categorized at Category:Policy
{{help}}
This article is part of the Pokémon Wiki's help series.</td>
Categorized at Category:Help

</td>

</tr>
{{cleanup}}</td>
This article or section requires a cleanup in order to meet
the Pokémon Wiki's quality standards.

Please consider editing this page to improve it.
Audino XY
</td>
Categorized at Category:Cleanup. See cleanup.

</td>

</tr>
{{stub}}</td>
This article is a stub. Please help the Pokémon Wiki by expanding it. Cleffa XY
</td>
Categorized at Category:Stubs. See stubs.

</td>

</tr>
{{Section Stub}}</td> Template:Section Stub</td> Categorized at Category:Stubs. See stubs.

</td>

</tr>
{{delete}}</td>
This page or image has been requested for deletion.

If you disagree with its deletion, please explain why at Category talk:Candidates for deletion or improve the page and remove the {{delete}} tag.
Remember to check what links here and the the page history before deleting.
Mega Pinsir XY
</td>
Categorized at Category:Articles marked for speedy deletion.

</td>

</tr>
{{ProposedDeletion}}</td> Template:ProposedDeletion</td> Categotized at Category:Articles proposed for deletion.

</td>

</tr>
{{other}}</td> Template:Other</td> Categorized at Category:Other uses.

</td> </tr>


This article is part of the Pokémon Wiki's help series.

Around Wikia's network

Random Wiki