Extension:WikiCitation

What can this extension do?
This extension adds template-based functionality for creating citations and bibliographies. For example, a user may cite a book by including the following template: which in this case would render an author-date bibliography citation in accordance with the Chicago Manual of Style, as follows:
 * Jones, Richard and Bob Johnson, eds. 1999. This work has a translator and editor, but no author. Translated by Gérard de la Martinière III. New York: Publisher, Co.

Normally, a citation such as the above would be part of a bibliography. Bibliographies may be created by using the  tag. If a  tag appears in an article, any citation on that page, either within or outside the   tag, will be incorporated in a sorted bibliography at the location of the   tag.

The full citation data for a reference need only be included once per article. Subsequent citations to that same reference may be made using a short form such as which would render a Chicago Manual of Style inline author-date citation as follows: (Jones and Johnson 1999, 20), which could appear anywhere in the text, and will contain a link to the full citation as contained in the author-date bibliography.

If a bibliography is not used, and citations are instead contained only in footnotes, the long form of the citation will be presented the first time the citation appears, and short forms will appear thereafter, in accordance with the rules of the citation style in use (i.e., the Chicago Manual of Style).

More documentation is forthcoming.

Usage
A citation has the following Backus-Naur form (in English localization):

A bibliography has the following form, as an XML-style tag located at the place where the bibliography will be created: where the style and type attributes define the citation style (e.g. "Chicago") and type (e.g., "biblio" or "author-date"). Citations within this  tag will be sorted alphabetically. Citations defined in the body of the text, or in footnotes, will automatically be included in the bibliography.

More documentation is forthcoming.

Download instructions
Code is soon to be released.

Installation
To install this extension, add the following to LocalSettings.php: