Jump to content

Template:Harvard citation no brackets/doc

From Wikisource

Template harvnb creates a short author–date citation with a one-directional link to the first matching citation template on the same page.

Usage

[edit]
{{harvard citation no brackets|Last name of author(s)|Year}}

or

{{harvnb|Last name of author(s)|Year}}

Instead of using the optional loc parameter, you may use one of the following parameters:

  • p=page
  • pp=pages
Usage notes
  • The first parameter is the author's last name.
  • Up to four authors can be given as parameters (see the examples). If there are more than 4 authors only the first 4 should be listed; listing more will cause odd things to happen.
  • The next parameter is the year of publication.
  • The loc= parameter is the location of the cited material within the reference. This parameter is optional.
  • The p= is an optional page parameter; thus "{{harvnb|Smith|2006}}" yields "Smith 2006, p. 25".
  • The pp= parameter is an optional page range parameter; thus "{{Harvnb|Smith|2006| pp=25–26}}" yields "Smith 2006, pp. 25–26".
  • The Ref= parameter is used to specify the reference value that links the short citation to the full citation. This parameter is optional and is usually not necessary. If you specify Ref=none no hyperlink is created. (See the examples.)
  • To include brackets surrounding the citation, use {{Harvard citation}} or {{Harv}}.
  • To use the author name(s) in the text, use {{Harvard citation text}} or {{Harvtxt}}.
  • For more complicated Harvard citations with multiple links use {{Harvard citations}} or its abbreviation {{harvs}}.
  • 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. For example, "{{Harvnb|Smith|2007a| p=25}}" yields "Smith 2007a, p. 25" and "{{Harvnb|Smith|2007b| p=37}}" yields "Smith 2007b, p. 37"
  • A space before or after the author name or before the year is significant; they produce an underscore in the hyperlink. So, "{{Harvnb|Smith| 2006| p=25}}" yields "Smith 2006, p. 25" which links to #CITEREFSmith_2006.
  • When using citation templates such as {{tl|cite book}} for references, include the parameter ref=harv to add the target of the footnote link to each reference.

Examples

[edit]
Code Result
{{harvnb|Smith|2006|loc=ch. 10}} Smith 2006, ch. 10
{{harvnb|Smith|2006|p=25}} Smith 2006, p. 25
{{harvnb|Smith|2006|pp=25–26}} Smith 2006, pp. 25–26
{{harvnb|Smith|2006|pp=25–26|Ref=none}} Smith 2006, pp. 25–26
{{harvnb|Smith|2007a|p=25}} Smith 2007a, p. 25
{{harvnb|Smith|2007b|p=37}} Smith 2007b, p. 37
{{harvnb|Smith|Jones|Brown|2008|p=25}} Smith, Jones & Brown 2008, p. 25
{{harvnb|Smith|Jones|Brown|Black|2009|p=25}} Smith et al. 2009, p. 25
Full references for examples

The following references are provided as targets for the {{Harvnb}} templates used in the examples above. If you click on a link in the Result column, the browser will highlight the proper entry below and scroll to the page to make it visible.

  • Smith, John (2006). His First Book. 
  • Smith, John (2007a). His Second Book. 
  • Smith, John (2007b). His Third Book. 
  • Smith, John; Jones, Ann; Brown, Shelby (2008). Multiple Authors Example Book One. 
  • Smith, John; Jones, Ann; Brown, Shelby; Black, Joseph (2009). Multiple Authors Example Book Two. 

Purpose

[edit]

When using parenthetical referencing there are some situations in which it is undesirable to surround the citation with brackets. Also, Harvnb is sometimes used with inline citations (<ref>…</ref>) to create short footnotes in a Notes section that link to full footnotes in a References section.

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.


This template creates a short author–date citation with a one-directional link to the first matching citation template on the same page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

1st author's last name

Example
Smith
Stringrequired
22

2nd author's last name or year of publication

Example
Williams or 2002
Stringrequired
33

3rd author's last name or year of publication

Example
Jones or 2003
Stringoptional
44

4th author's last name or year of publication

Example
Brown or 2004
Stringoptional
55

Year of publication

Example
2005
Numberoptional
Reference valueref Ref

Usual not used. Reference value that links the short citation to the full citation. If you specify |ref=none, no hyperlink is created.

Example
none
Unknownoptional
RefRef

no description

Unknownoptional
Locationloc

Some other description of the location. Can be a URL in [ ].

Example
[https://archive.org/stream/merriamwebsterdi00merr#page/253]
URLoptional
Pagep page

Single page number

Example
374, xii, or A4
Stringsuggested
pagepage

no description

Unknownoptional
Pagespp pages

range of page numbers or multiple separate page numbers

Example
124–27 or 42,47,A113
Stringdeprecated
pagespages

no description

Unknownoptional
Quotes or additional commentsps

Used to add quotes or additional comments.

Example
Table 7.1
Stringoptional