Miraheze Template Wiki

Welcome
Welcome to Miraheze Template Wiki. This is a template repository for anyone to obtain templates for their Miraheze wiki.

Feel free to add any template you think should be included. For any templates you require not already on this wiki and which need importing, make a request at Community portal.

So what are templates?
A template is a page that gets included in another page, (this is called transclusion). This is useful for text that is used in multiple places, only the template needs editing to change all instances where it appears.

All templates are in the "templates namespace".

For example, create a page called Template:Main with the text

and then inserting the template where you want the text to appear gives:

The main article for this is Example.

About the wiki itself
For full functionality MediaWiki ought to ship with templates bundled in but there is no sign of this happening any time soon. Miraheze wiki admins either write their own templates or export them from elsewhere e.g. en.wikipedia.org (aka en). This is a wasteful dispersion of effort in place of of collaboration.

Templates are a headache to understand, install and maintain. Miraheze already makes life considerably easier for wiki admins, allowing them to focus on adding content instead of diverting time and energy to keeping up with the upgrade-debug race. This wiki is intended to be a central repository for Miraheze templates.

Use the community portal for any meta discussions (about the wiki) or anything relevant to its intended purpose.

How to use this wiki

 * Template guidelines
 * Porting templates

Template testing
For previewing a template do the following: There is also a box at the bottom of the edit form which allows for previewing some other page as it would appear were the template being edited saved with the current contents of the edit form.
 * 1) Copy the templates to be tested under a common prefix. For example, you might copy   to  . Alternatively, you might create   as a redirect to.
 * 2) Go to Special:TemplateSandbox. Fill in the page or revision to be rendered, and the prefix you chose in step 1. It is possible to specify multiple prefixes by separating them using vertical bars, e.g..
 * 3) Click View.

Available templates sorted by category

 * Message boxes