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, make a request at Community portal.

Customisation
Wikipedia specific templates need to be made more generally usable.
 * Replace instances of Wikipedia in the text with, (or Miraheze if appropriate).
 * Replace instances of Wikimedia in the text with Miraheze.

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. For English Wikipedia do this by inserting   at the bottom of the template page, (e.g. before &lt;/noinclude&gt;).