Extension:HarvardReferences

The HarvardReferences extension allows to use the author-date ("Harvard system") referencing style, e.g. Smith 2008:1


 * Link - in square brackets:
 * Anchor to link -

Referencing systems
There is common scientific standard (Harvard referencing system).  The two most common types of referencing systems used are:
 * author-date systems — such as the Harvard system, APA and MLA
 * numerical systems — such as Chicago or Turabian, Vancouver and Footnote 

This MediaWiki extension implements an author-date (Harvard) system.

Working example
You can test this extension here: https://wikiext.org/index.php/Harvard_references_sample Use backspace key to return from references to the main text.

Sandbox to test extension
Please use sandbox to test extension: http://wikiext.org/index.php/Sandbox:Test_page

Compatibility Cite
This extension is compatible with Extension:Cite - links in both systems can be used in same article. Moreover, links in "Harvard" system can be inserted into description of ref-link, and vice versa. For example,

Page numbers in references
Optional page numbers can be used after ":" symbol in link. Several links with one name and different page numbers can refer to one anchor. For example, [Smith 2008:121] [Smith 2008:51] refers to one anchor with same name: [*Smith 2008]

You may use "|" instead of ":" as a separator.

Configuration
To enable this advanced syntax globally, put the following right after the "require_once" line.

Or, if it was not done, you may use tag  (anywhere in the article text) to enable this extension on a per-page basis.

Source code
Make file HarvardReferences.php in ANSI encoding (do not add any spaces before starting "  "). Installing of this code into MediaWiki site see above.