Template:Harvard reference/doc

The Harvard reference template is a versatile template for citing books, periodicals, chapters in compilations, and web-sites. It follows the Harvard referencing style, and it has a special "linking functionality" that allows inline harvard citations to link to the reference via the Template:Harvard citation template. As the Harvard referencing style is an "surname-year" format, the only mandatory parameters are last (or surname) and year. You may include as many authors or editors as necessary (via the last1, editor-last3, etc. tags), although only three of each will display.

The template knows whether you are citing a book, periodical, or a chapter in a compilation. The citation will be formatted as a periodical if you include a periodical or journal parameter. The citation will be formatted as a chapter or compilation in a larger book if you use the chapter or contribution parameter. In all other cases, the citation will have a standard format appropriate for books, web pages, and anything with an author, a year, and optionally a title.

Parameters

 * last (required): The author's surname or last name. (This parameter may also be called surname, surname1, author, or author1).
 * first (optional): The author's first or given name(s). In formal Harvard style references, this should include only the initials. (This parameter may also be called given).
 * authorlink (optional): Title of a Wikipedia article about author. Article must already exist.
 * year (required): Year of publication.
 * date (optional): While the year) tag is mandatory, use of the date parameter will override how the date is displayed in the reference.
 * title (optional): Title of the book.
 * edition (optional): Number or name of the edition, if not the first; for example: edition=2nd.
 * volume (optional): The volume number of a multi-volume book.
 * place (optional): The city of publication. If more than one town/city is listed on the title page, give the first one or the location of the publisher's head office. If the city is not well-known, you may add a county, region, or state. States in the U.S. are denoted by a two-letter code; for example:  (no period at the end).  Where the publisher is a university and the place or location is included in the name of the university, do not use this parameter.
 * publisher (optional): The name of the publisher. Omit terms such as Publishers, Co., Inc., Ltd., etc., but retain the words Books or Press.
 * id (optional): Identifier such as  ISBN 1-111-22222-9 
 * isbn (optional): Use this parameter if the book has an ISBN.
 * url (optional): An url of an online location where the book can be found.
 * access-date (optional): If an url is included, the date on which the url was last accessed.

One author
.

Result: .

Three authors, a volume, and an edition
.

Result: .

Minimal reference
.

Result: .

Parameters

 * last (required): The author's surname or last name. (This parameter may also be called surname, surname1, author, or author1).
 * first (optional): The author's first or given name(s). In formal Harvard style references, this should include only the initials. (This parameter may also be called given).
 * authorlink (optional): Title of a Wikipedia article about author. Article must already exist.
 * year (required): Year of publication.
 * date (optional): While the year) tag is mandatory, use of the date parameter will override how the date is displayed in the reference. If the periodical is a newspaper or a magazine with a particular date, this tag should always be used.
 * title (optional): Title of the article.
 * periodical (optional): Name of the journal or periodical. (This parameter may also be called journal, newspaper, or magazine).
 * volume (optional): The volume number of the journal.
 * issue (optional): The issue number of the journal. (This parameter may also be called number).
 * pages (optional): The pages in the issue where the article may be found. (If the article is on only one page, use the parameter page instead).
 * url (optional): An url of an online location where the article can be found.
 * access-date (optional): The date on which the url was last accessed.

Journal article
.

Result: .

Newspaper article
.

Result: .

Parameters

 * surname (required): The author's surname or last name. (This parameter may also be called last).
 * given (optional): The author's first or given name. In formal Harvard style references, this should include only the initials. (This parameter may also be called first).
 * author (optional): While the surname (or last) tag is mandatory for referencing purposes, use of the Author parameter will override how the author's name is displayed in the reference.
 * authorlink (optional): Title of a Wikipedia article about author. Article must already exist.
 * year (required): Year of publication.
 * date (optional): While the year) tag is mandatory, use of the date parameter will override how the date is displayed in the reference.
 * chapter (required for chapters): Title of the contribution in the book. (This parameter may also be called Contribution).
 * editor (optional): Name of the editor or editors.
 * title (required for chapters): Title of the book.
 * edition (optional): Number or name of the edition, if not the first; for example: Edition=2nd.
 * place (optional): The city of publication. If more than one town/city is listed on the title page, give the first one or the location of the publisher's head office. If the city is not well-known, you may add a county, region, or state. States in the U.S. are denoted by a two-letter code; for example:  (no period at the end).  Where the publisher is a university and the place or location is included in the name of the university, do not use this parameter.
 * publisher (optional): The name of the publisher. Omit terms such as Publishers, Co., Inc., Ltd., etc., but retain the words Books or Press.
 * pages (optional): The pages in the book where the chapter or contribution may be found. (If the contribution is on only one page, use the parameter Page instead).
 * id (optional): Identifier such as  ISBN 1-111-22222-9 
 * isbn (optional): Use this parameter if the book has an ISBN.
 * url (optional): An url of an online location where the book can be found.
 * access-date (optional): The date on which the url was last accessed.

Work included in a compilation
.

Result: .

Untitled work quoted or included in a journal article
.

Result: .

Multiple authors and multiple editors
.

Result: .

Citation examples
These examples of citation within the text are based on related citation template Template:Harvard citation, which automatically creates a one-directional link to the first matching Harvard reference on the same page:

Markup in main text:
 * (full cite format)
 * (short format)
 * (non-linking)
 * (multi-author)

Results: