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.

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. Do this by inserting the   template at the bottom of the page.