Difference between revisions of "Template:Harvard citation no brackets/doc"

From blackwiki
Jump to navigation Jump to search
test>Yknok29
test>Erik
(→‎Usage: Added ref=harv note; feel free to improve wording)
Line 25: Line 25:
 
*For authors who have published more than one work in the same year, the standard way to differentiate such works is to put a lowercase letter after the year (e.g. year=2006a and year=2006b).
 
*For authors who have published more than one work in the same year, the standard way to differentiate such works is to put a lowercase letter after the year (e.g. year=2006a and year=2006b).
 
*A space before or after the author name or before the year ''is'' significant; they produce an underscore in the hyperlink (e.g., "<nowiki>{{Harvnb |Smith| 2006| p=25}}</nowiki>" yields {{Harvnb |Smith| 2006| p=25}} - which links to #CITEREFSmith_2006.
 
*A space before or after the author name or before the year ''is'' significant; they produce an underscore in the hyperlink (e.g., "<nowiki>{{Harvnb |Smith| 2006| p=25}}</nowiki>" yields {{Harvnb |Smith| 2006| p=25}} - which links to #CITEREFSmith_2006.
 +
*When using [[:Category:Citation templates|citation templates]] for references, include the field <code>ref=harv</code> to link the footnote to the reference.
  
 
==Examples==
 
==Examples==

Revision as of 14:00, 2 October 2009

Template:Template doc page viewed directly

Usage

{{Harvard citation no brackets 
  | ''Last name of author(s)'' 
  | ''Year'' 
  | ''Location in the text'' 
}}

Alternative to using Location, you may also use the following parameters:

p = page pp = pages

Notes
  • The abbreviation Harvnb may be used.
  • The first parameter is the author's last name.
  • The second parameter is the year of publication.
  • The third parameter is the location of the cited material within the reference. This parameter is optional.
  • The parameter p is an optional page parameter (e.g., "{{Harvnb |Smith|2006 | p=25}}" yields Smith 2006, p. 25 - which links to #CITEREFSmith2006.
  • The parameter pp is an optional page range parameter (e.g., "{{Harvnb |Smith|2006 | pp=25–26}}" yields Smith 2006, pp. 25–26.
  • If Ref=none, then no hyperlink is created.
  • For authors who have published more than one work in the same year, the standard way to differentiate such works is to put a lowercase letter after the year (e.g. year=2006a and year=2006b).
  • A space before or after the author name or before the year is significant; they produce an underscore in the hyperlink (e.g., "{{Harvnb |Smith| 2006| p=25}}" yields Smith 2006, p. 25 - which links to #CITEREFSmith_2006.
  • When using citation templates for references, include the field ref=harv to link the footnote to the reference.

Examples

yields:

Purpose

There are limited situations in which it is undesirable to surround a Harvard citation by brackets. An example may be where the citation has been formatted as an inline citation using cite.php. See also Template:Harvard citation.

Multiple citations

A useful example of the Harvard no brackets template is when creating multiple cites using different pages of the same book. For a worked example, see User:RexxS/Cite_multiple_pages.