Porting templates

Simple templates can be copy/pasted but for any transcluding other templates it's best to use export/import.

Complex templates are easier obtained from Wikipedia than written from scratch, where considerable work has already gone into developing and debugging these.

Export
Obtain the required XML data via Special:Export or from Wikipedia at Special:Export. Do not include the full history or the file will become too large. Select the Include templates option so that any dependencies are included.

Import
Only administrators of a wiki can use Special:Import. For any templates you require not already on this wiki, list your request on the Stewards' noticeboard.

Customisation
Site specific templates need to be made more generally usable: to:
 * Comply with Wikimedia trademark policy.
 * Replace instances of Wikipedia in the text with    , (or Miraheze if appropriate).
 * Replace instances of Wikimedia in the text with Miraheze.
 * In Lua modules replace Wikipedia with  ' .. mw.site.siteName .. '  for example to alter the text in stub change in module asbox line 233 from:

Also include style sheets
Also be sure to copy any relevant styling to MediaWiki:Common.css.

Licensing
Because of CC-BY-SA licensing considerations the previous authors need to be acknowledged. Here's a list of sources and attribution templates for inserting at the bottom of the imported pages, (but not sub-pages) e.g. before &lt;/noinclude&gt;:
 * English Wikipedia -
 * English MediaWiki -